tutu/src/material/BottomSheet.module.css

51 lines
922 B
CSS
Raw Normal View History

2024-07-22 13:57:04 +00:00
.bottomSheet {
2024-08-05 07:33:00 +00:00
composes: surface from "material.module.css";
2024-07-22 13:57:04 +00:00
border: none;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
padding: 0;
width: 100%;
max-width: 560px;
border-radius: 2px;
overscroll-behavior: contain;
max-height: 100vh;
max-height: 100dvh;
2024-07-22 13:57:04 +00:00
2024-08-12 13:55:26 +00:00
&::backdrop {
background-color: black;
opacity: 0.5;
transition: opacity 220ms var(--tutu-anim-curve-std);
2024-08-12 13:55:26 +00:00
}
2024-07-22 13:57:04 +00:00
box-shadow: var(--tutu-shadow-e16);
:global(.MuiToolbar-root) > :global(.MuiButtonBase-root):first-child {
margin-left: -0.5em;
margin-right: 24px;
}
@media (max-width: 560px) {
& {
left: 0;
2024-08-05 11:05:39 +00:00
top: 0;
2024-07-22 13:57:04 +00:00
transform: none;
bottom: 0;
height: 100vh;
height: 100dvh;
2024-08-13 07:09:18 +00:00
max-height: 100vh;
max-height: 100dvh;
2024-07-22 13:57:04 +00:00
}
}
&.animated {
position: absolute;
transform: none;
&::backdrop {
opacity: 0;
}
}
2024-08-05 07:33:00 +00:00
}