Sha256: bac7f47745e839bfe2f39192681b3ff0eea17036aef799dfa081f9f7d783308e

Contents?: true

Size: 1.12 KB

Versions: 10

Compression:

Stored size: 1.12 KB

Contents

:where(.accordion) {
  details {
    border-block-end-width: var(--border);

    &::details-content {
      block-size: 0; overflow: hidden;
      transition-behavior: allow-discrete;
      transition-duration: var(--time-150);
      transition-property: content-visibility height;
    }

    &[open]::details-content {
      block-size: calc-size(auto);
    }

    &[open] summary::after {
      transform: var(--rotate-180);
    }
  }

  summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    font-weight: var(--font-medium);
    justify-content: space-between;
    padding-block: var(--size-4);

    &:hover {
      text-decoration: underline;
    }

    &:focus-visible {
      outline: var(--border-2) solid var(--color-selected-dark);
      outline-offset: var(--border-2);
    }

    &::-webkit-details-marker {
      display: none;
    }

    &::after {
      background-image: url("chevron-down.svg");
      background-size: cover;
      block-size: var(--size-4);
      content: "";
      filter: var(--color-filter-text);
      inline-size: var(--size-4);
      transition: transform var(--time-200);
    }
  }
}

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
css-zero-0.0.38 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.37 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.36 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.35 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.34 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.33 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.32 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.31 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.30 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.29 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css