Sha256: 53c024195b0cdaad8617f978e25ff201909088d74b26f153a6863161b9b11a92

Contents?: true

Size: 1.7 KB

Versions: 36

Compression:

Stored size: 1.7 KB

Contents

/*
  ACCORDION
  ---------

  The trusy accordion allows you to create a series of vertical tabs.
*/

/// @Foundation.settings
// Accordion
$accordion-border: 1px solid $gray-dark !default;

$accordion-title-background: $gray-light !default;
$accordion-title-background-hover: smartscale($accordion-title-background, 5%) !default;
$accordion-title-background-active: smartscale($accordion-title-background, 3%) !default;
$accordion-title-color: isitlight($accordion-title-background) !default;
$accordion-title-color-active: isitlight($accordion-title-background) !default;

$accordion-title-padding: $global-padding !default;
$accordion-content-padding: $global-padding !default;
///

@mixin accordion-title(
  $background: $accordion-title-background,
  $background-hover: $accordion-title-background-hover,
  $background-active: $accordion-title-background-active,
  $color: $accordion-title-color,
  $color-active: $accordion-title-color-active,
  $padding: $accordion-title-padding
) {
  padding: $padding;
  background: $background;
  color: $color;
  line-height: 1;
  cursor: pointer;

  &:hover {
    background: $background-hover;
  }

  .is-active > & {
    background: $background-active;
    color: $color-active;
  }
}

@mixin accordion-content(
  $padding: $accordion-content-padding
) {
  padding: $padding;

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

@include exports(accordion) {
  .accordion {
    @if hasvalue($accordion-border) {
      border: $accordion-border;
    }
  }
    .accordion-item {

    }
    .accordion-title {
      @include accordion-title;
    }
    .accordion-content {
      @include accordion-content;
    }
}

Version data entries

36 entries across 36 versions & 2 rubygems

Version Path
express_admin-1.7.5 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_accordion.scss
express_admin-1.7.4 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_accordion.scss
express_admin-1.7.3 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_accordion.scss
express_admin-1.7.2 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_accordion.scss
express_admin-1.7.1 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_accordion.scss
express_admin-1.6.13 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_accordion.scss
express_admin-1.6.12 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_accordion.scss
express_admin-1.6.11 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_accordion.scss
express_admin-1.6.10 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_accordion.scss
express_admin-1.6.9 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_accordion.scss
express_admin-1.6.8 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_accordion.scss
express_admin-1.6.7 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_accordion.scss
express_admin-1.6.4 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_accordion.scss
express_admin-1.6.3 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_accordion.scss
express_admin-1.6.2 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_accordion.scss
express_admin-1.6.1 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_accordion.scss
express_admin-1.6.0 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_accordion.scss
express_admin-1.5.0 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_accordion.scss
express_admin-1.4.11 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_accordion.scss
express_admin-1.4.10 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_accordion.scss