Sha256: c4704f0d8db21c6e04fda688abe0e81945ed9295f2d34ed47484a3c73f349b6e

Contents?: true

Size: 1.34 KB

Versions: 6

Compression:

Stored size: 1.34 KB

Contents

//
// Switch Modules
// $author Ad Taylor

// ==========================================================================
// Switch Defaults
// ==========================================================================


.switch-nav {
  @include clearfix();
  padding-left: 0;

  & > li {
    list-style: none;
  }
}

$query-pos: 4;
@each $grid in $grids {
  // If there is a media query
  @if(length($grid) == $query-pos) {
    @include media-query( nth($grid,$query-pos)) {
      .#{nth($grid,1)}switch-content {
        display: none;

        &.is-active {
          display: block;
        }
      }
    }
  }
  @else {
        .switch-content {
        display: none;

        &.is-active {
          display: block;
        }
      }
  }
}

// ==========================================================================
// Tabs
// ==========================================================================

.tabs {
  @extend .action-list;

  border-bottom: 1px solid mono(3);

  & > li {
    float: left;
    margin-bottom: -1px;
    margin-left: $column-gutter;


    & > a {
      display: block;
      padding: ms(0)/2  $column-gutter;
      border-bottom: 1px solid transparent;
      line-height: $base-line-height-px;
    }

    &.is-active {
       background-color: #ffffff;
       border: 1px solid #ddd;
      border-bottom-color: transparent;
    }
  }
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sb-styleguide-0.0.9 vendor/assets/stylesheets/styleguide/modules/_switch.css.scss
sb-styleguide-0.0.8 vendor/assets/stylesheets/styleguide/modules/_switch.css.scss
sb-styleguide-0.0.7 vendor/assets/stylesheets/styleguide/modules/_switch.css.scss
sb-styleguide-0.0.6 vendor/assets/stylesheets/styleguide/modules/_switch.css.scss
sb-styleguide-0.0.5 vendor/assets/stylesheets/styleguide/modules/_switch.css.scss
sb-styleguide-0.0.4 vendor/assets/stylesheets/styleguide/modules/_switch.css.scss