2016-04-27 20:44:36 +08:00
|
|
|
@import "../../style/themes/default";
|
|
|
|
@import "../../style/mixins/index";
|
|
|
|
|
2016-09-14 16:18:33 +08:00
|
|
|
@menu-prefix-cls: ~"@{ant-prefix}-menu";
|
2015-08-06 16:49:54 +08:00
|
|
|
|
2015-11-12 14:57:54 +08:00
|
|
|
// default theme
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{menu-prefix-cls} {
|
2017-09-22 18:33:29 +08:00
|
|
|
.reset-component;
|
2015-08-06 16:49:54 +08:00
|
|
|
outline: none;
|
|
|
|
margin-bottom: 0;
|
|
|
|
padding-left: 0; // Override default ul/ol
|
|
|
|
list-style: none;
|
2015-12-02 11:53:37 +08:00
|
|
|
box-shadow: @box-shadow-base;
|
2018-01-25 10:59:49 +08:00
|
|
|
color: @menu-item-color;
|
|
|
|
background: @menu-bg;
|
2017-10-12 18:14:07 +08:00
|
|
|
line-height: 0; // Fix display inline-block gap
|
2017-09-06 13:46:45 +08:00
|
|
|
transition: background .3s, width .2s;
|
2017-10-12 18:14:07 +08:00
|
|
|
.clearfix;
|
2015-08-06 16:49:54 +08:00
|
|
|
|
2017-09-22 18:33:29 +08:00
|
|
|
ul,
|
|
|
|
ol {
|
|
|
|
list-style: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
2015-11-04 23:14:49 +08:00
|
|
|
&-hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2015-08-06 16:49:54 +08:00
|
|
|
&-item-group-title {
|
2018-01-25 10:59:49 +08:00
|
|
|
color: @menu-item-group-title-color;
|
2016-11-08 20:57:07 +08:00
|
|
|
font-size: @font-size-base;
|
2017-09-15 20:36:40 +08:00
|
|
|
line-height: @line-height-base;
|
2015-12-11 16:55:30 +08:00
|
|
|
padding: 8px 16px;
|
2017-09-15 20:36:40 +08:00
|
|
|
transition: all .3s;
|
2015-08-06 16:49:54 +08:00
|
|
|
}
|
|
|
|
|
2016-03-22 20:43:57 +08:00
|
|
|
&-submenu,
|
2017-11-29 21:00:16 +08:00
|
|
|
&-submenu-inline {
|
2017-07-27 19:43:45 +08:00
|
|
|
transition: border-color .3s @ease-in-out, background .3s @ease-in-out, padding .15s @ease-in-out;
|
|
|
|
}
|
2015-08-14 18:16:41 +08:00
|
|
|
|
2017-02-16 15:35:52 +08:00
|
|
|
&-item:active,
|
|
|
|
&-submenu-title:active {
|
2018-01-25 10:59:49 +08:00
|
|
|
background: @menu-item-active-bg;
|
2017-02-16 15:35:52 +08:00
|
|
|
}
|
|
|
|
|
2016-03-22 20:43:57 +08:00
|
|
|
&-submenu &-sub {
|
|
|
|
cursor: initial;
|
2017-07-27 19:43:45 +08:00
|
|
|
transition: background .3s @ease-in-out, padding .3s @ease-in-out;
|
2016-03-22 20:43:57 +08:00
|
|
|
}
|
|
|
|
|
2016-01-14 11:54:46 +08:00
|
|
|
&-item > a {
|
|
|
|
display: block;
|
2018-01-25 10:59:49 +08:00
|
|
|
color: @menu-item-color;
|
2016-01-14 11:54:46 +08:00
|
|
|
&:hover {
|
2018-01-25 10:59:49 +08:00
|
|
|
color: @menu-highlight-color;
|
2016-01-14 11:54:46 +08:00
|
|
|
}
|
2017-04-12 14:42:07 +08:00
|
|
|
&:focus {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2016-06-25 15:09:23 +08:00
|
|
|
&:before {
|
|
|
|
position: absolute;
|
|
|
|
background-color: transparent;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
|
|
|
content: '';
|
|
|
|
}
|
2016-01-14 11:54:46 +08:00
|
|
|
}
|
|
|
|
|
2016-11-15 14:12:25 +08:00
|
|
|
&-item-divider {
|
|
|
|
height: 1px;
|
|
|
|
overflow: hidden;
|
|
|
|
background-color: @border-color-split;
|
|
|
|
line-height: 0;
|
|
|
|
}
|
|
|
|
|
2016-06-25 15:09:23 +08:00
|
|
|
&-item:hover,
|
2015-11-14 16:37:42 +08:00
|
|
|
&-item-active,
|
2017-02-22 14:47:01 +08:00
|
|
|
&:not(&-inline) &-submenu-open,
|
2016-04-05 17:42:32 +08:00
|
|
|
&-submenu-active,
|
2015-11-14 16:37:42 +08:00
|
|
|
&-submenu-title:hover {
|
2018-01-25 10:59:49 +08:00
|
|
|
color: @menu-highlight-color;
|
2015-08-06 16:49:54 +08:00
|
|
|
}
|
|
|
|
|
2015-11-14 20:41:10 +08:00
|
|
|
&-horizontal &-item,
|
|
|
|
&-horizontal &-submenu {
|
|
|
|
margin-top: -1px;
|
|
|
|
}
|
|
|
|
|
2016-06-25 15:09:23 +08:00
|
|
|
&-horizontal > &-item:hover,
|
2015-11-14 16:37:42 +08:00
|
|
|
&-horizontal > &-item-active,
|
|
|
|
&-horizontal > &-submenu &-submenu-title:hover {
|
|
|
|
background-color: transparent;
|
2015-08-06 16:49:54 +08:00
|
|
|
}
|
|
|
|
|
2015-11-14 16:37:42 +08:00
|
|
|
&-item-selected {
|
2018-01-25 10:59:49 +08:00
|
|
|
color: @menu-highlight-color;
|
2016-04-13 14:46:08 +08:00
|
|
|
> a,
|
|
|
|
> a:hover {
|
2018-01-25 10:59:49 +08:00
|
|
|
color: @menu-highlight-color;
|
2016-04-13 14:46:08 +08:00
|
|
|
}
|
2015-11-14 16:37:42 +08:00
|
|
|
}
|
2015-11-05 19:26:53 +08:00
|
|
|
|
2016-12-04 19:26:11 +08:00
|
|
|
&:not(&-horizontal) &-item-selected {
|
2018-01-25 10:59:49 +08:00
|
|
|
background-color: @menu-item-active-bg;
|
2016-12-04 19:26:11 +08:00
|
|
|
}
|
|
|
|
|
2017-11-11 00:07:03 +08:00
|
|
|
&-inline,
|
|
|
|
&-vertical,
|
|
|
|
&-vertical-left {
|
|
|
|
border-right: @border-width-base @border-style-base @border-color-split;
|
|
|
|
}
|
|
|
|
&-vertical-right {
|
|
|
|
border-left: @border-width-base @border-style-base @border-color-split;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-vertical&-sub,
|
|
|
|
&-vertical-left&-sub,
|
|
|
|
&-vertical-right&-sub {
|
2016-04-27 15:25:57 +08:00
|
|
|
border-right: 0;
|
2017-11-29 21:00:16 +08:00
|
|
|
padding: 0;
|
|
|
|
transform-origin: 0 0;
|
2016-04-27 15:25:57 +08:00
|
|
|
.@{menu-prefix-cls}-item {
|
|
|
|
border-right: 0;
|
2017-02-16 17:31:08 +08:00
|
|
|
margin-left: 0;
|
|
|
|
left: 0;
|
2017-04-02 14:43:34 +08:00
|
|
|
&:after {
|
|
|
|
border-right: 0;
|
|
|
|
}
|
2017-02-16 17:31:08 +08:00
|
|
|
}
|
2017-11-29 21:00:16 +08:00
|
|
|
> .@{menu-prefix-cls}-item,
|
|
|
|
> .@{menu-prefix-cls}-submenu {
|
|
|
|
transform-origin: 0 0;
|
|
|
|
}
|
2016-04-27 15:25:57 +08:00
|
|
|
}
|
|
|
|
|
2017-11-11 00:07:03 +08:00
|
|
|
&-horizontal&-sub,
|
|
|
|
&-vertical&-sub,
|
|
|
|
&-vertical-left&-sub,
|
|
|
|
&-vertical-right&-sub {
|
2015-08-10 17:57:28 +08:00
|
|
|
min-width: 160px;
|
2015-08-06 16:49:54 +08:00
|
|
|
}
|
|
|
|
|
2015-11-14 17:51:09 +08:00
|
|
|
&-item,
|
|
|
|
&-submenu-title {
|
2017-11-29 21:00:16 +08:00
|
|
|
cursor: pointer;
|
2015-08-06 16:49:54 +08:00
|
|
|
margin: 0;
|
2016-05-07 16:03:51 +08:00
|
|
|
padding: 0 20px;
|
2015-08-06 16:49:54 +08:00
|
|
|
position: relative;
|
|
|
|
display: block;
|
|
|
|
white-space: nowrap;
|
2017-11-29 21:00:16 +08:00
|
|
|
transition: color .3s @ease-in-out, border-color .3s @ease-in-out, background .3s @ease-in-out, padding .15s @ease-in-out;
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{iconfont-css-prefix} {
|
2016-05-16 14:35:24 +08:00
|
|
|
min-width: 14px;
|
2017-11-06 21:28:51 +08:00
|
|
|
margin-right: 10px;
|
2018-09-08 15:46:26 +08:00
|
|
|
font-size: @font-size-base;
|
2017-07-27 19:43:45 +08:00
|
|
|
transition: font-size .15s @ease-out, margin .3s @ease-in-out;
|
2017-06-30 21:07:01 +08:00
|
|
|
+ span {
|
2017-07-27 19:43:45 +08:00
|
|
|
transition: opacity .3s @ease-in-out, width .3s @ease-in-out;
|
2017-07-25 10:30:36 +08:00
|
|
|
opacity: 1;
|
2017-06-30 21:07:01 +08:00
|
|
|
}
|
2016-05-07 16:03:51 +08:00
|
|
|
}
|
2015-08-06 16:49:54 +08:00
|
|
|
}
|
2016-04-05 17:42:32 +08:00
|
|
|
|
2015-08-06 16:49:54 +08:00
|
|
|
& > &-item-divider {
|
|
|
|
height: 1px;
|
|
|
|
margin: 1px 0;
|
|
|
|
overflow: hidden;
|
|
|
|
padding: 0;
|
|
|
|
line-height: 0;
|
2017-03-25 20:31:24 +08:00
|
|
|
background-color: @border-color-split;
|
2015-08-06 16:49:54 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-submenu {
|
2017-11-11 00:07:03 +08:00
|
|
|
&-popup {
|
|
|
|
position: absolute;
|
2017-11-20 10:55:02 +08:00
|
|
|
border-radius: @border-radius-base;
|
2017-11-20 14:58:03 +08:00
|
|
|
z-index: @zindex-dropdown;
|
2018-08-22 00:49:53 +08:00
|
|
|
|
2018-08-30 11:32:40 +08:00
|
|
|
.submenu-title-wrapper {
|
|
|
|
padding-right: 20px;
|
|
|
|
}
|
|
|
|
|
2018-08-23 21:14:16 +08:00
|
|
|
&:before {
|
2018-08-22 00:49:53 +08:00
|
|
|
position: absolute;
|
|
|
|
top: -7px;
|
2018-09-10 11:39:03 +08:00
|
|
|
left: 0;
|
|
|
|
right: 0;
|
2018-08-22 00:49:53 +08:00
|
|
|
bottom: 0;
|
|
|
|
content: ' ';
|
|
|
|
opacity: .0001;
|
|
|
|
}
|
2017-11-11 00:07:03 +08:00
|
|
|
}
|
2015-08-06 16:49:54 +08:00
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
> .@{menu-prefix-cls} {
|
2018-01-25 10:59:49 +08:00
|
|
|
background-color: @menu-bg;
|
2017-03-25 20:31:24 +08:00
|
|
|
border-radius: @border-radius-base;
|
2017-07-27 19:43:45 +08:00
|
|
|
&-submenu-title:after {
|
|
|
|
transition: transform .3s @ease-in-out;
|
|
|
|
}
|
2015-08-06 16:49:54 +08:00
|
|
|
}
|
|
|
|
|
2017-11-11 00:07:03 +08:00
|
|
|
&-vertical,
|
|
|
|
&-vertical-left,
|
|
|
|
&-vertical-right,
|
|
|
|
&-inline {
|
|
|
|
> .@{menu-prefix-cls}-submenu-title .@{menu-prefix-cls}-submenu-arrow {
|
2017-09-12 16:46:33 +08:00
|
|
|
transition: transform .3s @ease-in-out;
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
right: 16px;
|
2017-09-21 20:43:13 +08:00
|
|
|
width: 10px;
|
2017-11-29 21:00:16 +08:00
|
|
|
&:before,
|
|
|
|
&:after {
|
2017-09-12 16:46:33 +08:00
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
vertical-align: baseline;
|
|
|
|
background: #fff;
|
2018-01-25 10:59:49 +08:00
|
|
|
background-image: linear-gradient(to right, @menu-item-color, @menu-item-color);
|
2017-09-12 16:46:33 +08:00
|
|
|
width: 6px;
|
2017-09-27 22:32:49 +08:00
|
|
|
height: 1.5px;
|
2017-09-12 16:46:33 +08:00
|
|
|
border-radius: 2px;
|
|
|
|
transition: background .3s @ease-in-out, transform .3s @ease-in-out, top .3s @ease-in-out;
|
|
|
|
}
|
2017-11-29 21:00:16 +08:00
|
|
|
&:before {
|
|
|
|
transform: rotate(45deg) translateY(-2px);
|
|
|
|
}
|
|
|
|
&:after {
|
|
|
|
transform: rotate(-45deg) translateY(2px);
|
|
|
|
}
|
2017-09-12 16:46:33 +08:00
|
|
|
}
|
2017-11-29 21:00:16 +08:00
|
|
|
> .@{menu-prefix-cls}-submenu-title:hover .@{menu-prefix-cls}-submenu-arrow {
|
2017-09-12 16:46:33 +08:00
|
|
|
&:after,
|
|
|
|
&:before {
|
2018-01-29 20:18:54 +08:00
|
|
|
background: linear-gradient(to right, @menu-highlight-color, @menu-highlight-color);
|
2017-09-12 16:46:33 +08:00
|
|
|
}
|
|
|
|
}
|
2015-08-13 17:31:09 +08:00
|
|
|
}
|
|
|
|
|
2017-11-29 21:00:16 +08:00
|
|
|
&-inline > .@{menu-prefix-cls}-submenu-title .@{menu-prefix-cls}-submenu-arrow {
|
|
|
|
&:before {
|
|
|
|
transform: rotate(-45deg) translateX(2px);
|
|
|
|
}
|
|
|
|
&:after {
|
|
|
|
transform: rotate(45deg) translateX(-2px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-08-14 13:09:53 +08:00
|
|
|
&-open {
|
2017-09-12 16:46:33 +08:00
|
|
|
&.@{menu-prefix-cls}-submenu-inline > .@{menu-prefix-cls}-submenu-title .@{menu-prefix-cls}-submenu-arrow {
|
|
|
|
transform: translateY(-2px);
|
|
|
|
&:after {
|
|
|
|
transform: rotate(-45deg) translateX(-2px);
|
|
|
|
}
|
|
|
|
&:before {
|
|
|
|
transform: rotate(45deg) translateX(2px);
|
|
|
|
}
|
2015-08-13 17:31:09 +08:00
|
|
|
}
|
2015-08-06 16:49:54 +08:00
|
|
|
}
|
2016-07-24 14:23:41 +08:00
|
|
|
}
|
2016-07-22 18:41:59 +08:00
|
|
|
|
2017-11-11 00:07:03 +08:00
|
|
|
&-vertical &-submenu-selected,
|
|
|
|
&-vertical-left &-submenu-selected,
|
|
|
|
&-vertical-right &-submenu-selected {
|
2018-01-25 10:59:49 +08:00
|
|
|
color: @menu-highlight-color;
|
2016-07-24 14:23:41 +08:00
|
|
|
> a {
|
2018-01-25 10:59:49 +08:00
|
|
|
color: @menu-highlight-color;
|
2016-07-22 18:41:59 +08:00
|
|
|
}
|
2015-08-06 16:49:54 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-horizontal {
|
2015-11-26 19:32:55 +08:00
|
|
|
border: 0;
|
2017-01-31 16:05:10 +08:00
|
|
|
border-bottom: @border-width-base @border-style-base @border-color-split;
|
2015-08-06 16:49:54 +08:00
|
|
|
box-shadow: none;
|
2017-10-12 18:14:07 +08:00
|
|
|
line-height: 46px;
|
2018-08-30 11:32:40 +08:00
|
|
|
white-space: nowrap;
|
2015-08-06 16:49:54 +08:00
|
|
|
|
2015-11-14 17:29:48 +08:00
|
|
|
> .@{menu-prefix-cls}-item,
|
|
|
|
> .@{menu-prefix-cls}-submenu {
|
2015-08-14 18:16:41 +08:00
|
|
|
position: relative;
|
|
|
|
top: 1px;
|
2018-08-30 11:32:40 +08:00
|
|
|
display: inline-block;
|
2018-09-03 14:35:44 +08:00
|
|
|
vertical-align: bottom;
|
2015-11-14 17:29:48 +08:00
|
|
|
border-bottom: 2px solid transparent;
|
|
|
|
|
2016-06-25 15:09:23 +08:00
|
|
|
&:hover,
|
2015-11-14 17:29:48 +08:00
|
|
|
&-active,
|
2017-02-15 17:14:40 +08:00
|
|
|
&-open,
|
2015-11-14 17:29:48 +08:00
|
|
|
&-selected {
|
2018-01-25 10:59:49 +08:00
|
|
|
border-bottom: 2px solid @menu-highlight-color;
|
|
|
|
color: @menu-highlight-color;
|
2015-11-05 19:25:22 +08:00
|
|
|
}
|
2018-04-23 00:31:36 +08:00
|
|
|
}
|
2015-11-14 17:29:48 +08:00
|
|
|
|
2018-05-17 21:17:20 +08:00
|
|
|
> .@{menu-prefix-cls}-item {
|
|
|
|
> a {
|
|
|
|
display: block;
|
|
|
|
color: @menu-item-color;
|
|
|
|
&:hover {
|
|
|
|
color: @menu-highlight-color;
|
|
|
|
}
|
|
|
|
&:before {
|
|
|
|
bottom: -2px;
|
|
|
|
}
|
2018-04-23 00:31:36 +08:00
|
|
|
}
|
2018-05-17 21:17:20 +08:00
|
|
|
&-selected > a {
|
|
|
|
color: @menu-highlight-color;
|
2015-08-17 17:28:48 +08:00
|
|
|
}
|
2015-08-06 16:49:54 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
content: "\20";
|
|
|
|
display: block;
|
|
|
|
height: 0;
|
|
|
|
clear: both;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-11-26 19:32:55 +08:00
|
|
|
&-vertical,
|
2017-11-11 00:07:03 +08:00
|
|
|
&-vertical-left,
|
|
|
|
&-vertical-right,
|
2017-02-16 21:24:17 +08:00
|
|
|
&-inline {
|
2017-11-29 21:00:16 +08:00
|
|
|
.@{menu-prefix-cls}-item {
|
|
|
|
position: relative;
|
|
|
|
&:after {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
2018-08-29 11:20:13 +08:00
|
|
|
border-right: @menu-item-active-border-width solid @menu-highlight-color;
|
2017-11-29 21:00:16 +08:00
|
|
|
transform: scaleY(.0001);
|
|
|
|
opacity: 0;
|
|
|
|
transition: transform .15s @ease-out, opacity .15s @ease-out;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-02-16 21:24:17 +08:00
|
|
|
.@{menu-prefix-cls}-item,
|
|
|
|
.@{menu-prefix-cls}-submenu-title {
|
2017-02-16 17:56:15 +08:00
|
|
|
padding: 0 16px;
|
2016-11-08 20:57:07 +08:00
|
|
|
font-size: @font-size-base;
|
2017-10-11 12:01:27 +08:00
|
|
|
line-height: @menu-item-height;
|
|
|
|
height: @menu-item-height;
|
2017-10-12 18:14:07 +08:00
|
|
|
margin-top: 4px;
|
|
|
|
margin-bottom: 4px;
|
2016-11-10 11:35:12 +08:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2015-08-06 16:49:54 +08:00
|
|
|
}
|
2017-10-11 12:01:27 +08:00
|
|
|
|
2017-11-20 14:37:14 +08:00
|
|
|
// disable margin collapsed
|
|
|
|
.@{menu-prefix-cls}-submenu {
|
|
|
|
padding-bottom: 0.01px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{menu-prefix-cls}-item:not(:last-child) {
|
|
|
|
margin-bottom: 8px;
|
|
|
|
}
|
|
|
|
|
2017-10-11 12:01:27 +08:00
|
|
|
> .@{menu-prefix-cls}-item,
|
|
|
|
> .@{menu-prefix-cls}-submenu > .@{menu-prefix-cls}-submenu-title {
|
|
|
|
line-height: @menu-inline-toplevel-item-height;
|
|
|
|
height: @menu-inline-toplevel-item-height;
|
|
|
|
}
|
2015-08-06 16:49:54 +08:00
|
|
|
}
|
2015-08-10 17:57:28 +08:00
|
|
|
|
2017-10-26 13:38:18 +08:00
|
|
|
&-inline {
|
|
|
|
width: 100%;
|
|
|
|
.@{menu-prefix-cls}-selected,
|
|
|
|
.@{menu-prefix-cls}-item-selected {
|
|
|
|
&:after {
|
|
|
|
transition: transform .15s @ease-in-out, opacity .15s @ease-in-out;
|
|
|
|
opacity: 1;
|
|
|
|
transform: scaleY(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{menu-prefix-cls}-item,
|
|
|
|
.@{menu-prefix-cls}-submenu-title {
|
|
|
|
width: ~"calc(100% + 1px)";
|
|
|
|
}
|
2018-01-23 21:00:11 +08:00
|
|
|
|
|
|
|
.@{menu-prefix-cls}-submenu-title {
|
|
|
|
padding-right: 34px;
|
|
|
|
}
|
2017-10-26 13:38:18 +08:00
|
|
|
}
|
|
|
|
|
2017-08-22 18:37:08 +08:00
|
|
|
&-inline-collapsed {
|
|
|
|
width: @menu-collapsed-width;
|
|
|
|
> .@{menu-prefix-cls}-item,
|
2017-09-15 20:36:40 +08:00
|
|
|
> .@{menu-prefix-cls}-item-group > .@{menu-prefix-cls}-item-group-list > .@{menu-prefix-cls}-item,
|
2018-08-22 09:49:20 +08:00
|
|
|
> .@{menu-prefix-cls}-item-group > .@{menu-prefix-cls}-item-group-list > .@{menu-prefix-cls}-submenu > .@{menu-prefix-cls}-submenu-title,
|
2017-08-22 18:37:08 +08:00
|
|
|
> .@{menu-prefix-cls}-submenu > .@{menu-prefix-cls}-submenu-title {
|
|
|
|
left: 0;
|
|
|
|
text-overflow: clip;
|
2017-09-12 16:46:33 +08:00
|
|
|
padding: 0 (@menu-collapsed-width - 16px) / 2 !important;
|
|
|
|
.@{menu-prefix-cls}-submenu-arrow {
|
2017-08-22 18:37:08 +08:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.@{iconfont-css-prefix} {
|
|
|
|
font-size: 16px;
|
2017-10-11 12:01:27 +08:00
|
|
|
line-height: @menu-item-height;
|
2017-08-22 18:37:08 +08:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
2017-09-15 20:36:40 +08:00
|
|
|
|
|
|
|
.@{menu-prefix-cls}-item-group-title {
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
padding-left: 4px;
|
|
|
|
padding-right: 4px;
|
|
|
|
}
|
2017-08-22 18:37:08 +08:00
|
|
|
}
|
|
|
|
|
2017-02-16 17:56:15 +08:00
|
|
|
&-item-group-list {
|
2017-11-29 21:00:16 +08:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2017-02-16 21:24:17 +08:00
|
|
|
.@{menu-prefix-cls}-item,
|
|
|
|
.@{menu-prefix-cls}-submenu-title {
|
2017-02-16 17:56:15 +08:00
|
|
|
padding: 0 16px 0 28px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-08-14 18:16:41 +08:00
|
|
|
&-root&-vertical,
|
2017-11-11 00:07:03 +08:00
|
|
|
&-root&-vertical-left,
|
|
|
|
&-root&-vertical-right,
|
2015-08-13 17:31:09 +08:00
|
|
|
&-root&-inline {
|
2015-08-14 18:16:41 +08:00
|
|
|
box-shadow: none;
|
2015-08-13 17:31:09 +08:00
|
|
|
}
|
|
|
|
|
2015-08-10 17:57:28 +08:00
|
|
|
&-sub&-inline {
|
|
|
|
padding: 0;
|
2015-11-26 19:32:55 +08:00
|
|
|
border: 0;
|
2015-08-10 17:57:28 +08:00
|
|
|
box-shadow: none;
|
2015-11-14 16:37:42 +08:00
|
|
|
border-radius: 0;
|
2015-11-26 19:32:55 +08:00
|
|
|
& > .@{menu-prefix-cls}-item,
|
|
|
|
& > .@{menu-prefix-cls}-submenu > .@{menu-prefix-cls}-submenu-title {
|
2017-10-11 12:01:27 +08:00
|
|
|
line-height: @menu-item-height;
|
|
|
|
height: @menu-item-height;
|
2015-08-14 18:16:41 +08:00
|
|
|
list-style-type: disc;
|
|
|
|
list-style-position: inside;
|
2015-08-10 17:57:28 +08:00
|
|
|
}
|
2015-12-11 16:55:30 +08:00
|
|
|
|
|
|
|
& .@{menu-prefix-cls}-item-group-title {
|
|
|
|
padding-left: 32px;
|
|
|
|
}
|
2015-08-10 17:57:28 +08:00
|
|
|
}
|
2017-01-06 11:36:54 +08:00
|
|
|
|
|
|
|
// Disabled state sets text to gray and nukes hover/tab effects
|
|
|
|
&-item-disabled,
|
|
|
|
&-submenu-disabled {
|
|
|
|
color: @disabled-color !important;
|
|
|
|
cursor: not-allowed;
|
|
|
|
background: none;
|
2017-02-06 12:04:35 +08:00
|
|
|
border-color: transparent !important;
|
2017-01-06 11:36:54 +08:00
|
|
|
> a {
|
|
|
|
color: @disabled-color !important;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
2017-05-15 18:23:49 +08:00
|
|
|
> .@{menu-prefix-cls}-submenu-title {
|
|
|
|
color: @disabled-color !important;
|
|
|
|
cursor: not-allowed;
|
2018-04-18 13:47:40 +08:00
|
|
|
> .@{menu-prefix-cls}-submenu-arrow {
|
|
|
|
&:before,
|
|
|
|
&:after {
|
|
|
|
background: @disabled-color !important;
|
|
|
|
}
|
|
|
|
}
|
2017-05-15 18:23:49 +08:00
|
|
|
}
|
2017-01-06 11:36:54 +08:00
|
|
|
}
|
2015-08-06 16:49:54 +08:00
|
|
|
}
|
2017-11-29 21:08:44 +08:00
|
|
|
|
|
|
|
@import './dark';
|