mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 04:39:58 +00:00
web/dialogs: reduce margin on mobile
This commit is contained in:
parent
7ee99ad30f
commit
bdd572ea51
2 changed files with 4 additions and 4 deletions
|
@ -169,7 +169,7 @@
|
|||
@media screen and (max-width: 535px) {
|
||||
.picker-dialog {
|
||||
margin-bottom: calc(
|
||||
var(--dialog-padding) + env(safe-area-inset-bottom)
|
||||
var(--padding) / 2 + env(safe-area-inset-bottom)
|
||||
);
|
||||
box-shadow: 0 0 0 2px var(--popup-stroke) inset;
|
||||
}
|
||||
|
|
|
@ -98,14 +98,14 @@
|
|||
text-align: center;
|
||||
max-width: 340px;
|
||||
width: calc(
|
||||
100% - var(--padding) * 2 - var(--dialog-padding) * 2
|
||||
100% - var(--padding) - var(--dialog-padding) * 2
|
||||
);
|
||||
background: var(--popup-bg);
|
||||
box-shadow:
|
||||
0 0 0 2px var(--popup-stroke) inset,
|
||||
0 0 60px 10px var(--popup-bg);
|
||||
padding: var(--dialog-padding);
|
||||
margin: var(--padding);
|
||||
margin: calc(var(--padding) / 2);
|
||||
border-radius: 29px;
|
||||
position: relative;
|
||||
will-change: transform;
|
||||
|
@ -148,7 +148,7 @@
|
|||
|
||||
@media screen and (max-width: 535px) {
|
||||
.small-dialog {
|
||||
margin-bottom: calc(var(--padding) + env(safe-area-inset-bottom));
|
||||
margin-bottom: calc(var(--padding) / 2 + env(safe-area-inset-bottom));
|
||||
box-shadow: 0 0 0 2px var(--popup-stroke) inset;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue