Sha256: 66a958af98b2db69cdf66977ca6530adcd56bede3870c6945c8cd97f0dedd230

Contents?: true

Size: 1.12 KB

Versions: 14

Compression:

Stored size: 1.12 KB

Contents

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

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

    &[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

14 entries across 14 versions & 1 rubygems

Version Path
css-zero-0.0.89 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.88 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.87 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.86 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.85 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.84 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.83 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.82 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.81 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.80 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.79 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.78 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.77 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.76 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css