Sha256: 66de035315c0a5b8c49cb25703b667fd30e6a70f9a80013a97e59f980dcfa943

Contents?: true

Size: 1.35 KB

Versions: 8

Compression:

Stored size: 1.35 KB

Contents

.accordion {
  $accordion-menu-border-color: $base-border-color;
  $accordion-menu-color: $base-font-color;
  $accordion-menu-border: 1px solid $accordion-menu-border-color;
  $accordion-menu-background: lighten($accordion-menu-border-color, 10);
  $accordion-menu-hover: lighten($accordion-menu-background, 2);
  $accordion-menu-sub-background: darken($accordion-menu-background, 5);
  $accordion-menu-sub-inset: darken($accordion-menu-sub-background, 6);
  $accordion-menu-sub-hover: lighten($accordion-menu-sub-background, 2);
  $accordion-menu-list-padding: $base-spacing/2 $gutter;
  
  background-color: $accordion-menu-background;
  border: $accordion-menu-border;
  margin-bottom: $base-spacing;

  li {
    border-bottom: $accordion-menu-border;

    > a {
      color: $accordion-menu-color;
      padding: $accordion-menu-list-padding;
      display: block;
    }

    &:last-child {
      border: none;
    }

    &:hover {
      background-color: $accordion-menu-hover;
    }
  }

  ul.submenu {
    display: none;

    li {
      background-color: $accordion-menu-sub-background;

      &:first-child {
        border-top: $accordion-menu-border;
        box-shadow: inset 0 1px 1px $accordion-menu-sub-inset;
      }

      &:hover {
        background-color: $accordion-menu-sub-hover;
      }
    }
  }

  .is-expanded {
    display: block;
    padding-bottom: 0;
  }
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
staple-0.0.9 source/stylesheets/staple/_accordion.scss
staple-0.0.8 source/stylesheets/staple/_accordion.scss
staple-0.0.7 source/stylesheets/staple/_accordion.scss
staple-0.0.6 source/stylesheets/staple/_accordion.scss
staple-0.0.5 source/stylesheets/staple/_accordion.scss
staple-0.0.4 source/stylesheets/staple/_accordion.scss
staple-0.0.3 source/stylesheets/staple/_accordion.scss
staple-0.0.2 source/stylesheets/staple/_accordion.scss