From e36eb1999794bd71e76482b92a0b0b20f49d0032 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 05 三月 2021 19:37:03 +0800 Subject: [PATCH] 2021-03-05 --- src/pc/components/navbar/normal-navbar/index.scss | 38 ++++++++++++++++++++++++++++++++++++++ 1 files changed, 38 insertions(+), 0 deletions(-) diff --git a/src/pc/components/navbar/normal-navbar/index.scss b/src/pc/components/navbar/normal-navbar/index.scss index bdba21d..c141a87 100644 --- a/src/pc/components/navbar/normal-navbar/index.scss +++ b/src/pc/components/navbar/normal-navbar/index.scss @@ -14,6 +14,7 @@ .navbar-wrap { margin: 0 auto; display: flex; + max-width: 100%; .logo { display: inline-block; @@ -22,13 +23,31 @@ max-height: 100%; } } + .logo.pointer { + cursor: pointer; + } .menu { flex: 1; display: inline-block; + font-size: inherit; + color: inherit; + .ant-menu { + background: transparent; + line-height: inherit; + font-size: inherit; + color: inherit; + .ant-menu-item:hover, .ant-menu-item-active, .ant-menu:not(.ant-menu-inline) .ant-menu-submenu-open, .ant-menu-submenu-active, .ant-menu-submenu-title:hover { + color: unset; + } + } + .ant-menu-horizontal > .ant-menu-item:hover, .ant-menu-horizontal > .ant-menu-submenu:hover, .ant-menu-horizontal > .ant-menu-item-active, .ant-menu-horizontal > .ant-menu-submenu-active, .ant-menu-horizontal > .ant-menu-item-open, .ant-menu-horizontal > .ant-menu-submenu-open, .ant-menu-horizontal > .ant-menu-item-selected, .ant-menu-horizontal > .ant-menu-submenu-selected { + color: unset; + } } .link { flex: 1; display: inline-block; + text-align: right; } } .card-control { @@ -111,4 +130,23 @@ } .top-menu-popover { padding-top: 0!important; +} +.normal-navbar-submenu { + .ant-menu-item-group { + float: left; + } + .ant-menu-item { + height: 32px; + line-height: 32px; + span { + display: inline-block; + width: 100%; + height: 100%; + padding: 0 16px 0 28px; + } + padding: 0; + } + .ant-menu .ant-menu-item-selected { + background-color: #ffffff; + } } \ No newline at end of file -- Gitblit v1.8.0