Sha256: ff151896ef65b0c9eeb5e328fcd7959bd7c2c0bf6d17b1a019676ddbdd14f33d

Contents?: true

Size: 1.37 KB

Versions: 52

Compression:

Stored size: 1.37 KB

Contents

.sheet {
  background-color: var(--color-bg);
  border-inline-start-width: var(--border);
  box-shadow: var(--shadow-lg);
  block-size: var(--size-full);
  color: var(--color-text);
  inline-size: var(--size-3-4);
  margin-inline: var(--sheet-margin);
  max-block-size: unset;

  &::backdrop {
    background-color: rgba(0, 0, 0, .8);
  }

  /* Setup animation */
  transform: var(--sheet-transform);
  transition-behavior: allow-discrete;
  transition-duration: var(--time-500);
  transition-property: display, overlay, transform;

  &::backdrop {
    opacity: 0;
    transition-behavior: allow-discrete;
    transition-duration: var(--time-150);
    transition-property: display, overlay, opacity;
  }

  /* In animation */
  &[open] {
    transform: translateX(0);
  }

  &[open]::backdrop {
    opacity: 1;
  }

  /* Out animation */
  @starting-style {
    &[open] {
      transform: var(--sheet-transform);
    }

    &[open]::backdrop {
      opacity: 0;
    }
  }

  @media (width >= 40rem) {
    max-inline-size: var(--max-i-sm);
  }
}

.sheet--left {
  --sheet-margin: 0 auto;
  --sheet-transform: translateX(-100%);
}

.sheet--right {
  --sheet-margin: auto 0;
  --sheet-transform: translateX(100%);
}

.sheet__content {
  block-size: var(--size-full);
  padding: var(--size-6);
}

.sheet__close {
  inset-block-start: var(--size-4);
  inset-inline-end: var(--size-4);
  position: absolute;
}

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
css-zero-0.0.92 lib/generators/css_zero/add/templates/app/assets/stylesheets/sheet.css
css-zero-0.0.91 lib/generators/css_zero/add/templates/app/assets/stylesheets/sheet.css
css-zero-0.0.90 lib/generators/css_zero/add/templates/app/assets/stylesheets/sheet.css
css-zero-0.0.89 lib/generators/css_zero/add/templates/app/assets/stylesheets/sheet.css
css-zero-0.0.88 lib/generators/css_zero/add/templates/app/assets/stylesheets/sheet.css
css-zero-0.0.87 lib/generators/css_zero/add/templates/app/assets/stylesheets/sheet.css
css-zero-0.0.86 lib/generators/css_zero/add/templates/app/assets/stylesheets/sheet.css
css-zero-0.0.85 lib/generators/css_zero/add/templates/app/assets/stylesheets/sheet.css
css-zero-0.0.84 lib/generators/css_zero/add/templates/app/assets/stylesheets/sheet.css
css-zero-0.0.83 lib/generators/css_zero/add/templates/app/assets/stylesheets/sheet.css
css-zero-0.0.82 lib/generators/css_zero/add/templates/app/assets/stylesheets/sheet.css
css-zero-0.0.81 lib/generators/css_zero/add/templates/app/assets/stylesheets/sheet.css
css-zero-0.0.80 lib/generators/css_zero/add/templates/app/assets/stylesheets/sheet.css
css-zero-0.0.79 lib/generators/css_zero/add/templates/app/assets/stylesheets/sheet.css
css-zero-0.0.78 lib/generators/css_zero/add/templates/app/assets/stylesheets/sheet.css
css-zero-0.0.77 lib/generators/css_zero/add/templates/app/assets/stylesheets/sheet.css
css-zero-0.0.76 lib/generators/css_zero/add/templates/app/assets/stylesheets/sheet.css
css-zero-0.0.75 lib/generators/css_zero/add/templates/app/assets/stylesheets/sheet.css
css-zero-0.0.74 lib/generators/css_zero/add/templates/app/assets/stylesheets/sheet.css
css-zero-0.0.73 lib/generators/css_zero/add/templates/app/assets/stylesheets/sheet.css