2019-04-16 21:59:25 +08:00
|
|
|
@import '../../style/themes/index';
|
2018-12-07 20:02:01 +08:00
|
|
|
@import '../../style/mixins/index';
|
2020-04-30 21:14:10 +08:00
|
|
|
@import './status';
|
2016-04-27 20:44:36 +08:00
|
|
|
|
2018-12-07 20:02:01 +08:00
|
|
|
@dropdown-prefix-cls: ~'@{ant-prefix}-dropdown';
|
2015-06-09 15:21:44 +08:00
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{dropdown-prefix-cls} {
|
2020-12-22 11:08:12 +08:00
|
|
|
.reset-component();
|
2019-04-15 10:52:00 +08:00
|
|
|
|
2015-06-09 15:21:44 +08:00
|
|
|
position: absolute;
|
|
|
|
top: -9999px;
|
2019-02-15 10:48:07 +08:00
|
|
|
left: -9999px;
|
2016-03-28 16:01:37 +08:00
|
|
|
z-index: @zindex-dropdown;
|
2015-06-09 15:21:44 +08:00
|
|
|
display: block;
|
2015-06-15 20:36:49 +08:00
|
|
|
|
2019-02-15 10:48:07 +08:00
|
|
|
&::before {
|
2018-12-07 12:12:53 +08:00
|
|
|
position: absolute;
|
2020-12-03 20:25:01 +08:00
|
|
|
top: -@popover-distance + @popover-arrow-width;
|
2018-12-19 16:04:50 +08:00
|
|
|
right: 0;
|
2020-12-03 20:25:01 +08:00
|
|
|
bottom: -@popover-distance + @popover-arrow-width;
|
2019-02-15 10:48:07 +08:00
|
|
|
left: -7px;
|
2019-01-28 18:10:30 +08:00
|
|
|
z-index: -9999;
|
2019-02-15 10:48:07 +08:00
|
|
|
opacity: 0.0001;
|
|
|
|
content: ' ';
|
2018-12-07 12:12:53 +08:00
|
|
|
}
|
|
|
|
|
2015-06-15 20:36:49 +08:00
|
|
|
&-wrap {
|
|
|
|
position: relative;
|
2015-10-09 14:38:26 +08:00
|
|
|
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{ant-prefix}-btn > .@{iconfont-css-prefix}-down {
|
2020-10-12 15:50:02 +08:00
|
|
|
font-size: 10px;
|
2015-10-09 14:38:26 +08:00
|
|
|
}
|
|
|
|
|
2019-02-15 10:48:07 +08:00
|
|
|
.@{iconfont-css-prefix}-down::before {
|
2021-06-01 13:34:03 +08:00
|
|
|
transition: transform @animation-duration-base;
|
2015-06-17 17:30:25 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-wrap-open {
|
2019-02-15 10:48:07 +08:00
|
|
|
.@{iconfont-css-prefix}-down::before {
|
2016-04-27 20:44:36 +08:00
|
|
|
transform: rotate(180deg);
|
2015-06-17 17:30:25 +08:00
|
|
|
}
|
2015-06-15 20:36:49 +08:00
|
|
|
}
|
2015-06-09 15:21:44 +08:00
|
|
|
|
2015-12-31 17:34:04 +08:00
|
|
|
&-hidden,
|
2021-05-24 16:24:00 +08:00
|
|
|
&-menu-hidden,
|
|
|
|
&-menu-submenu-hidden {
|
2015-06-15 21:18:08 +08:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2020-06-28 22:41:59 +08:00
|
|
|
// Offset the popover to account for the dropdown arrow
|
|
|
|
&-show-arrow&-placement-topLeft,
|
2022-01-13 13:34:34 +08:00
|
|
|
&-show-arrow&-placement-top,
|
2020-06-28 22:41:59 +08:00
|
|
|
&-show-arrow&-placement-topRight {
|
|
|
|
padding-bottom: @popover-distance;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-show-arrow&-placement-bottomLeft,
|
2022-01-13 13:34:34 +08:00
|
|
|
&-show-arrow&-placement-bottom,
|
2020-06-28 22:41:59 +08:00
|
|
|
&-show-arrow&-placement-bottomRight {
|
|
|
|
padding-top: @popover-distance;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Arrows
|
|
|
|
// .popover-arrow is outer, .popover-arrow:after is inner
|
|
|
|
|
|
|
|
&-arrow {
|
|
|
|
position: absolute;
|
|
|
|
z-index: 1; // lift it up so the menu wouldn't cask shadow on it
|
|
|
|
display: block;
|
2022-02-08 09:52:33 +08:00
|
|
|
width: @popover-arrow-width;
|
|
|
|
height: @popover-arrow-width;
|
|
|
|
.roundedArrow(@popover-arrow-width, 5px, @popover-bg);
|
2020-06-28 22:41:59 +08:00
|
|
|
}
|
|
|
|
|
2022-01-13 13:34:34 +08:00
|
|
|
&-placement-top > &-arrow,
|
2020-06-28 22:41:59 +08:00
|
|
|
&-placement-topLeft > &-arrow,
|
|
|
|
&-placement-topRight > &-arrow {
|
2022-02-08 09:52:33 +08:00
|
|
|
bottom: @popover-arrow-width * sqrt((1 / 2)) + 2px;
|
|
|
|
box-shadow: 3px 3px 7px -3px fade(@black, 10%);
|
|
|
|
transform: rotate(45deg);
|
2020-06-28 22:41:59 +08:00
|
|
|
}
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2022-01-13 13:34:34 +08:00
|
|
|
&-placement-top > &-arrow {
|
2020-06-28 22:41:59 +08:00
|
|
|
left: 50%;
|
|
|
|
transform: translateX(-50%) rotate(45deg);
|
|
|
|
}
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2020-06-28 22:41:59 +08:00
|
|
|
&-placement-topLeft > &-arrow {
|
|
|
|
left: 16px;
|
|
|
|
}
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2020-06-28 22:41:59 +08:00
|
|
|
&-placement-topRight > &-arrow {
|
|
|
|
right: 16px;
|
|
|
|
}
|
|
|
|
|
2022-01-13 13:34:34 +08:00
|
|
|
&-placement-bottom > &-arrow,
|
2020-06-28 22:41:59 +08:00
|
|
|
&-placement-bottomLeft > &-arrow,
|
|
|
|
&-placement-bottomRight > &-arrow {
|
2022-02-08 09:52:33 +08:00
|
|
|
top: (@popover-arrow-width + 2px) * sqrt((1 / 2));
|
|
|
|
box-shadow: 2px 2px 5px -2px fade(@black, 10%);
|
|
|
|
transform: rotate(-135deg) translateY(-0.5px);
|
2020-06-28 22:41:59 +08:00
|
|
|
}
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2022-01-13 13:34:34 +08:00
|
|
|
&-placement-bottom > &-arrow {
|
2020-06-28 22:41:59 +08:00
|
|
|
left: 50%;
|
2022-02-08 09:52:33 +08:00
|
|
|
transform: translateX(-50%) rotate(-135deg) translateY(-0.5px);
|
2020-06-28 22:41:59 +08:00
|
|
|
}
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2020-06-28 22:41:59 +08:00
|
|
|
&-placement-bottomLeft > &-arrow {
|
|
|
|
left: 16px;
|
|
|
|
}
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2020-06-28 22:41:59 +08:00
|
|
|
&-placement-bottomRight > &-arrow {
|
|
|
|
right: 16px;
|
|
|
|
}
|
|
|
|
|
2015-06-09 15:21:44 +08:00
|
|
|
&-menu {
|
|
|
|
position: relative;
|
2015-06-17 20:09:47 +08:00
|
|
|
margin: 0;
|
2019-12-10 09:02:53 +08:00
|
|
|
padding: @dropdown-edge-child-vertical-padding 0;
|
2015-06-09 15:21:44 +08:00
|
|
|
text-align: left;
|
2019-02-15 10:48:07 +08:00
|
|
|
list-style-type: none;
|
2019-11-28 21:43:54 +08:00
|
|
|
background-color: @dropdown-menu-bg;
|
2019-02-15 10:48:07 +08:00
|
|
|
background-clip: padding-box;
|
2015-11-05 21:25:43 +08:00
|
|
|
border-radius: @border-radius-base;
|
2019-02-15 10:48:07 +08:00
|
|
|
outline: none;
|
2015-12-02 11:53:37 +08:00
|
|
|
box-shadow: @box-shadow-base;
|
2015-06-09 15:21:44 +08:00
|
|
|
|
2017-09-25 21:28:00 +08:00
|
|
|
&-item-group-title {
|
2017-09-27 22:32:49 +08:00
|
|
|
padding: 5px @control-padding-horizontal;
|
2019-02-15 10:48:07 +08:00
|
|
|
color: @text-color-secondary;
|
2021-06-01 13:34:03 +08:00
|
|
|
transition: all @animation-duration-slow;
|
2017-09-25 21:28:00 +08:00
|
|
|
}
|
|
|
|
|
2017-11-21 10:06:26 +08:00
|
|
|
&-submenu-popup {
|
|
|
|
position: absolute;
|
2018-02-09 15:56:34 +08:00
|
|
|
z-index: @zindex-dropdown;
|
2020-04-15 23:00:51 +08:00
|
|
|
background: transparent;
|
|
|
|
box-shadow: none;
|
2020-11-11 19:05:01 +08:00
|
|
|
transform-origin: 0 0;
|
2019-10-10 11:40:30 +08:00
|
|
|
|
|
|
|
ul,
|
|
|
|
li {
|
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
|
|
|
margin-right: 0.3em;
|
|
|
|
margin-left: 0.3em;
|
|
|
|
}
|
2017-11-21 10:06:26 +08:00
|
|
|
}
|
|
|
|
|
2021-06-01 13:34:03 +08:00
|
|
|
// ======================= Item Content =======================
|
|
|
|
&-item {
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-item-icon {
|
|
|
|
min-width: 12px;
|
|
|
|
margin-right: 8px;
|
|
|
|
font-size: @font-size-sm;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-title-content {
|
2021-06-08 17:02:25 +08:00
|
|
|
flex: auto;
|
|
|
|
|
2021-06-01 13:34:03 +08:00
|
|
|
> a {
|
|
|
|
color: inherit;
|
|
|
|
transition: all @animation-duration-slow;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
content: '';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// =========================== Item ===========================
|
2015-12-31 17:34:04 +08:00
|
|
|
&-item,
|
|
|
|
&-submenu-title {
|
2015-06-09 15:21:44 +08:00
|
|
|
clear: both;
|
2019-02-15 10:48:07 +08:00
|
|
|
margin: 0;
|
2019-06-06 17:39:34 +08:00
|
|
|
padding: @dropdown-vertical-padding @control-padding-horizontal;
|
2016-11-08 20:50:59 +08:00
|
|
|
color: @text-color;
|
2019-02-15 10:48:07 +08:00
|
|
|
font-weight: normal;
|
2019-06-06 17:39:34 +08:00
|
|
|
font-size: @dropdown-font-size;
|
|
|
|
line-height: @dropdown-line-height;
|
2015-07-13 18:42:08 +08:00
|
|
|
cursor: pointer;
|
2021-06-01 13:34:03 +08:00
|
|
|
transition: all @animation-duration-slow;
|
2020-06-03 13:33:37 +08:00
|
|
|
|
2019-12-10 09:02:53 +08:00
|
|
|
&:first-child {
|
|
|
|
& when (@dropdown-edge-child-vertical-padding = 0) {
|
|
|
|
border-radius: @border-radius-base @border-radius-base 0 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
& when (@dropdown-edge-child-vertical-padding = 0) {
|
|
|
|
border-radius: 0 0 @border-radius-base @border-radius-base;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-06-01 13:34:03 +08:00
|
|
|
&-selected {
|
2019-06-04 19:25:33 +08:00
|
|
|
color: @dropdown-selected-color;
|
2022-02-27 10:52:50 +08:00
|
|
|
background-color: @dropdown-selected-bg;
|
2017-02-23 13:48:38 +08:00
|
|
|
}
|
|
|
|
|
2022-03-28 14:43:10 +08:00
|
|
|
&:hover,
|
|
|
|
&&-active {
|
2017-05-03 22:57:14 +08:00
|
|
|
background-color: @item-hover-bg;
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-disabled {
|
2017-01-01 22:20:06 +08:00
|
|
|
color: @disabled-color;
|
2015-06-09 15:21:44 +08:00
|
|
|
cursor: not-allowed;
|
|
|
|
|
|
|
|
&:hover {
|
2017-01-01 22:20:06 +08:00
|
|
|
color: @disabled-color;
|
2019-12-01 22:45:19 +08:00
|
|
|
background-color: @dropdown-menu-submenu-disabled-bg;
|
2015-06-09 15:21:44 +08:00
|
|
|
cursor: not-allowed;
|
|
|
|
}
|
2020-12-28 19:33:57 +08:00
|
|
|
|
2021-06-01 13:34:03 +08:00
|
|
|
a {
|
2020-12-28 19:33:57 +08:00
|
|
|
pointer-events: none;
|
|
|
|
}
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-divider {
|
|
|
|
height: 1px;
|
2019-02-15 10:48:07 +08:00
|
|
|
margin: 4px 0;
|
2015-06-09 15:21:44 +08:00
|
|
|
overflow: hidden;
|
|
|
|
line-height: 0;
|
2019-02-15 10:48:07 +08:00
|
|
|
background-color: @border-color-split;
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
2019-11-05 19:26:00 +08:00
|
|
|
|
2020-12-03 20:25:12 +08:00
|
|
|
.@{dropdown-prefix-cls}-menu-submenu-expand-icon {
|
2017-09-12 16:46:33 +08:00
|
|
|
position: absolute;
|
2017-09-27 22:32:49 +08:00
|
|
|
right: @padding-xs;
|
2020-01-02 19:10:16 +08:00
|
|
|
|
2020-12-03 20:25:12 +08:00
|
|
|
.@{dropdown-prefix-cls}-menu-submenu-arrow-icon {
|
2020-03-11 11:23:39 +08:00
|
|
|
margin-right: 0 !important;
|
2017-09-12 16:46:33 +08:00
|
|
|
color: @text-color-secondary;
|
2020-10-12 15:50:02 +08:00
|
|
|
font-size: 10px;
|
2019-02-15 10:48:07 +08:00
|
|
|
font-style: normal;
|
2017-09-12 16:46:33 +08:00
|
|
|
}
|
|
|
|
}
|
2015-12-31 17:34:04 +08:00
|
|
|
}
|
|
|
|
|
2019-11-05 19:26:00 +08:00
|
|
|
&-item-group-list {
|
|
|
|
margin: 0 8px;
|
|
|
|
padding: 0;
|
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
|
2017-09-27 22:32:49 +08:00
|
|
|
&-submenu-title {
|
2020-03-04 11:53:15 +08:00
|
|
|
padding-right: @control-padding-horizontal + @font-size-sm;
|
2017-09-27 22:32:49 +08:00
|
|
|
}
|
|
|
|
|
2015-12-31 17:34:04 +08:00
|
|
|
&-submenu-vertical {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-submenu-vertical > & {
|
2019-02-15 10:48:07 +08:00
|
|
|
position: absolute;
|
2015-12-31 17:34:04 +08:00
|
|
|
top: 0;
|
|
|
|
left: 100%;
|
|
|
|
min-width: 100%;
|
|
|
|
margin-left: 4px;
|
2015-12-31 17:55:45 +08:00
|
|
|
transform-origin: 0 0;
|
2015-12-31 17:34:04 +08:00
|
|
|
}
|
|
|
|
|
2017-06-22 14:41:18 +08:00
|
|
|
&-submenu&-submenu-disabled .@{dropdown-prefix-cls}-menu-submenu-title {
|
|
|
|
&,
|
2018-08-24 11:51:52 +08:00
|
|
|
.@{dropdown-prefix-cls}-menu-submenu-arrow-icon {
|
2017-06-22 14:41:18 +08:00
|
|
|
color: @disabled-color;
|
2019-12-01 22:45:19 +08:00
|
|
|
background-color: @dropdown-menu-submenu-disabled-bg;
|
2019-02-20 15:17:14 +08:00
|
|
|
cursor: not-allowed;
|
2017-06-22 14:41:18 +08:00
|
|
|
}
|
|
|
|
}
|
2019-10-20 19:23:38 +08:00
|
|
|
|
|
|
|
// https://github.com/ant-design/ant-design/issues/19264
|
|
|
|
&-submenu-selected &-submenu-title {
|
|
|
|
color: @primary-color;
|
|
|
|
}
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
2015-10-26 14:26:51 +08:00
|
|
|
|
2021-06-07 16:30:40 +08:00
|
|
|
&.@{ant-prefix}-slide-down-enter.@{ant-prefix}-slide-down-enter-active&-placement-bottomLeft,
|
|
|
|
&.@{ant-prefix}-slide-down-appear.@{ant-prefix}-slide-down-appear-active&-placement-bottomLeft,
|
2022-01-13 13:34:34 +08:00
|
|
|
&.@{ant-prefix}-slide-down-enter.@{ant-prefix}-slide-down-enter-active&-placement-bottom,
|
|
|
|
&.@{ant-prefix}-slide-down-appear.@{ant-prefix}-slide-down-appear-active&-placement-bottom,
|
2021-06-07 16:30:40 +08:00
|
|
|
&.@{ant-prefix}-slide-down-enter.@{ant-prefix}-slide-down-enter-active&-placement-bottomRight,
|
|
|
|
&.@{ant-prefix}-slide-down-appear.@{ant-prefix}-slide-down-appear-active&-placement-bottomRight {
|
2015-10-26 14:26:51 +08:00
|
|
|
animation-name: antSlideUpIn;
|
|
|
|
}
|
|
|
|
|
2021-06-07 16:30:40 +08:00
|
|
|
&.@{ant-prefix}-slide-up-enter.@{ant-prefix}-slide-up-enter-active&-placement-topLeft,
|
|
|
|
&.@{ant-prefix}-slide-up-appear.@{ant-prefix}-slide-up-appear-active&-placement-topLeft,
|
2022-01-13 13:34:34 +08:00
|
|
|
&.@{ant-prefix}-slide-up-enter.@{ant-prefix}-slide-up-enter-active&-placement-top,
|
|
|
|
&.@{ant-prefix}-slide-up-appear.@{ant-prefix}-slide-up-appear-active&-placement-top,
|
2021-06-07 16:30:40 +08:00
|
|
|
&.@{ant-prefix}-slide-up-enter.@{ant-prefix}-slide-up-enter-active&-placement-topRight,
|
|
|
|
&.@{ant-prefix}-slide-up-appear.@{ant-prefix}-slide-up-appear-active&-placement-topRight {
|
2015-10-26 14:26:51 +08:00
|
|
|
animation-name: antSlideDownIn;
|
|
|
|
}
|
|
|
|
|
2021-06-07 16:30:40 +08:00
|
|
|
&.@{ant-prefix}-slide-down-leave.@{ant-prefix}-slide-down-leave-active&-placement-bottomLeft,
|
2022-01-13 13:34:34 +08:00
|
|
|
&.@{ant-prefix}-slide-down-leave.@{ant-prefix}-slide-down-leave-active&-placement-bottom,
|
2021-06-07 16:30:40 +08:00
|
|
|
&.@{ant-prefix}-slide-down-leave.@{ant-prefix}-slide-down-leave-active&-placement-bottomRight {
|
2015-10-26 14:26:51 +08:00
|
|
|
animation-name: antSlideUpOut;
|
|
|
|
}
|
|
|
|
|
2021-06-07 16:30:40 +08:00
|
|
|
&.@{ant-prefix}-slide-up-leave.@{ant-prefix}-slide-up-leave-active&-placement-topLeft,
|
2022-01-13 13:34:34 +08:00
|
|
|
&.@{ant-prefix}-slide-up-leave.@{ant-prefix}-slide-up-leave-active&-placement-top,
|
2021-06-07 16:30:40 +08:00
|
|
|
&.@{ant-prefix}-slide-up-leave.@{ant-prefix}-slide-up-leave-active&-placement-topRight {
|
2015-10-26 14:26:51 +08:00
|
|
|
animation-name: antSlideDownOut;
|
|
|
|
}
|
2015-06-17 17:30:25 +08:00
|
|
|
}
|
2015-07-12 13:15:05 +08:00
|
|
|
|
2016-12-03 17:31:04 +08:00
|
|
|
.@{dropdown-prefix-cls}-trigger,
|
2020-05-17 01:16:12 +08:00
|
|
|
.@{dropdown-prefix-cls}-link,
|
|
|
|
.@{dropdown-prefix-cls}-button {
|
2018-12-05 11:01:48 +08:00
|
|
|
> .@{iconfont-css-prefix}.@{iconfont-css-prefix}-down {
|
2020-10-12 15:50:02 +08:00
|
|
|
font-size: 10px;
|
2020-05-17 01:16:12 +08:00
|
|
|
vertical-align: baseline;
|
2015-07-12 13:15:05 +08:00
|
|
|
}
|
|
|
|
}
|
2015-12-02 15:18:15 +08:00
|
|
|
|
|
|
|
.@{dropdown-prefix-cls}-button {
|
2016-12-24 23:12:37 +08:00
|
|
|
white-space: nowrap;
|
|
|
|
|
2021-10-21 21:07:55 +08:00
|
|
|
&.@{ant-prefix}-btn-group > .@{ant-prefix}-btn {
|
|
|
|
&-loading,
|
|
|
|
&-loading + .@{ant-prefix}-btn {
|
|
|
|
cursor: default;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-loading + .@{ant-prefix}-btn::before {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child:not(:first-child):not(.@{ant-prefix}-btn-icon-only) {
|
|
|
|
padding-right: @padding-xs;
|
|
|
|
padding-left: @padding-xs;
|
|
|
|
}
|
2015-12-02 15:18:15 +08:00
|
|
|
}
|
|
|
|
}
|
2017-02-18 15:24:25 +08:00
|
|
|
|
|
|
|
// https://github.com/ant-design/ant-design/issues/4903
|
|
|
|
.@{dropdown-prefix-cls}-menu-dark {
|
|
|
|
&,
|
|
|
|
.@{dropdown-prefix-cls}-menu {
|
|
|
|
background: @menu-dark-bg;
|
|
|
|
}
|
|
|
|
.@{dropdown-prefix-cls}-menu-item,
|
|
|
|
.@{dropdown-prefix-cls}-menu-submenu-title,
|
2020-06-03 17:35:07 +08:00
|
|
|
.@{dropdown-prefix-cls}-menu-item > a,
|
|
|
|
.@{dropdown-prefix-cls}-menu-item > .@{iconfont-css-prefix} + span > a {
|
2017-02-18 15:24:25 +08:00
|
|
|
color: @text-color-secondary-dark;
|
2019-02-15 10:48:07 +08:00
|
|
|
.@{dropdown-prefix-cls}-menu-submenu-arrow::after {
|
2017-02-18 15:24:25 +08:00
|
|
|
color: @text-color-secondary-dark;
|
|
|
|
}
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2017-02-18 15:24:25 +08:00
|
|
|
&:hover {
|
2018-12-04 13:11:31 +08:00
|
|
|
color: @text-color-inverse;
|
2017-02-18 15:24:25 +08:00
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.@{dropdown-prefix-cls}-menu-item-selected {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
> a {
|
2018-12-04 13:11:31 +08:00
|
|
|
color: @text-color-inverse;
|
2019-02-15 10:48:07 +08:00
|
|
|
background: @primary-color;
|
2017-02-18 15:24:25 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-03-19 12:13:24 +08:00
|
|
|
|
|
|
|
@import './rtl';
|