Browse Source

for css var hint

Michael Wang 3 years ago
parent
commit
371ac10854
3 changed files with 19 additions and 18 deletions
  1. 17 0
      src/styles/cssvar.css
  2. 1 18
      src/styles/global.css
  3. 1 0
      src/styles/nprogress.css

+ 17 - 0
src/styles/cssvar.css

@@ -0,0 +1,17 @@
+:root {
+  --header-bg-color: #191b37;
+  --app-container-bg-color: white;
+  --app-main-bg-color: #edf2fa;
+  --app-main-text-color: #283e76;
+  --app-min-width: 1280px;
+  --app-bold-text-color: #435488;
+  --app-small-header-text-color: #7584ac;
+  --app-score-color: #5d65ff;
+  --app-primary-button-bg-color: #5d65ff;
+  --app-ant-select-bg-override-color: #5d6d7d;
+  --app-undo-button-bg-color: #4ed885;
+
+  --app-main-font-size: 14px;
+  --app-secondary-font-size: 12px;
+  --app-title-font-size: 16px;
+}

+ 1 - 18
src/styles/global.css

@@ -1,23 +1,6 @@
 @import "./tailwind.css";
 @import "./tailwind.css";
 @import "./nprogress.css";
 @import "./nprogress.css";
-
-:root {
-  --header-bg-color: #191b37;
-  --app-container-bg-color: white;
-  --app-main-bg-color: #edf2fa;
-  --app-main-text-color: #283e76;
-  --app-min-width: 1280px;
-  --app-bold-text-color: #435488;
-  --app-small-header-text-color: #7584ac;
-  --app-score-color: #5d65ff;
-  --app-primary-button-bg-color: #5d65ff;
-  --app-ant-select-bg-override-color: #5d6d7d;
-  --app-undo-button-bg-color: #4ed885;
-
-  --app-main-font-size: 14px;
-  --app-secondary-font-size: 12px;
-  --app-title-font-size: 16px;
-}
+@import "./cssvar.css";
 
 
 body {
 body {
   margin: 0;
   margin: 0;

+ 1 - 0
src/styles/nprogress.css

@@ -20,6 +20,7 @@
   display: block;
   display: block;
   position: absolute;
   position: absolute;
   right: 0px;
   right: 0px;
+  /* top: var(--); */
   width: 100px;
   width: 100px;
   height: 100%;
   height: 100%;
   box-shadow: 0 0 10px #29d, 0 0 5px #29d;
   box-shadow: 0 0 10px #29d, 0 0 5px #29d;