web/dialogs: move duplicated dialog css to parent

This commit is contained in:
wukko
2024-07-27 12:53:57 +06:00
parent 82ecf16d79
commit 0a7747c497
3 changed files with 26 additions and 43 deletions

View File

@@ -95,6 +95,25 @@
-webkit-backdrop-filter: none !important;
}
:global(.dialog-body) {
--dialog-padding: 18px;
display: flex;
flex-direction: column;
align-items: center;
background: var(--popup-bg);
box-shadow:
0 0 0 2px var(--popup-stroke) inset,
0 0 60px 10px var(--popup-bg);
border-radius: 29px;
padding: var(--dialog-padding);
position: relative;
will-change: transform;
}
:global(.open .dialog-body) {
animation: modal-in 0.35s;
}
@@ -107,6 +126,10 @@
@media screen and (max-width: 535px) {
:global(.open .dialog-body) {
animation: modal-in-mobile 0.4s;
margin-bottom: calc(
var(--padding) / 2 + env(safe-area-inset-bottom)
);
box-shadow: 0 0 0 2px var(--popup-stroke) inset;
}
}