Sha256: fef929ecbbb1b9abe3b054aed2816746c566785da3bb374fa924c6533d50e1f4

Contents?: true

Size: 599 Bytes

Versions: 3

Compression:

Stored size: 599 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: transform .25s;
    }
  }

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spectre_scss-0.5.8.0 vendor/assets/stylesheets/spectre/_accordions.scss
spectre_scss-0.5.7.0 vendor/assets/stylesheets/spectre/_accordions.scss
spectre_scss-0.5.6.0 vendor/assets/stylesheets/spectre/_accordions.scss