2024-10-31 22:00:32 +08:00
|
|
|
.BottomSheet {
|
2024-07-22 21:57:04 +08:00
|
|
|
border: none;
|
2024-10-30 13:07:55 +08:00
|
|
|
position: fixed;
|
2024-07-22 21:57:04 +08:00
|
|
|
left: 50%;
|
|
|
|
top: 50%;
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
padding: 0;
|
|
|
|
width: 100%;
|
|
|
|
max-width: 560px;
|
|
|
|
border-radius: 2px;
|
2024-09-27 18:10:23 +08:00
|
|
|
overscroll-behavior: none;
|
2024-08-22 16:50:12 +08:00
|
|
|
max-height: 100vh;
|
|
|
|
max-height: 100dvh;
|
2024-10-30 13:07:55 +08:00
|
|
|
height: 95%;
|
|
|
|
contain: strict;
|
2024-10-31 22:00:32 +08:00
|
|
|
contain-intrinsic-size: auto 560px auto 95vh;
|
2024-07-22 21:57:04 +08:00
|
|
|
|
2024-10-30 13:07:55 +08:00
|
|
|
|
2024-10-31 21:50:36 +08:00
|
|
|
&::backdrop {
|
2024-10-31 22:33:29 +08:00
|
|
|
background: transparent;
|
|
|
|
|
|
|
|
transition: background-color 120ms var(--tutu-anim-curve-std);
|
|
|
|
transition-behavior: allow-discrete;
|
2024-08-12 21:55:26 +08:00
|
|
|
}
|
|
|
|
|
2024-07-22 21:57:04 +08:00
|
|
|
box-shadow: var(--tutu-shadow-e16);
|
|
|
|
|
|
|
|
@media (max-width: 560px) {
|
|
|
|
& {
|
|
|
|
left: 0;
|
2024-08-05 19:05:39 +08:00
|
|
|
top: 0;
|
2024-07-22 21:57:04 +08:00
|
|
|
transform: none;
|
|
|
|
bottom: 0;
|
|
|
|
height: 100vh;
|
|
|
|
height: 100dvh;
|
2024-10-30 13:07:55 +08:00
|
|
|
|
2024-11-04 00:13:45 +08:00
|
|
|
contain-intrinsic-size: auto 100vw 100vh;
|
|
|
|
contain-intrinsic-size: auto 100dvw 100dvh;
|
2024-07-22 21:57:04 +08:00
|
|
|
}
|
|
|
|
}
|
2024-08-12 17:25:03 +08:00
|
|
|
|
|
|
|
&.animated {
|
2024-10-31 22:33:29 +08:00
|
|
|
position: fixed;
|
2024-09-27 18:04:09 +08:00
|
|
|
overflow: hidden;
|
|
|
|
will-change: width, height, top, left;
|
2024-08-22 16:50:12 +08:00
|
|
|
|
2024-09-27 18:04:09 +08:00
|
|
|
& * {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2024-08-12 17:25:03 +08:00
|
|
|
}
|
2024-09-25 19:30:05 +08:00
|
|
|
|
|
|
|
&.bottom {
|
|
|
|
top: unset;
|
|
|
|
transform: translateX(-50%);
|
|
|
|
bottom: 0;
|
2024-10-31 22:33:29 +08:00
|
|
|
height: auto;
|
2024-10-30 13:07:55 +08:00
|
|
|
contain: content;
|
|
|
|
contain-intrinsic-size: unset;
|
2024-09-28 22:38:44 +08:00
|
|
|
|
2024-10-31 22:33:29 +08:00
|
|
|
&[open]::backdrop {
|
|
|
|
background: var(--tutu-color-shadow-l1);
|
|
|
|
}
|
|
|
|
|
2024-09-28 22:38:44 +08:00
|
|
|
@media (max-width: 560px) {
|
|
|
|
& {
|
|
|
|
transform: none;
|
2024-10-31 22:33:29 +08:00
|
|
|
height: auto;
|
2024-09-28 22:38:44 +08:00
|
|
|
}
|
|
|
|
}
|
2024-09-25 19:30:05 +08:00
|
|
|
}
|
2024-10-31 22:33:29 +08:00
|
|
|
}
|