2015-08-20 16:55:42 +08:00
|
|
|
@menu-prefix-cls: ~"@{css-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} {
|
2015-08-06 16:49:54 +08:00
|
|
|
outline: none;
|
|
|
|
margin-bottom: 0;
|
|
|
|
padding-left: 0; // Override default ul/ol
|
|
|
|
list-style: none;
|
2015-10-19 13:12:39 +08:00
|
|
|
z-index: 999;
|
2015-08-14 18:16:41 +08:00
|
|
|
box-shadow: @overlay-shadow;
|
|
|
|
color: @text-color;
|
2015-09-16 11:29:51 +08:00
|
|
|
background: #fff;
|
2015-08-06 16:49:54 +08:00
|
|
|
|
2015-11-04 23:14:49 +08:00
|
|
|
&-hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2015-08-06 16:49:54 +08:00
|
|
|
&-item-group-list {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-item-group-title {
|
|
|
|
color: #999;
|
|
|
|
line-height: 1.5;
|
|
|
|
padding: 8px 10px;
|
|
|
|
border-bottom: 1px solid #dedede;
|
|
|
|
}
|
|
|
|
|
2015-08-14 18:16:41 +08:00
|
|
|
&-item {
|
|
|
|
cursor: pointer;
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
}
|
|
|
|
|
2015-08-10 17:57:28 +08:00
|
|
|
&-inline > &-item-active,
|
|
|
|
&-submenu-inline&-submenu-active,
|
|
|
|
&-submenu-inline&-submenu-active > &-submenu-title:hover {
|
|
|
|
background-color: #fff;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-inline > &-item-active:hover,
|
|
|
|
&-item-active,
|
|
|
|
&-submenu-active,
|
|
|
|
&-submenu-inline&-submenu-active > &-submenu-title:hover {
|
2015-08-11 21:16:12 +08:00
|
|
|
background-color: tint(@primary-color, 90%);
|
2015-08-06 16:49:54 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
& > li&-submenu {
|
2015-08-14 18:16:41 +08:00
|
|
|
cursor: pointer;
|
2015-08-18 22:51:01 +08:00
|
|
|
transition: all 0.3s ease;
|
2015-08-06 16:49:54 +08:00
|
|
|
}
|
|
|
|
|
2015-11-05 19:26:53 +08:00
|
|
|
&-vertical,
|
|
|
|
&-inline {
|
2015-11-12 14:57:54 +08:00
|
|
|
border-right: 1px solid #e9e9e9;
|
2015-11-05 19:26:53 +08:00
|
|
|
|
2015-11-12 14:57:54 +08:00
|
|
|
.@{menu-prefix-cls}-item {
|
|
|
|
border-right: 2px solid transparent;
|
2015-11-05 19:26:53 +08:00
|
|
|
margin-left: -1px;
|
2015-11-12 14:57:54 +08:00
|
|
|
left: 1px;
|
|
|
|
position: relative;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{menu-prefix-cls}-selected,
|
|
|
|
.@{menu-prefix-cls}-item-active {
|
|
|
|
border-right: 2px solid @primary-color;
|
2015-11-05 19:26:53 +08:00
|
|
|
}
|
2015-11-12 23:09:35 +08:00
|
|
|
|
|
|
|
.@{menu-prefix-cls}-item-selected {
|
|
|
|
background-color: tint(@primary-color, 90%);
|
|
|
|
color: @primary-color;
|
|
|
|
border-right: 2px solid #2db7f5;
|
|
|
|
}
|
2015-11-05 19:26:53 +08:00
|
|
|
}
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
&-submenu-horizontal > .@{menu-prefix-cls} {
|
2015-08-06 16:49:54 +08:00
|
|
|
top: 100%;
|
|
|
|
left: 0;
|
2015-08-10 17:57:28 +08:00
|
|
|
position: absolute;
|
2015-08-14 18:16:41 +08:00
|
|
|
min-width: 100%;
|
|
|
|
margin-top: 7px;
|
2015-08-06 16:49:54 +08:00
|
|
|
}
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
&-submenu-vertical > .@{menu-prefix-cls} {
|
2015-08-06 16:49:54 +08:00
|
|
|
top: 0;
|
|
|
|
left: 100%;
|
2015-08-10 17:57:28 +08:00
|
|
|
position: absolute;
|
|
|
|
min-width: 160px;
|
2015-08-06 16:49:54 +08:00
|
|
|
margin-left: 4px;
|
|
|
|
}
|
|
|
|
|
2015-08-10 17:57:28 +08:00
|
|
|
&-item, &-submenu-title {
|
2015-08-06 16:49:54 +08:00
|
|
|
margin: 0;
|
|
|
|
position: relative;
|
|
|
|
display: block;
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
|
|
// Disabled state sets text to gray and nukes hover/tab effects
|
2015-08-20 16:55:42 +08:00
|
|
|
&.@{menu-prefix-cls}-item-disabled, &.@{menu-prefix-cls}-submenu-disabled {
|
2015-08-14 18:16:41 +08:00
|
|
|
color: #999 !important;
|
2015-08-06 16:49:54 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
& > &-item-divider {
|
|
|
|
height: 1px;
|
|
|
|
margin: 1px 0;
|
|
|
|
overflow: hidden;
|
|
|
|
padding: 0;
|
|
|
|
line-height: 0;
|
|
|
|
background-color: #e5e5e5;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-submenu {
|
|
|
|
position: relative;
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
> .@{menu-prefix-cls} {
|
2015-08-06 16:49:54 +08:00
|
|
|
background-color: #fff;
|
|
|
|
}
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
&-vertical > .@{menu-prefix-cls}-submenu-title:after {
|
2015-08-14 18:16:41 +08:00
|
|
|
font-family: "anticon" !important;
|
|
|
|
font-style: normal;
|
|
|
|
vertical-align: baseline;
|
|
|
|
text-align: center;
|
|
|
|
text-transform: none;
|
|
|
|
text-rendering: auto;
|
|
|
|
position: absolute;
|
|
|
|
transition: transform .3s ease;
|
2015-11-14 00:09:43 +08:00
|
|
|
content: "\e603";
|
2015-08-14 18:16:41 +08:00
|
|
|
right: 16px;
|
2015-11-13 14:58:49 +08:00
|
|
|
transform: scale(0.75);
|
2015-08-14 18:16:41 +08:00
|
|
|
}
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
&-inline > .@{menu-prefix-cls}-submenu-title:after {
|
2015-08-13 17:31:09 +08:00
|
|
|
font-family: "anticon" !important;
|
|
|
|
font-style: normal;
|
|
|
|
vertical-align: baseline;
|
|
|
|
text-align: center;
|
|
|
|
text-transform: none;
|
|
|
|
text-rendering: auto;
|
|
|
|
position: absolute;
|
2015-08-14 18:16:41 +08:00
|
|
|
transition: transform .3s ease;
|
2015-11-12 22:59:25 +08:00
|
|
|
content: "\e603";
|
2015-08-14 18:16:41 +08:00
|
|
|
right: 16px;
|
2015-08-18 14:28:28 +08:00
|
|
|
top: 0;
|
2015-08-14 18:16:41 +08:00
|
|
|
.iconfont-size-under-12px(8px);
|
2015-08-13 17:31:09 +08:00
|
|
|
}
|
|
|
|
|
2015-08-14 13:09:53 +08:00
|
|
|
&-open {
|
2015-08-20 16:55:42 +08:00
|
|
|
&.@{menu-prefix-cls}-submenu-inline > .@{menu-prefix-cls}-submenu-title:after {
|
2015-11-13 14:58:49 +08:00
|
|
|
content: "\e602";
|
|
|
|
transform: scale(0.75);
|
2015-08-13 17:31:09 +08:00
|
|
|
}
|
2015-08-06 16:49:54 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{menu-prefix-cls}-submenu-title, .@{menu-prefix-cls}-item {
|
2015-08-06 16:49:54 +08:00
|
|
|
.anticon {
|
|
|
|
width: 14px;
|
|
|
|
margin-right: 8px;
|
2015-11-13 18:04:39 +08:00
|
|
|
top: 1px;
|
2015-08-14 18:16:41 +08:00
|
|
|
color: #999;
|
2015-08-06 16:49:54 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-horizontal {
|
|
|
|
border: none;
|
|
|
|
border-bottom: 1px solid #d9d9d9;
|
|
|
|
box-shadow: none;
|
2015-11-13 21:09:21 +08:00
|
|
|
padding-left: 20px;
|
2015-08-14 18:16:41 +08:00
|
|
|
z-index: 0;
|
2015-08-06 16:49:54 +08:00
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
& > .@{menu-prefix-cls}-item,
|
2015-11-05 19:25:22 +08:00
|
|
|
& > .@{menu-prefix-cls}-submenu {
|
2015-08-17 17:28:48 +08:00
|
|
|
padding: 0 20px;
|
|
|
|
line-height: 50px;
|
2015-08-14 18:16:41 +08:00
|
|
|
position: relative;
|
|
|
|
top: 1px;
|
2015-11-05 19:25:22 +08:00
|
|
|
> a , > span{
|
|
|
|
line-height: 51px;
|
|
|
|
}
|
2015-08-17 17:28:48 +08:00
|
|
|
> a {
|
|
|
|
display: block;
|
2015-08-18 22:51:01 +08:00
|
|
|
color: @text-color;
|
|
|
|
&:hover {
|
|
|
|
color: @primary-color;
|
|
|
|
}
|
2015-08-17 17:28:48 +08:00
|
|
|
&:before, &:after {
|
|
|
|
position: absolute;
|
2015-11-13 22:16:40 +08:00
|
|
|
background-color: transparent;
|
2015-08-17 17:28:48 +08:00
|
|
|
width: 20px;
|
|
|
|
height: 50px;
|
|
|
|
content: '';
|
|
|
|
}
|
|
|
|
&:before {
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
}
|
2015-08-06 16:49:54 +08:00
|
|
|
}
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
& > .@{menu-prefix-cls}-submenu, & > .@{menu-prefix-cls}-item {
|
2015-08-06 16:49:54 +08:00
|
|
|
float: left;
|
|
|
|
border-bottom: 2px solid transparent;
|
2015-11-13 21:09:21 +08:00
|
|
|
margin-right: 20px;
|
2015-08-06 16:49:54 +08:00
|
|
|
|
2015-08-14 18:16:41 +08:00
|
|
|
&-active,
|
|
|
|
&-selected {
|
2015-08-11 21:16:12 +08:00
|
|
|
border-bottom: 2px solid @primary-color;
|
2015-11-13 21:09:21 +08:00
|
|
|
background-color: #FFF;
|
2015-08-11 21:16:12 +08:00
|
|
|
color: @primary-color;
|
2015-08-14 18:16:41 +08:00
|
|
|
.anticon {
|
|
|
|
color: @primary-color;
|
|
|
|
}
|
2015-08-06 16:49:54 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
content: "\20";
|
|
|
|
display: block;
|
|
|
|
height: 0;
|
|
|
|
clear: both;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-08-10 17:57:28 +08:00
|
|
|
&-vertical, &-inline {
|
2015-08-20 16:55:42 +08:00
|
|
|
& > .@{menu-prefix-cls}-item, & > .@{menu-prefix-cls}-submenu > .@{menu-prefix-cls}-submenu-title {
|
2015-11-13 21:09:21 +08:00
|
|
|
padding: 0 20px;
|
2015-08-14 18:16:41 +08:00
|
|
|
font-size: 12px;
|
|
|
|
line-height: 42px;
|
|
|
|
height: 42px;
|
2015-08-06 16:49:54 +08:00
|
|
|
}
|
|
|
|
}
|
2015-08-10 17:57:28 +08:00
|
|
|
|
|
|
|
&-vertical&-sub {
|
|
|
|
padding: 0;
|
2015-08-24 18:18:46 +08:00
|
|
|
transform-origin: 0 0;
|
|
|
|
& > .@{menu-prefix-cls}-item, & > .@{menu-prefix-cls}-submenu {
|
|
|
|
transform-origin: 0 0;
|
|
|
|
}
|
2015-08-10 17:57:28 +08:00
|
|
|
}
|
|
|
|
|
2015-08-14 18:16:41 +08:00
|
|
|
&-root&-vertical,
|
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;
|
|
|
|
border: none;
|
|
|
|
box-shadow: none;
|
2015-08-20 16:55:42 +08:00
|
|
|
& > .@{menu-prefix-cls}-item, & > .@{menu-prefix-cls}-submenu > .@{menu-prefix-cls}-submenu-title {
|
2015-08-14 18:16:41 +08:00
|
|
|
line-height: 34px;
|
|
|
|
height: 34px;
|
|
|
|
list-style-type: disc;
|
|
|
|
list-style-position: inside;
|
2015-08-10 17:57:28 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{menu-prefix-cls}-submenu-title, .@{menu-prefix-cls}-item {
|
2015-08-10 17:57:28 +08:00
|
|
|
.anticon {
|
|
|
|
width: 14px;
|
|
|
|
margin-right: 8px;
|
2015-11-13 18:04:39 +08:00
|
|
|
top: 1px;
|
2015-08-10 17:57:28 +08:00
|
|
|
}
|
2015-08-06 16:49:54 +08:00
|
|
|
}
|
2015-11-12 14:57:54 +08:00
|
|
|
|
|
|
|
|
|
|
|
// dark theme
|
|
|
|
.dark.@{menu-prefix-cls} {
|
2015-11-13 22:16:40 +08:00
|
|
|
color: #8c8c8c;
|
2015-11-12 14:57:54 +08:00
|
|
|
background: #404040;
|
|
|
|
|
|
|
|
.@{menu-prefix-cls}-item-active,
|
2015-11-13 21:09:21 +08:00
|
|
|
.@{menu-prefix-cls}-submenu .@{menu-prefix-cls}-submenu-active,
|
|
|
|
.@{menu-prefix-cls}-submenu-vertical.@{menu-prefix-cls}-submenu-active > .@{menu-prefix-cls}-submenu-title:hover,
|
2015-11-12 14:57:54 +08:00
|
|
|
.@{menu-prefix-cls}-submenu-inline.@{menu-prefix-cls}-submenu-active > .@{menu-prefix-cls}-submenu-title:hover {
|
2015-11-13 21:09:21 +08:00
|
|
|
background: #404040;
|
2015-11-12 14:57:54 +08:00
|
|
|
color: #FFF;
|
|
|
|
|
|
|
|
.anticon {
|
|
|
|
color: #FFF;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-11-13 21:09:21 +08:00
|
|
|
.@{menu-prefix-cls}-submenu {
|
|
|
|
background: #404040;
|
2015-11-12 23:09:35 +08:00
|
|
|
}
|
|
|
|
|
2015-11-13 21:09:21 +08:00
|
|
|
&-horizontal {
|
|
|
|
background-color: #404040;
|
|
|
|
border: none;
|
|
|
|
border-bottom: 1px solid #d9d9d9;
|
|
|
|
box-shadow: none;
|
|
|
|
padding-left: 20px;
|
|
|
|
z-index: 0;
|
2015-11-13 22:16:40 +08:00
|
|
|
color: #8c8c8c;
|
2015-11-12 14:57:54 +08:00
|
|
|
|
2015-11-13 21:09:21 +08:00
|
|
|
.@{menu-prefix-cls}-item.@{menu-prefix-cls}-item-selected,
|
|
|
|
.@{menu-prefix-cls}-item.@{menu-prefix-cls}-item-active {
|
|
|
|
border-bottom: 0px;
|
|
|
|
background-color: #404040;
|
|
|
|
color: #FFF;
|
2015-11-12 14:57:54 +08:00
|
|
|
|
2015-11-13 21:09:21 +08:00
|
|
|
.anticon {
|
2015-11-13 22:16:40 +08:00
|
|
|
color: #FFF;
|
2015-11-13 21:09:21 +08:00
|
|
|
}
|
2015-11-12 14:57:54 +08:00
|
|
|
}
|
|
|
|
|
2015-11-13 21:09:21 +08:00
|
|
|
.@{menu-prefix-cls}-vertical {
|
|
|
|
.@{menu-prefix-cls}-item.@{menu-prefix-cls}-item-selected,
|
|
|
|
.@{menu-prefix-cls}-item.@{menu-prefix-cls}-item-active {
|
|
|
|
background-color: #2DB7F5;
|
|
|
|
color: #FFF;
|
|
|
|
}
|
2015-11-12 14:57:54 +08:00
|
|
|
}
|
|
|
|
|
2015-11-13 21:09:21 +08:00
|
|
|
.@{menu-prefix-cls}-submenu-active {
|
|
|
|
border: 0;
|
|
|
|
color: #FFF;
|
2015-11-12 14:57:54 +08:00
|
|
|
|
2015-11-13 21:09:21 +08:00
|
|
|
.anticon {
|
2015-11-13 22:16:40 +08:00
|
|
|
color: #FFF;
|
2015-11-12 14:57:54 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
& > .@{menu-prefix-cls}-item,
|
|
|
|
& > .@{menu-prefix-cls}-submenu {
|
2015-11-13 21:09:21 +08:00
|
|
|
border-bottom: 0px;
|
|
|
|
top: 0px;
|
2015-11-12 14:57:54 +08:00
|
|
|
> a , > span{
|
|
|
|
line-height: 51px;
|
|
|
|
}
|
|
|
|
> a {
|
2015-11-13 22:16:40 +08:00
|
|
|
color: #8c8c8c;
|
2015-11-12 14:57:54 +08:00
|
|
|
&:hover {
|
2015-11-13 22:16:40 +08:00
|
|
|
color: #FFF;
|
2015-11-12 14:57:54 +08:00
|
|
|
}
|
|
|
|
&:before, &:after {
|
2015-11-13 22:16:40 +08:00
|
|
|
background-color: transparent;
|
2015-11-12 14:57:54 +08:00
|
|
|
}
|
|
|
|
&:before {
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{menu-prefix-cls}-vertical,
|
|
|
|
.@{menu-prefix-cls}-inline {
|
|
|
|
.@{menu-prefix-cls}-item,
|
|
|
|
.@{menu-prefix-cls}-submenu > .@{menu-prefix-cls}-submenu-title {
|
2015-11-13 22:16:40 +08:00
|
|
|
color: #8c8c8c;
|
2015-11-12 14:57:54 +08:00
|
|
|
}
|
2015-11-12 23:09:35 +08:00
|
|
|
.@{menu-prefix-cls}-item {
|
|
|
|
background-color: #333333;
|
|
|
|
}
|
2015-11-12 14:57:54 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-11-13 21:09:21 +08:00
|
|
|
&-vertical,
|
|
|
|
&-inline {
|
2015-11-12 23:09:35 +08:00
|
|
|
border-right: 0px solid #3F3F3F;
|
2015-11-12 14:57:54 +08:00
|
|
|
|
|
|
|
.@{menu-prefix-cls}-item.@{menu-prefix-cls}-item-selected,
|
|
|
|
.@{menu-prefix-cls}-item.@{menu-prefix-cls}-item-active {
|
2015-11-12 23:09:35 +08:00
|
|
|
border-right: 0px solid #2DB7F5;
|
2015-11-12 14:57:54 +08:00
|
|
|
background-color: #2DB7F5;
|
|
|
|
color: #FFF;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-11-12 23:09:35 +08:00
|
|
|
.@{menu-prefix-cls}-vertical,
|
|
|
|
.@{menu-prefix-cls}-inline {
|
|
|
|
border-right: 0px;
|
|
|
|
|
|
|
|
.@{menu-prefix-cls}-item {
|
|
|
|
border-right: 0px solid transparent;
|
|
|
|
margin-left: 0px;
|
|
|
|
left: 0px;
|
2015-11-12 14:57:54 +08:00
|
|
|
}
|
|
|
|
|
2015-11-12 23:09:35 +08:00
|
|
|
.@{menu-prefix-cls}-selected,
|
|
|
|
.@{menu-prefix-cls}-item-active {
|
2015-11-13 21:09:21 +08:00
|
|
|
border-right: 0px;
|
2015-11-12 14:57:54 +08:00
|
|
|
}
|
|
|
|
}
|
2015-11-14 00:13:20 +08:00
|
|
|
}
|