|
|
|
@import "../../style/themes/default";
|
|
|
|
@import "../../style/mixins/index";
|
|
|
|
|
|
|
|
@menu-prefix-cls: ant-menu;
|
|
|
|
|
|
|
|
// default theme
|
|
|
|
.@{menu-prefix-cls} {
|
|
|
|
outline: none;
|
|
|
|
margin-bottom: 0;
|
|
|
|
padding-left: 0; // Override default ul/ol
|
|
|
|
list-style: none;
|
|
|
|
z-index: @zindex-dropdown;
|
|
|
|
box-shadow: @box-shadow-base;
|
|
|
|
color: @text-color;
|
|
|
|
background: #fff;
|
|
|
|
line-height: 46px;
|
|
|
|
|
|
|
|
&-hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-item-group-list {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-item-group-title {
|
|
|
|
color: #999;
|
|
|
|
font-size: 12px;
|
|
|
|
line-height: 1.5;
|
|
|
|
padding: 8px 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-item,
|
|
|
|
&-submenu,
|
|
|
|
&-submenu-title {
|
|
|
|
cursor: pointer;
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-submenu &-sub {
|
|
|
|
cursor: initial;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-item > a {
|
|
|
|
display: block;
|
|
|
|
color: @text-color;
|
|
|
|
&:hover {
|
|
|
|
color: @text-color;
|
|
|
|
}
|
|
|
|
&:before {
|
|
|
|
position: absolute;
|
|
|
|
background-color: transparent;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
|
|
|
content: '';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-item:hover,
|
|
|
|
&-item-active,
|
|
|
|
&-submenu-active,
|
|
|
|
&-submenu-title:hover {
|
|
|
|
background-color: tint(@primary-color, 90%);
|
|
|
|
}
|
|
|
|
|
|
|
|
&-horizontal &-item,
|
|
|
|
&-horizontal &-submenu {
|
|
|
|
margin-top: -1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-horizontal > &-item:hover,
|
|
|
|
&-horizontal > &-item-active,
|
|
|
|
&-horizontal > &-submenu &-submenu-title:hover {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-item-selected {
|
|
|
|
color: @primary-color;
|
|
|
|
// fix chrome render bug
|
|
|
|
transform: translateZ(0);
|
|
|
|
> a,
|
|
|
|
> a:hover {
|
|
|
|
color: @primary-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-inline,
|
|
|
|
&-vertical {
|
|
|
|
border-right: 1px solid @border-color-split;
|
|
|
|
.@{menu-prefix-cls}-item {
|
|
|
|
border-right: 1px solid @border-color-split;
|
|
|
|
margin-left: -1px;
|
|
|
|
left: 1px;
|
|
|
|
position: relative;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-vertical &-sub {
|
|
|
|
border-right: 0;
|
|
|
|
.@{menu-prefix-cls}-item {
|
|
|
|
border-right: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-inline {
|
|
|
|
.@{menu-prefix-cls}-selected,
|
|
|
|
.@{menu-prefix-cls}-item-selected {
|
|
|
|
border-right: 2px solid @primary-color;
|
|
|
|
transform: translateZ(0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-submenu-horizontal > & {
|
|
|
|
top: 100%;
|
|
|
|
left: 0;
|
|
|
|
position: absolute;
|
|
|
|
min-width: 100%;
|
|
|
|
margin-top: 7px;
|
|
|
|
z-index: @zindex-dropdown;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-submenu-vertical {
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-submenu-vertical > & {
|
|
|
|
top: 0;
|
|
|
|
left: 100%;
|
|
|
|
position: absolute;
|
|
|
|
min-width: 160px;
|
|
|
|
margin-left: 4px;
|
|
|
|
z-index: @zindex-dropdown;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-item,
|
|
|
|
&-submenu-title {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0 20px;
|
|
|
|
position: relative;
|
|
|
|
display: block;
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
|
|
// Disabled state sets text to gray and nukes hover/tab effects
|
|
|
|
&.@{menu-prefix-cls}-item-disabled,
|
|
|
|
&.@{menu-prefix-cls}-submenu-disabled {
|
|
|
|
color: #999 !important;
|
|
|
|
cursor: not-allowed;
|
|
|
|
background: none;
|
|
|
|
> a {
|
|
|
|
color: #999 !important;
|
|