Sha256: 51167d3cd566c77902599d2171f0a20a18d8983d61401f87cee7a37cd7a8ab7e

Contents?: true

Size: 1.64 KB

Versions: 3

Compression:

Stored size: 1.64 KB

Contents

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

@import "global";

//
// @variables
//

$include-html-accordion-classes: $include-html-classes !default;

$accordion-navigation-padding: rem-calc(16) !default;
$accordion-navigation-bg-color: #efefef !default;
$accordion-navigation-hover-bg-color: scale-color($accordion-navigation-bg-color, $lightness: -5%) !default;
$accordion-navigation-active-bg-color: scale-color($accordion-navigation-bg-color, $lightness: -3%) !default;
$accordion-navigation-font-color: #222 !default;
$accordion-navigation-font-size: rem-calc(16) !default;
$accordion-navigation-font-family: $body-font-family !default;

$accordion-content-padding: $column-gutter/2 !default;
$accordion-content-active-bg-color: #fff !default;

@include exports("accordion") {
  @if $include-html-accordion-classes {
    .accordion {
      @include clearfix; margin-bottom: 0;
      dd {
        display: block;
        margin-bottom: 0 !important;
        &.active > a { background: $accordion-navigation-active-bg-color; }
        > a {
          background: $accordion-navigation-bg-color;
          color: $accordion-navigation-font-color;
          padding: $accordion-navigation-padding;
          display: block;
          font-family: $accordion-navigation-font-family;
          font-size: $accordion-navigation-font-size;
          &:hover { background: $accordion-navigation-hover-bg-color; }
        }
      }
      .content {
        display: none;
        padding: $accordion-content-padding;
        &.active {
          display: block;
          background: $accordion-content-active-bg-color;
        }
      }
    }
  }
}

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
zurb-foundation-5-5.2.2 scss/foundation/components/_accordion.scss
foundation-rails-5.2.2.0 vendor/assets/stylesheets/foundation/components/_accordion.scss
foundation-rails-5.2.1.0 vendor/assets/stylesheets/foundation/components/_accordion.scss