瀏覽代碼

fix: 隐藏滚动条

wjc 3 天之前
父節點
當前提交
87e56993b4
共有 1 個文件被更改,包括 14 次插入5 次删除
  1. 14 5
      src/assets/css/theme.scss

+ 14 - 5
src/assets/css/theme.scss

@@ -1,9 +1,8 @@
-
 // 主题1:原始主题蓝色系
 // @import 'theme_1.scss';
 // 主题2:暗蓝色系
-@import '@/assets/css/function';
-@import 'theme_2.scss';
+@import "@/assets/css/function";
+@import "theme_2.scss";
 
 // 菜单颜色
 $menu-color: #072848;
@@ -20,10 +19,20 @@ $gap-padding: halfW(8);
   --title-bg: #111c31;
   --title-primary: #b9e3f4;
   --title-secondary: #a1a1a1;
-  --content-bg: #0C1425;
+  --content-bg: #0c1425;
   --primary: #007bd3;
-  --page-bg: #070D19;
+  --page-bg: #070d19;
+
+  scrollbar-width: none; /* firefox */
+  -ms-overflow-style: none; /* IE 10+ */
+  overflow-x: hidden;
+  overflow-y: auto;
 }
+
+:root::-webkit-scrollbar {
+  display: none; /* Chrome Safari */
+}
+
 .title-icon {
   width: halfW(28);
   height: halfW(28);