dialogs.css
ASCII text
1dialog::backdrop { 2background: var(--color-modal-backdrop); 3opacity: 0; 4} 5 6dialog:modal { 7pointer-events: all; 8opacity: 1; 9visibility: visible; 10} 11 12dialog:modal::backdrop { 13opacity: 1; 14} 15 16dialog { 17max-width: 100vw; 18min-width: 100vw; 19max-height: 100vh; 20min-height: 100vh; 21border: none; 22padding: 0; 23margin: 0; 24position: fixed; 25display: flex; 26top: 0; 27left: 0; 28background: transparent; 29border: none; 30align-items: center; 31justify-content: center; 32opacity: 0; 33pointer-events: none; 34visibility: hidden; 35} 36 37dialog.sheet-left { 38justify-content: flex-start; 39align-items: stretch; 40} 41 42dialog.sheet-right { 43justify-content: flex-end; 44align-items: stretch; 45} 46 47dialog.sheet-top { 48justify-content: stretch; 49align-items: flex-start; 50} 51 52dialog.sheet-bottom { 53justify-content: stretch; 54align-items: flex-end; 55} 56 57dialog { 58pointer-events: none !important; 59} 60 61dialog > * { 62pointer-events: all; 63}