Skip to content

Commit 816a631

Browse files
committed
style: 对固定底部的footer增加刘海屏安全区域
1 parent 54f804b commit 816a631

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

dist/style/weui.css

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/style/weui.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/style/widget/weui-footer/weui-footer.less

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,14 @@
2828
.weui-footer_fixed-bottom{
2929
position: fixed;
3030
bottom: 16px;
31+
bottom: calc(16px ~"+ constant(safe-area-inset-bottom)");
32+
bottom: calc(16px ~"+ env(safe-area-inset-bottom)");
3133
left: 0;
34+
left: constant(safe-area-inset-left);
35+
left: env(safe-area-inset-left);
3236
right: 0;
37+
right: constant(safe-area-inset-right);
38+
right: env(safe-area-inset-right);
3339
}
3440
.weui-footer__links{
3541
font-size: 0;

0 commit comments

Comments
 (0)