Sha256: 2fc49316e671efd145886da5284e2df3ca8c7e7f24bb4962f18914204f21fc86

Contents?: true

Size: 1.58 KB

Versions: 20

Compression:

Stored size: 1.58 KB

Contents

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

// We use this to control padding.
$side-nav-padding: em-calc(14 0) !default;

// We use these to control list styles.
$side-nav-list-type: none !default;
$side-nav-list-position: inside !default;
$side-nav-list-margin: em-calc(0 0 7 0) !default;

// We use these to control link styles.
$side-nav-link-color: $primary-color !default;
$side-nav-link-color-active: lighten(#000, 30%) !default;
$side-nav-font-size: em-calc(14) !default;
$side-nav-font-weight: bold !default;

// We use these to control border styles
$side-nav-divider-size: 1px !default;
$side-nav-divider-style: solid !default;
$side-nav-divider-color: darken(#fff, 10%) !default;


//
// Side Nav Mixins
//


// We use this to style the side-nav
@mixin side-nav($divider-color:$side-nav-divider-color, $font-size:$side-nav-font-size, $link-color:$side-nav-link-color) {
  display: block;
  margin: 0;
  padding: $side-nav-padding;
  list-style-type: $side-nav-list-type;
  list-style-position: $side-nav-list-position;

  li {
    margin: $side-nav-list-margin;
    font-size: $font-size;

    a {
      display: block;
      color: $link-color;
    }

    &.active > a:first-child {
      color: $side-nav-link-color-active;
      font-weight: $side-nav-font-weight;
    }

    &.divider {
      border-top: $side-nav-divider-size $side-nav-divider-style;
      height: 0;
      padding: 0;
      list-style: none;
      border-top-color: $divider-color;
    }
  }
}


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

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

}

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
locomotivecms_wagon-2.0.0.rc3 generators/line_case/public/stylesheets/foundation/components/_side-nav.scss
locomotivecms_wagon-2.0.0.rc2 generators/line_case/public/stylesheets/foundation/components/_side-nav.scss
locomotivecms_wagon-2.0.0.rc1 generators/line_case/public/stylesheets/foundation/components/_side-nav.scss
locomotivecms_wagon-2.0.0.pre.beta.2 generators/line_case/public/stylesheets/foundation/components/_side-nav.scss
locomotivecms_wagon-1.5.8 generators/line_case/public/stylesheets/foundation/components/_side-nav.scss
locomotivecms_wagon-2.0.0.pre.beta.1 generators/line_case/public/stylesheets/foundation/components/_side-nav.scss
locomotivecms_wagon-1.5.7 generators/line_case/public/stylesheets/foundation/components/_side-nav.scss
locomotivecms_wagon-1.5.6 generators/line_case/public/stylesheets/foundation/components/_side-nav.scss
locomotivecms_wagon-2.0.0.pre.alpha.3 generators/line_case/public/stylesheets/foundation/components/_side-nav.scss
locomotivecms_wagon-2.0.0.pre.alpha.2 generators/line_case/public/stylesheets/foundation/components/_side-nav.scss
locomotivecms_wagon-2.0.0.pre.alpha.1 generators/line_case/public/stylesheets/foundation/components/_side-nav.scss
locomotivecms_wagon-2.0.0.pre.alpha generators/line_case/public/stylesheets/foundation/components/_side-nav.scss
locomotivecms_wagon-1.5.5 generators/line_case/public/stylesheets/foundation/components/_side-nav.scss
locomotivecms_wagon-1.5.4 generators/line_case/public/stylesheets/foundation/components/_side-nav.scss
locomotivecms_wagon-1.5.3 generators/line_case/public/stylesheets/foundation/components/_side-nav.scss
locomotivecms_wagon-1.5.2 generators/line_case/public/stylesheets/foundation/components/_side-nav.scss
locomotivecms_wagon-1.5.1 generators/line_case/public/stylesheets/foundation/components/_side-nav.scss
locomotivecms_wagon-1.5.0 generators/line_case/public/stylesheets/foundation/components/_side-nav.scss
locomotivecms_wagon-1.5.0.rc1 generators/line_case/public/stylesheets/foundation/components/_side-nav.scss
zurb-foundation-4.3.2 scss/foundation/components/_side-nav.scss