tutu/src/platform/StackedRouter.css

59 lines
987 B
CSS
Raw Normal View History

2024-11-16 20:04:55 +08:00
.StackedPage {
container: StackedPage / size;
display: contents;
max-width: 100vw;
max-width: 100dvw;
contain: layout;
2024-11-16 20:04:55 +08:00
}
dialog.StackedPage {
border: none;
position: fixed;
padding: 0;
overscroll-behavior: none;
width: 560px;
max-height: 100vh;
max-height: 100dvh;
background: none;
display: none;
contain: strict;
contain-intrinsic-size: auto 560px auto 100vh;
contain-intrinsic-size: auto 560px auto 100dvh;
content-visibility: auto;
2024-11-16 22:37:05 +08:00
background: var(--tutu-color-surface);
2024-11-16 20:04:55 +08:00
box-shadow: var(--tutu-shadow-e16);
2024-11-17 17:37:42 +08:00
margin-left: auto;
margin-right: auto;
2024-11-16 20:04:55 +08:00
@media (max-width: 560px) {
& {
width: 100vw;
width: 100dvw;
height: 100vh;
height: 100dvh;
contain-intrinsic-size: 100vw 100vh;
contain-intrinsic-size: 100dvw 100dvh;
}
}
&[open] {
display: contents;
}
&::backdrop {
background: none;
}
2024-11-17 17:37:42 +08:00
&.animating {
overflow: hidden;
* {
overflow: hidden;
}
}
2024-11-16 20:04:55 +08:00
}