Sha256: aecbb60b6caee3ae63eb208abb16fc0b8c637d88b4d902e41fc6834ed14b2479
Contents?: true
Size: 1.26 KB
Versions: 1
Compression:
Stored size: 1.26 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(--width-lg); overflow: hidden; 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; } } /* Small screens */ @media (width < 40rem) { border-radius: 0; } } .dialog__close { position: absolute; inset: var(--size-4) var(--size-4) auto auto; } /* Prevent page scroll when dialog is open */ html:has(.dialog[open]) { overflow: hidden; }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
css-zero-0.0.15 | lib/generators/css_zero/add/templates/app/assets/stylesheets/dialog.css |