Sha256: e8de35fcee3d3865a0b10e000fec7a4e092c6cb3928c525d553426e924be600d

Contents?: true

Size: 976 Bytes

Versions: 4

Compression:

Stored size: 976 Bytes

Contents

:where(.accordion) {
  inline-size: var(--size-full);

  details {
    border-block-end-width: var(--border);
    transition: padding var(--time-150) var(--ease-in-out);

    &[open] {
      padding-block-end: var(--size-4);
    }

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

    &:focus-visible {
      outline: var(--border-2) solid var(--color-primary);
      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) var(--ease-in-out);
    }
  }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
css-zero-0.0.22 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.21 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.20 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
css-zero-0.0.19 lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css