Преглед на файлове

:zap: 新增黑色主题

smallchill преди 6 години
родител
ревизия
e02f0cab55
променени са 3 файла, в които са добавени 64 реда и са изтрити 0 реда
  1. 4 0
      src/page/index/top/top-theme.vue
  2. 57 0
      src/styles/theme/dark.scss
  3. 3 0
      src/styles/theme/index.scss

+ 4 - 0
src/page/index/top/top-theme.vue

@@ -42,6 +42,10 @@ export default {
           name: "白色主题",
           value: "theme-white"
         },
+        {
+          name: "黑色主题",
+          value: "theme-dark"
+        },
         {
           name: "炫彩主题",
           value: "theme-star"

+ 57 - 0
src/styles/theme/dark.scss

@@ -0,0 +1,57 @@
+.theme-dark {
+  .avue-logo{
+    color: #fff;
+    background-color: #2c3643;
+    box-shadow: none;
+    .avue-logo_title{
+      font-size: 20px;
+      font-weight: 400;
+    }
+  }
+  .avue-top{
+    background-color: #2c3643;
+    box-shadow: none;
+    color:#ccc;
+    i, span{
+      color:#ccc;
+    }
+  }
+  .avue-main{
+    padding: 0 5px;
+  }
+  .avue-tags{
+    padding-left: 0;
+    background-color: #2c3643;
+    border-color:  transparent;
+    .el-tabs__item{
+      margin: 0 !important;
+      background-color: #262d37;
+      &.is-active{
+        color:#262d37 !important;
+        background-color:#fff !important;
+        border-color: #262d37 !important;
+      }
+    } 
+  }
+  .avue-main{
+    background-color: #2c3643;
+  }
+  .avue-sidebar{
+    background-color: #2c3643;
+    box-shadow: none;
+    .el-menu-item,.el-submenu__title{
+      i,span{
+          color:#ccc;
+      }
+      &:hover,&.is-active{
+        background: #262d37;
+          i,span{
+            color: #fff;
+          }
+          &:before{
+            background-color: #000;
+          }
+      }
+    }
+  }
+}

+ 3 - 0
src/styles/theme/index.scss

@@ -1,6 +1,9 @@
 // white
 @import './white.scss';
 
+//dark
+@import './dark.scss';
+
 // star
 @import './star.scss';