Skip to content

Commit

Permalink
refactor: Menu.Item horizontal style
Browse files Browse the repository at this point in the history
  • Loading branch information
07akioni authored and afc163 committed Jul 15, 2020
1 parent 976d0d6 commit 065f334
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions components/menu/style/index.less
Expand Up @@ -338,18 +338,38 @@
position: relative;
top: 1px;
display: inline-block;
padding: @menu-item-padding;
vertical-align: bottom;
border-bottom: 2px solid transparent;

&::after {
position: absolute;
right: 0;
bottom: 0;
left: 0;
height: 2px;
margin: @menu-item-padding;
margin-top: 0;
margin-bottom: 0;
background-color: transparent;
transition: background-color 0.3s @ease-in-out;
content: '';
}

&:hover,
&-active,
&-open,
&-selected {
color: @menu-highlight-color;
border-bottom: 2px solid @menu-highlight-color;
&::after {
background-color: @menu-highlight-color;
}
}
}

.@{menu-prefix-cls}-submenu-title {
padding: 0;
}

> .@{menu-prefix-cls}-item {
a {
color: @menu-item-color;
Expand Down

0 comments on commit 065f334

Please sign in to comment.