From f38f29761693d9a079397610cac939dfb1f600b9 Mon Sep 17 00:00:00 2001 From: 07akioni <07akioni2@gmail.com> Date: Fri, 24 Jul 2020 14:39:47 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=F0=9F=92=84=20update=20Menu.Item=20ho?= =?UTF-8?q?rizontal=20style=20(#25622)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * refactor: menu style * chore * chore * fix: site style --- components/menu/style/index.less | 10 ++++++++++ site/theme/template/Layout/Header/Navigation.less | 2 ++ 2 files changed, 12 insertions(+) diff --git a/components/menu/style/index.less b/components/menu/style/index.less index 33bf1d3590..5904a6df27 100644 --- a/components/menu/style/index.less +++ b/components/menu/style/index.less @@ -338,6 +338,12 @@ position: relative; top: 1px; display: inline-block; + margin: @menu-item-padding; + margin-top: 0; + margin-bottom: 0; + padding: @menu-item-padding; + padding-right: 0; + padding-left: 0; vertical-align: bottom; border-bottom: 2px solid transparent; @@ -350,6 +356,10 @@ } } + > .@{menu-prefix-cls}-submenu > .@{menu-prefix-cls}-submenu-title { + padding: 0; + } + > .@{menu-prefix-cls}-item { a { color: @menu-item-color; diff --git a/site/theme/template/Layout/Header/Navigation.less b/site/theme/template/Layout/Header/Navigation.less index 8ee9c22bfc..cc7e5cc75c 100644 --- a/site/theme/template/Layout/Header/Navigation.less +++ b/site/theme/template/Layout/Header/Navigation.less @@ -15,6 +15,8 @@ & > .ant-menu-submenu { min-width: 72px; height: @header-height; + margin-right: 0; + margin-left: 0; line-height: @header-height - @menu-item-border - 2px; border-top: @menu-item-border solid transparent;