Sha256: ec914354b1cb8a72e8ae26d70e0dacd96d0a12d08f81d14f39927b780b1e9a30

Contents?: true

Size: 1.7 KB

Versions: 6

Compression:

Stored size: 1.7 KB

Contents

// Foundation for Sites by ZURB
// foundation.zurb.com
// Licensed under MIT Open Source

////
/// @group title-bar
////

/// Background color of a title bar.
/// @type Color
$titlebar-background: $black !default;

/// Color of text inside a title bar.
/// @type Color
$titlebar-color: $white !default;

/// Padding inside a title bar.
/// @type Length
$titlebar-padding: 0.5rem !default;

/// Font weight of text inside a title bar.
/// @type Weight
$titlebar-text-font-weight: bold !default;

/// Color of menu icons inside a title bar.
/// @type Color
$titlebar-icon-color: $white !default;

/// Color of menu icons inside a title bar on hover.
/// @type Color
$titlebar-icon-color-hover: $medium-gray !default;

/// Spacing between the menu icon and text inside a title bar.
/// @type Length
$titlebar-icon-spacing: 0.25rem !default;

@mixin foundation-title-bar {
  .title-bar {
    padding: $titlebar-padding;
    background: $titlebar-background;
    color: $titlebar-color;

    @if $global-flexbox {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    @else {
      @include clearfix;
    }

    .menu-icon {
      margin-#{$global-left}: $titlebar-icon-spacing;
      margin-#{$global-right}: $titlebar-icon-spacing;
    }
  }

  @if $global-flexbox {
    .title-bar-left,
    .title-bar-right {
      flex: 1 1 0px; // sass-lint:disable-line zero-unit
    }

    .title-bar-right {
      text-align: right;
    }
  }
  @else {
    .title-bar-left {
      float: left;
    }

    .title-bar-right {
      float: right;
      text-align: right;
    }
  }

  .title-bar-title {
    display: inline-block;
    vertical-align: middle;
    font-weight: $titlebar-text-font-weight;
  }
}

Version data entries

6 entries across 6 versions & 4 rubygems

Version Path
aacinfo-theme-2.0.1 _sass/foundation-sites/scss/components/_title-bar.scss
foundation-scss-6.3.1.0 scss/components/_title-bar.scss
foundation6-jekyll-base-0.0.2 _sass/foundation/components/_title-bar.scss
foundation6-jekyll-base-0.0.1 _sass/foundation/components/_title-bar.scss
foundation-rails-6.3.1.0 vendor/assets/scss/components/_title-bar.scss
foundation-rails-6.3.0.0 vendor/assets/scss/components/_title-bar.scss