浏览代码

feat: add Menu dark module (#1538)

yangjinjun3 3 年之前
父节点
当前提交
44bc0bb362
共有 2 个文件被更改,包括 20 次插入0 次删除
  1. 12 0
      src/packages/__VUE/menu/index.scss
  2. 8 0
      src/packages/__VUE/menuitem/index.scss

+ 12 - 0
src/packages/__VUE/menu/index.scss

@@ -1,3 +1,15 @@
+.nut-theme-dark {
+  .nut-menu {
+    .nut-menu__bar {
+      background-color: $dark-background;
+
+      .nut-menu__item {
+        color: $dark-color;
+      }
+    }
+  }
+}
+
 .nut-menu {
   &.scroll-fixed {
     position: fixed;

+ 8 - 0
src/packages/__VUE/menuitem/index.scss

@@ -1,3 +1,11 @@
+.nut-theme-dark {
+  .nut-menu-item__content {
+    .nut-menu-item__option {
+      color: $dark-color;
+    }
+  }
+}
+
 .nut-menu-item {
   .active {
     font-weight: 500;