From d247ab2602f74564b96978fab3a2692e7219b3ec Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 5 Sep 2018 23:16:01 +0800 Subject: [PATCH] Fix some detail style --- src/components/GlobalHeader/index.less | 8 +++++--- src/components/SiderMenu/index.less | 3 +-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/components/GlobalHeader/index.less b/src/components/GlobalHeader/index.less index a3285a6a..1a3cf7db 100644 --- a/src/components/GlobalHeader/index.less +++ b/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 { diff --git a/src/components/SiderMenu/index.less b/src/components/SiderMenu/index.less index 4be28b6d..a0feac3d 100644 --- a/src/components/SiderMenu/index.less +++ b/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; } -- GitLab