增加手机可用视口基础变量
This commit is contained in:
@@ -1,9 +1,19 @@
|
|||||||
page {
|
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;
|
background: $paper;
|
||||||
color: $ink;
|
color: $ink;
|
||||||
font-family: "STKaiti", "KaiTi", serif
|
font-family: "STKaiti", "KaiTi", serif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@supports (height: 100dvh) {
|
||||||
|
page {
|
||||||
|
--app-viewport-height: 100dvh;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.page-shell {
|
.page-shell {
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|||||||
Reference in New Issue
Block a user