瀏覽代碼

Fix some detail style

afc163 7 年之前
父節點
當前提交
d247ab2602
共有 2 個文件被更改,包括 6 次插入5 次删除
  1. 5 3
      src/components/GlobalHeader/index.less
  2. 1 2
      src/components/SiderMenu/index.less

+ 5 - 3
src/components/GlobalHeader/index.less

@@ -1,5 +1,7 @@
 @import '~antd/lib/style/themes/default.less';
 
+@pro-header-hover-bg: rgba(0, 0, 0, 0.025);
+
 .header {
   height: 64px;
   padding: 0 12px 0 0;
@@ -39,7 +41,7 @@ i.trigger {
   transition: all 0.3s, padding 0s;
   padding: 22px 24px;
   &:hover {
-    background: @primary-1;
+    background: @pro-header-hover-bg;
   }
 }
 
@@ -58,10 +60,10 @@ i.trigger {
       color: @text-color;
     }
     &:hover {
-      background: @primary-1;
+      background: @pro-header-hover-bg;
     }
     :global(&.ant-popover-open) {
-      background: @primary-1;
+      background: @pro-header-hover-bg;
     }
   }
   .search {

+ 1 - 2
src/components/SiderMenu/index.less

@@ -45,8 +45,7 @@
     background-color: white;
     .logo {
       background: white;
-      border-bottom: 1px solid @border-color-split;
-      box-shadow: 1px 0 0 0 @border-color-split;
+      box-shadow: 1px 1px 0 0 @border-color-split;
       h1 {
         color: @primary-color;
       }