Browse Source

feat: add Menu dark module (#1538)

yangjinjun3 3 years ago
parent
commit
44bc0bb362
2 changed files with 20 additions and 0 deletions
  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;