Sha256: f86ab8c112368801e3fd020cf99a306c73079ecaf2809b362d64357f315f7095

Contents?: true

Size: 1.15 KB

Versions: 16

Compression:

Stored size: 1.15 KB

Contents

:where(.accordion) {
  details {
    border-block-end-width: var(--border);
    interpolate-size: allow-keywords;

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

    &[open]::details-content {
      block-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

16 entries across 16 versions & 1 rubygems

Version Path
css-zero-0.0.54 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.53 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.52 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.51 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.50 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.49 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.48 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.47 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.46 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.45 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.44 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.43 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.42 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.41 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.40 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.39 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css