BottomSheet: sets max-height to 100vh on desktop
This commit is contained in:
parent
e74ae23612
commit
a24319911b
1 changed files with 7 additions and 0 deletions
|
@ -10,10 +10,13 @@
|
||||||
max-width: 560px;
|
max-width: 560px;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
overscroll-behavior: contain;
|
overscroll-behavior: contain;
|
||||||
|
max-height: 100vh;
|
||||||
|
max-height: 100dvh;
|
||||||
|
|
||||||
&::backdrop {
|
&::backdrop {
|
||||||
background-color: black;
|
background-color: black;
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
|
transition: opacity 220ms var(--tutu-anim-curve-std);
|
||||||
}
|
}
|
||||||
|
|
||||||
box-shadow: var(--tutu-shadow-e16);
|
box-shadow: var(--tutu-shadow-e16);
|
||||||
|
@ -39,5 +42,9 @@
|
||||||
&.animated {
|
&.animated {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
transform: none;
|
transform: none;
|
||||||
|
|
||||||
|
&::backdrop {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue