dialogs.css
ASCII text
1dialog::backdrop { 2background: var(--color-modal-backdrop); 3opacity: 0; 4} 5 6dialog[open]::backdrop { 7opacity: 1; 8} 9 10dialog { 11max-width: 100dvw; 12min-width: 100dvw; 13max-height: 100dvh; 14min-height: 100dvh; 15border: none; 16padding: 0; 17margin: 0; 18position: fixed; 19top: 0; 20left: 0; 21background: transparent; 22border: none; 23align-items: center; 24justify-content: center; 25} 26 27dialog[open] { 28display: flex; 29} 30 31dialog.sheet-left { 32justify-content: flex-start; 33align-items: stretch; 34} 35 36dialog.sheet-right { 37justify-content: flex-end; 38align-items: stretch; 39} 40 41dialog.sheet-top { 42justify-content: stretch; 43align-items: flex-start; 44} 45 46dialog.sheet-bottom { 47justify-content: stretch; 48align-items: flex-end; 49}