浏览代码

公共样式

xiaohaizhao 2 年之前
父节点
当前提交
f6a78c4e7d
共有 1 个文件被更改,包括 17 次插入0 次删除
  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;
 /* 行为相关颜色 */