Skip to content

Commit

Permalink
style: 对固定底部的footer增加刘海屏安全区域
Browse files Browse the repository at this point in the history
  • Loading branch information
uxsi committed Sep 17, 2019
1 parent 54f804b commit 816a631
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion dist/style/weui.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/style/weui.min.css

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions src/style/widget/weui-footer/weui-footer.less
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,14 @@
.weui-footer_fixed-bottom{
position: fixed;
bottom: 16px;
bottom: calc(16px ~"+ constant(safe-area-inset-bottom)");
bottom: calc(16px ~"+ env(safe-area-inset-bottom)");
left: 0;
left: constant(safe-area-inset-left);
left: env(safe-area-inset-left);
right: 0;
right: constant(safe-area-inset-right);
right: env(safe-area-inset-right);
}
.weui-footer__links{
font-size: 0;
Expand Down

0 comments on commit 816a631

Please sign in to comment.