Sha256: cd638fc015922c9842943ccc77a34d428641764e2ef3974d3a41b3336013e30b

Contents?: true

Size: 601 Bytes

Versions: 12

Compression:

Stored size: 601 Bytes

Contents

// Accordions
.accordion {
  input:checked ~,
  &[open] {
    & .accordion-header {
      .icon {
        transform: rotate(90deg);
      }
    }

    & .accordion-body {
      max-height: 50rem;
    }
  }

  .accordion-header {
    display: block;
    padding: $unit-1 $unit-2;

    .icon {
      transition: all .2s ease;
    }
  }

  .accordion-body {
    margin-bottom: $layout-spacing;
    max-height: 0;
    overflow: hidden;
    transition: max-height .2s ease;
  }
}

// Remove default details marker in Webkit
summary.accordion-header {
  &::-webkit-details-marker {
    display: none;
  }
}

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
spectre_scss-0.5.5.0 vendor/assets/stylesheets/spectre/_accordions.scss
spectre_scss-0.5.4.0 vendor/assets/stylesheets/spectre/_accordions.scss
spectre_scss-0.5.3.0 vendor/assets/stylesheets/spectre/_accordions.scss
spectre_scss-0.5.2.0 vendor/assets/stylesheets/spectre/_accordions.scss
spectre_scss-0.5.1.0 vendor/assets/stylesheets/spectre/_accordions.scss
spectre_scss-0.5.0.0 vendor/assets/stylesheets/spectre/_accordions.scss
spectre_scss-0.4.7.0 vendor/assets/stylesheets/spectre/_accordions.scss
spectre_scss-0.4.6.0 vendor/assets/stylesheets/spectre/_accordions.scss
spectre_scss-0.4.5.0 vendor/assets/stylesheets/spectre/_accordions.scss
respectre-jekyll-theme-0.1.0 _sass/spectre/_accordions.scss
spectre_scss-0.4.4.0 vendor/assets/stylesheets/spectre/_accordions.scss
spectre_scss-0.4.3.0 vendor/assets/stylesheets/spectre/_accordions.scss