Sha256: 71a2aa180577942d9c56be2141af987e9d2dd767d9f04e9fac4431864714cdee
Contents?: true
Size: 1.34 KB
Versions: 1
Compression:
Stored size: 1.34 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); 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 */ &:is([open], :popover-open) { opacity: 1; transform: var(--scale-100); } &:is([open], :popover-open)::backdrop { opacity: 1; } /* Out animation */ @starting-style { &:is([open], :popover-open) { opacity: 0; transform: var(--scale-95); } &:is([open], :popover-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:is([open], :popover-open)) { overflow: hidden; }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
css-zero-0.0.14 | lib/generators/css_zero/add/templates/app/assets/stylesheets/dialog.css |