Sha256: 090ff275df48af45773c88875e61ed78b3ec5a3e79eeff37326fe7f0ce4557cd

Contents?: true

Size: 1.69 KB

Versions: 2

Compression:

Stored size: 1.69 KB

Contents

//
// Sub Nav Variables
//
$include-html-nav-classes: $include-html-classes !default;

// We use these to control margin and padding
$sub-nav-list-margin: emCalc(-4, 0, 18) !default;
$sub-nav-list-padding-top: emCalc(4) !default;

// We use this to control the definition
$sub-nav-font-size: emCalc(14) !default;
$sub-nav-font-color: #999 !default;
$sub-nav-font-weight: normal !default;
$sub-nav-text-decoration: none !default;
$sub-nav-border-radius: 1000px !default;

// We use these to control the active item styles
$sub-nav-active-font-weight: bold !default;
$sub-nav-active-bg: $primary-color !default;
$sub-nav-active-color: #fff !default;
$sub-nav-active-padding: emCalc(3, 9) !default;
$sub-nav-active-cursor: default !default;

//
// Sub Nav Mixins
//

@mixin sub-nav($font-color:$sub-nav-font-color, $font-size:$sub-nav-font-size, $active-bg:$sub-nav-active-bg) {
  display: block;
  width: auto;
  overflow: hidden;
  margin: $sub-nav-list-margin;
  padding-top: $sub-nav-list-padding-top;
  margin-#{$opposite-direction}: 0;
  margin-#{$default-float}: emCalc(-9);

  dt,
  dd {
    float: $default-float;
    display: inline;
    margin-#{$default-float}: emCalc(9);
    margin-bottom: emCalc(10);
    font-weight: $sub-nav-font-weight;
    font-size: $font-size;

    a {
      color: $font-color;
      text-decoration: $sub-nav-text-decoration; }

    &.active a {
      @include radius($sub-nav-border-radius);
      font-weight: $sub-nav-active-font-weight;
      background: $active-bg;
      padding: $sub-nav-active-padding;
      cursor: $sub-nav-active-cursor;
      color: $sub-nav-active-color;
    }
  }

}


@if $include-html-nav-classes != false {

  /* Side Nav */
  .sub-nav { @include sub-nav; }

}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
zurb-foundation-4.3.1 scss/foundation/components/_sub-nav.scss
zurb-foundation-4.3.0 scss/foundation/components/_sub-nav.scss