Skip to content

Commit

Permalink
tweak detail of inline collapse menu
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Aug 22, 2017
1 parent 1fdce5d commit a51a37c
Showing 1 changed file with 39 additions and 33 deletions.
72 changes: 39 additions & 33 deletions components/menu/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -180,39 +180,6 @@
}
}

&-vertical&-inline-collapsed,
&-inline-collapsed {
width: @menu-collapsed-width;
> .@{menu-prefix-cls}-item,
> .@{menu-prefix-cls}-submenu > .@{menu-prefix-cls}-submenu-title {
left: 0;
text-overflow: clip;
padding: 0 (@menu-collapsed-width - 16px) / 2;
&:after {
display: none;
}
.@{iconfont-css-prefix} {
font-size: 16px;
line-height: 42px;
margin: 0;
+ span {
max-width: 0;
display: inline-block;
opacity: 0;
}
}
}
&-tooltip {
pointer-events: none;
.@{iconfont-css-prefix} {
display: none;
}
a {
color: @text-color-dark;
}
}
}

&-submenu-horizontal > & {
top: 100%;
left: 0;
Expand Down Expand Up @@ -367,6 +334,45 @@
}
}

&-inline-collapsed {
width: @menu-collapsed-width;
> .@{menu-prefix-cls}-item,
> .@{menu-prefix-cls}-submenu > .@{menu-prefix-cls}-submenu-title {
left: 0;
text-overflow: clip;
padding: 0 (@menu-collapsed-width - 16px) / 2;
&:after {
display: none;
}
.@{iconfont-css-prefix} {
font-size: 16px;
line-height: 42px;
margin: 0;
+ span {
max-width: 0;
display: inline-block;
opacity: 0;
}
}
}
&-tooltip {
pointer-events: none;
.@{iconfont-css-prefix} {
display: none;
}
a {
color: @text-color-dark;
}
}
}

&-vertical&-inline-collapsed {
> .@{menu-prefix-cls}-item,
> .@{menu-prefix-cls}-submenu > .@{menu-prefix-cls}-submenu-title {
text-align: center;
}
}

&-item-group-list {
.@{menu-prefix-cls}-item,
.@{menu-prefix-cls}-submenu-title {
Expand Down

0 comments on commit a51a37c

Please sign in to comment.