Bladeren bron

菜单样式优化

jqh 5 jaren geleden
bovenliggende
commit
f75baefa40

+ 11 - 1
resources/assets/adminlte/scss/_main-sidebar.scss

@@ -257,7 +257,7 @@
       }
       p i {
         margin-right: 0;
-        margin-top: 4px;
+        margin-top: 2px;
       }
     }
 
@@ -490,7 +490,17 @@
       @include sidebar-color($primary)
     }
   }
+
+  .active-bg-light {
+    .nav-item {
+      & > .nav-link.active {
+        @include sidebar-color-snd($primary)
+      }
+    }
+  }
 }
+
+
 .sidebar-mini .main-sidebar:not(.sidebar-no-expand),
 .sidebar-mini-md .main-sidebar:not(.sidebar-no-expand),
 .sidebar-mini .main-sidebar:not(.sidebar-no-expand):hover,

+ 11 - 5
resources/assets/adminlte/scss/mixins/_sidebar.scss

@@ -4,11 +4,17 @@
 
 // Sidebar Color
 @mixin sidebar-color($color) {
-    background-color: rgba($color, .15)!important;
-    //background-image: linear-gradient(118deg, rgba($color, .95), rgba($color,.65));
-    color: $color!important;
-    font-weight: 700;
-    box-shadow: 0 0 8px 1px rgba($color, .15);
+    background-color: transparent!important;
+    background-image: linear-gradient(118deg, rgba($color, .95), rgba($color,.7));
+    color: color-yiq($color);
+    box-shadow: 0 0 8px 1px rgba($color, .7);
+}
+
+@mixin sidebar-color-snd($color) {
+  background-color: rgba($color, .15)!important;
+  color: $color!important;
+  font-weight: 700;
+  box-shadow: 0 0 8px 1px rgba($color, .15);
 }
 
 // Sidebar Mini Breakpoints

File diff suppressed because it is too large
+ 0 - 0
resources/dist/adminlte/adminlte-blue-light.css


File diff suppressed because it is too large
+ 0 - 0
resources/dist/adminlte/adminlte-blue.css


File diff suppressed because it is too large
+ 0 - 0
resources/dist/adminlte/adminlte-green.css


File diff suppressed because it is too large
+ 0 - 0
resources/dist/adminlte/adminlte.css


Some files were not shown because too many files changed in this diff