增加手机可用视口基础变量
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user