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
+4
View File
@@ -0,0 +1,4 @@
.safe-area-inset-bottom() {
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
}