style: add safe-area mixin (#8062)

This commit is contained in:
neverland
2021-02-02 20:28:26 +08:00
committed by GitHub
parent 8ac3f43189
commit f630e7515b
8 changed files with 18 additions and 14 deletions
+2 -2
View File
@@ -1,4 +1,5 @@
@import '../style/var';
@import '../style/mixins/safe-area.less';
.van-address-list {
box-sizing: border-box;
@@ -13,9 +14,8 @@
box-sizing: border-box;
width: 100%;
padding: 0 @padding-md;
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
background-color: @white;
.safe-area-inset-bottom();
}
&__add {