Browse Source

公共样式

xiaohaizhao 2 years ago
parent
commit
f6a78c4e7d
1 changed files with 17 additions and 0 deletions
  1. 17 0
      uni.scss

+ 17 - 0
uni.scss

@@ -42,6 +42,23 @@ body {
     background: #052E5D;
 }
 
+
+/* 适配苹果手机底部安全距离 */
+.safety {
+    height: constant(safe-area-inset-bottom);
+    height: env(safe-area-inset-bottom);
+}
+
+/* 适配空内容 */
+/deep/ .u-empty .u-icon .u-icon__icon {
+    font-size: 90px !important;
+    line-height: 90px !important;
+}
+
+/deep/ .u-empty__text {
+    font-size: 14px !important;
+}
+
 /* 颜色变量 */
 $my-color-main: #007aff;
 /* 行为相关颜色 */