Sha256: 9b77167125613305f656beaaf2282d8db884f4ce8d57dfbdd88da43f45532134

Contents?: true

Size: 1.33 KB

Versions: 1

Compression:

Stored size: 1.33 KB

Contents

.dialog {
  background-color: var(--color-bg);
  border-width: var(--border);
  border-radius: var(--rounded-lg);
  box-shadow: var(--shadow-lg);
  color: var(--color-text);
  inline-size: var(--size-full);
  margin: auto;
  max-inline-size: var(--dialog-width, var(--width-lg));
  padding: var(--size-6);

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

  /* Setup animation */
  opacity: 0;
  transform: var(--scale-95);
  transition-behavior: allow-discrete;
  transition-duration: var(--time-150);
  transition-property: display, overlay, opacity, transform;

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

  /* In animation */
  &[open] {
    opacity: 1; transform: var(--scale-100);
  }

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

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

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

  @media (width < 40rem) {
    border-end-end-radius: 0;
    border-end-start-radius: 0;
    margin-block-end: 0;
    max-inline-size: none !important;
  }
}

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

  @media (width < 40rem) {
    display: none;
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
css-zero-0.0.26 lib/generators/css_zero/add/templates/app/assets/stylesheets/dialog.css