增加手机可用视口基础变量

This commit is contained in:
rain
2026-07-21 10:43:51 +08:00
parent 47afb100cd
commit 086fc3c7e4
+10
View File
@@ -1,9 +1,19 @@
page {
--app-viewport-height: 100vh;
--app-safe-top: env(safe-area-inset-top, 0px);
--app-safe-bottom: env(safe-area-inset-bottom, 0px);
--app-touch-min: 44px;
background: $paper;
color: $ink;
font-family: "STKaiti", "KaiTi", serif
}
@supports (height: 100dvh) {
page {
--app-viewport-height: 100dvh;
}
}
.page-shell {
min-height: 100vh;
box-sizing: border-box;