converted modals to native dialog
This commit is contained in:
@@ -138,3 +138,24 @@ body ::-webkit-scrollbar-thumb:hover,
|
||||
white-space: nowrap;
|
||||
border-width: 0;
|
||||
}
|
||||
|
||||
/* Native dialog styles */
|
||||
dialog {
|
||||
background: transparent;
|
||||
border: none;
|
||||
padding: 0;
|
||||
max-width: 100vw;
|
||||
max-height: 100vh;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
dialog::backdrop {
|
||||
background: rgba(9, 9, 11, 0.8);
|
||||
backdrop-filter: blur(4px);
|
||||
}
|
||||
|
||||
dialog[open] {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user