2019-05-06 12:04:39 +08:00
|
|
|
@import '../../style/themes/index';
|
2018-12-07 16:17:45 +08:00
|
|
|
@import '../../style/mixins/index';
|
|
|
|
@import '../../input/style/mixin';
|
2021-08-31 15:51:02 +08:00
|
|
|
@import '../../checkbox/style/mixin';
|
2016-04-27 20:44:36 +08:00
|
|
|
|
2018-12-07 16:17:45 +08:00
|
|
|
@cascader-prefix-cls: ~'@{ant-prefix}-cascader';
|
2015-12-29 22:34:23 +08:00
|
|
|
|
2021-08-31 15:51:02 +08:00
|
|
|
.antCheckboxFn(@checkbox-prefix-cls: ~'@{cascader-prefix-cls}-checkbox');
|
|
|
|
|
2015-12-29 22:34:23 +08:00
|
|
|
.@{cascader-prefix-cls} {
|
2021-08-31 15:51:02 +08:00
|
|
|
width: 184px;
|
2017-01-17 12:10:17 +08:00
|
|
|
|
2021-08-31 15:51:02 +08:00
|
|
|
&-checkbox {
|
|
|
|
top: 0;
|
|
|
|
margin-right: @padding-xs;
|
2018-05-21 18:07:56 +08:00
|
|
|
}
|
|
|
|
|
2021-08-31 15:51:02 +08:00
|
|
|
&-menus {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
align-items: flex-start;
|
|
|
|
|
|
|
|
&.@{cascader-prefix-cls}-menu-empty {
|
|
|
|
.@{cascader-prefix-cls}-menu {
|
|
|
|
width: 100%;
|
|
|
|
height: auto;
|
2015-12-29 21:18:27 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-09-27 22:32:49 +08:00
|
|
|
|
2015-12-29 11:46:13 +08:00
|
|
|
&-menu {
|
2022-04-13 21:59:41 +08:00
|
|
|
flex-grow: 1;
|
2016-01-07 20:58:13 +08:00
|
|
|
min-width: 111px;
|
2015-12-29 11:46:13 +08:00
|
|
|
height: 180px;
|
|
|
|
margin: 0;
|
2021-08-31 15:51:02 +08:00
|
|
|
margin: -@dropdown-edge-child-vertical-padding 0;
|
2019-12-10 09:02:53 +08:00
|
|
|
padding: @cascader-dropdown-edge-child-vertical-padding 0;
|
2015-12-31 11:49:17 +08:00
|
|
|
overflow: auto;
|
2019-02-15 10:48:07 +08:00
|
|
|
vertical-align: top;
|
|
|
|
list-style: none;
|
2019-12-04 11:58:48 +08:00
|
|
|
border-right: @border-width-base @border-style-base @cascader-menu-border-color-split;
|
2018-08-24 21:07:29 +08:00
|
|
|
-ms-overflow-style: -ms-autohiding-scrollbar; // https://github.com/ant-design/ant-design/issues/11857
|
|
|
|
|
2021-08-31 15:51:02 +08:00
|
|
|
&-item {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
align-items: center;
|
|
|
|
padding: @cascader-dropdown-vertical-padding @control-padding-horizontal;
|
|
|
|
overflow: hidden;
|
|
|
|
line-height: @cascader-dropdown-line-height;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
cursor: pointer;
|
|
|
|
transition: all 0.3s;
|
|
|
|
|
2015-12-29 11:46:13 +08:00
|
|
|
&:hover {
|
2021-08-31 15:51:02 +08:00
|
|
|
background: @item-hover-bg;
|
2015-12-29 11:46:13 +08:00
|
|
|
}
|
2018-08-13 11:44:25 +08:00
|
|
|
|
2021-08-31 15:51:02 +08:00
|
|
|
&-disabled {
|
|
|
|
color: @disabled-color;
|
|
|
|
cursor: not-allowed;
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2021-08-31 15:51:02 +08:00
|
|
|
&:hover {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
}
|
2020-05-28 12:17:04 +08:00
|
|
|
|
2021-08-31 15:51:02 +08:00
|
|
|
.@{cascader-prefix-cls}-menu-empty & {
|
2020-05-28 12:17:04 +08:00
|
|
|
color: @disabled-color;
|
2021-08-31 15:51:02 +08:00
|
|
|
cursor: default;
|
|
|
|
pointer-events: none;
|
2020-05-28 12:17:04 +08:00
|
|
|
}
|
2018-08-13 11:44:25 +08:00
|
|
|
|
2021-08-31 15:51:02 +08:00
|
|
|
&-active:not(&-disabled) {
|
|
|
|
&,
|
|
|
|
&:hover {
|
|
|
|
font-weight: @select-item-selected-font-weight;
|
|
|
|
background-color: @cascader-item-selected-bg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-content {
|
|
|
|
flex: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-expand &-expand-icon,
|
|
|
|
&-loading-icon {
|
|
|
|
margin-left: @padding-xss;
|
|
|
|
color: @text-color-secondary;
|
|
|
|
font-size: 10px;
|
|
|
|
|
|
|
|
.@{cascader-prefix-cls}-menu-item-disabled& {
|
|
|
|
color: @disabled-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-keyword {
|
|
|
|
color: @highlight-color;
|
|
|
|
}
|
2016-09-01 11:08:41 +08:00
|
|
|
}
|
2015-12-29 11:46:13 +08:00
|
|
|
}
|
2022-10-18 16:23:10 +08:00
|
|
|
|
|
|
|
// ===================== Compact Item Styles =====================
|
|
|
|
.compact-item(@cascader-prefix-cls);
|
2015-12-29 11:46:13 +08:00
|
|
|
}
|
2020-03-19 09:28:54 +08:00
|
|
|
|
|
|
|
@import './rtl';
|