From d4ccdc786a21a5f6a47b11bafd533e92ca7bc7ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A9=BA=E6=83=B3=E5=AE=B6?= Date: Sun, 1 Sep 2019 14:56:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DGlobalHeader=E4=B8=ADRightCon?= =?UTF-8?q?tent=E6=A0=B7=E5=BC=8F=E9=97=AE=E9=A2=98=20(#5171)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 修复GlobalHeader中RightContent样式问题 修改GlobalHeader中RightContent在dark模式下, @media only screen and (max-width: @screen-md) 注:(768px)的样式错误 * 修复dark&topmenu模式下GlobalHeader中图标颜色问题 修复dark&topmenu模式下GlobalHeader中图标颜色问题 --- src/components/GlobalHeader/index.less | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/components/GlobalHeader/index.less b/src/components/GlobalHeader/index.less index cbb5b3a6..37a1c636 100644 --- a/src/components/GlobalHeader/index.less +++ b/src/components/GlobalHeader/index.less @@ -91,6 +91,23 @@ } } +:global(.ant-pro-global-header) { + .dark { + .action { + color: @text-color; + > i { + color: @text-color; + } + &:hover { + color: rgba(255, 255, 255, 0.85); + > i { + color: rgba(255, 255, 255, 0.85); + } + } + } + } +} + @media only screen and (max-width: @screen-md) { :global(.ant-divider-vertical) { vertical-align: unset; @@ -110,7 +127,6 @@ position: absolute; top: 0; right: 12px; - background: #fff; .account { .avatar { margin-right: 0;