Sha256: df1674d52d4c80196494986dc08941f8601b0964bf02de4b63490c5814e1a431
Contents?: true
Size: 1.17 KB
Versions: 3
Compression:
Stored size: 1.17 KB
Contents
.alert-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); 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; } } /* Prevent page scroll when alert dialog is open */ html:has(.alert-dialog[open]) { overflow: hidden; }
Version data entries
3 entries across 3 versions & 1 rubygems