ant-design-vue/components/select/style/index.less

585 lines
13 KiB
Plaintext
Raw Normal View History

2019-01-02 13:01:56 +00:00
@import '../../style/themes/default';
@import '../../style/mixins/index';
@import '../../input/style/mixin';
2018-02-23 08:14:59 +00:00
2019-01-02 13:01:56 +00:00
@select-prefix-cls: ~'@{ant-prefix}-select';
2018-02-23 08:14:59 +00:00
.selection__clear() {
position: absolute;
2019-03-30 08:06:06 +00:00
top: 50%;
2018-02-23 08:14:59 +00:00
right: @control-padding-horizontal - 1px;
z-index: 1;
2019-03-30 08:06:06 +00:00
display: inline-block;
2018-02-23 08:14:59 +00:00
width: 12px;
height: 12px;
margin-top: -6px;
2019-03-30 08:06:06 +00:00
color: @disabled-color;
font-size: @font-size-sm;
font-style: normal;
2018-02-23 08:14:59 +00:00
line-height: 12px;
2019-03-30 08:06:06 +00:00
text-align: center;
text-transform: none;
background: @component-background;
2018-02-23 08:14:59 +00:00
cursor: pointer;
2019-03-30 08:06:06 +00:00
opacity: 0;
2018-02-23 08:14:59 +00:00
transition: color 0.3s ease, opacity 0.15s ease;
2019-03-30 08:06:06 +00:00
text-rendering: auto;
&::before {
2018-02-23 08:14:59 +00:00
display: block;
}
&:hover {
color: @text-color-secondary;
}
}
.@{select-prefix-cls} {
.reset-component;
position: relative;
2019-03-30 08:06:06 +00:00
display: inline-block;
update to antd3.8.3 (#159) * refactor: align * feat: update align to 2.4.3 * feat: update trigger 2.5.4 * feat: update tooltip 3.7.2 * fix: align * feat: update vc-calendar to 9.6.2 * feat: update vc-checkbox to 2.1.5 * feat: update vc-dialog to 7.1.8 * feat: update vc-from to 2.2.1 * feat: update vc-notification to 3.1.1 * test: update snapshots * feat: update vc-tree to 1.12.6 * feat: update vc-table to 6.2.8 * feat: update vc-upload to 2.5.1 * feat: update vc-input-number to 4.0.12 * feat: update vc-tabs to 9.2.6 * refactor: vc-menu * refactor: update vc-menu to 7.0.5 * style: remove unused * feat: update pagination to 1.16.5 * feat: add vc-progress 2.2.5 tag * feat: add vc-rate 2.4.0 tag * feat: update vc-slider to 8.6.1 * fix: tooltip error * style: delete conosle * feat: update vc-steps to 3.1.1 * add vc-switch tag 1.6.0 * feat: update upload to 2.5.1 * fix: update vc-menu * fix: update store * fix: add ref dir * fix: trigger mock shouldComponentUpdate * fix: update vc-select * revert: trigger lazyrenderbox * fix: update vc-select * fix: update vc-select * fix: update vc-select * fix: update vc-menu * fix: update vc-slick ref * update style to 3.8.2 * test: update snapshots * update vc-select * update util & affix * feat: add drawer * fix: support title add slot mode * test: update affix test * update alert * update anchor * update snapshots * fix: doc and vc-drawer * update select & auto-complete * update back-top & grid * feractor: avatar * test: add drawer test * update badge * update button * update card * update divider * feat: update vc-tabs to 9.3.6 and tabs * add afterEnter callback * update form * fix: update drawer * test: update snapshots * update modal & notification * test: update snapshots * update message * update locale-provider * update dropdown * update layout popconfirm popover * update time-picker * update menu * update date-picker * docs: update input docs * update input * update snapshots * update table * update test snapshots * feat: update progress * update checkbox * feat: update spin * update radio * docs: slider steps timeline * update list * update transfer * update collapse * update cascader * update upload
2018-09-05 13:28:54 +00:00
outline: 0;
2018-02-23 08:14:59 +00:00
ul,
ol {
margin: 0;
padding: 0;
list-style: none;
}
> ul > li > a {
padding: 0;
background-color: @component-background;
}
// arrow
&-arrow {
.iconfont-mixin();
position: absolute;
top: 50%;
right: @control-padding-horizontal - 1px;
margin-top: -@font-size-sm / 2;
color: @disabled-color;
font-size: @font-size-sm;
2019-03-30 08:06:06 +00:00
line-height: 1;
transform-origin: 50% 50%;
2018-02-23 08:14:59 +00:00
2018-11-14 13:33:56 +00:00
& &-icon svg {
2019-01-02 13:01:56 +00:00
transition: transform 0.3s;
2018-02-23 08:14:59 +00:00
}
}
&-selection {
2019-03-30 08:06:06 +00:00
display: block;
2018-02-23 08:14:59 +00:00
box-sizing: border-box;
background-color: @component-background;
2019-03-30 08:06:06 +00:00
border: @border-width-base @border-style-base @select-border-color;
2018-02-23 08:14:59 +00:00
// strange align fix for chrome but works
// https://gw.alipayobjects.com/zos/rmsportal/VFTfKXJuogBAXcvfAUWJ.gif
border-top-width: @border-width-base + 0.02px;
2019-03-30 08:06:06 +00:00
border-radius: @border-radius-base;
outline: none;
2019-01-02 13:01:56 +00:00
transition: all 0.3s @ease-in-out;
2019-03-30 08:06:06 +00:00
user-select: none;
2018-02-23 08:14:59 +00:00
&:hover {
.hover;
}
.@{select-prefix-cls}-focused &,
&:focus,
&:active {
.active;
}
&__clear {
.selection__clear();
}
&:hover &__clear {
opacity: 1;
}
&-selected-value {
float: left;
max-width: 100%;
padding-right: 20px;
2019-03-30 08:06:06 +00:00
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
2018-02-23 08:14:59 +00:00
}
}
update to antd3.8.3 (#159) * refactor: align * feat: update align to 2.4.3 * feat: update trigger 2.5.4 * feat: update tooltip 3.7.2 * fix: align * feat: update vc-calendar to 9.6.2 * feat: update vc-checkbox to 2.1.5 * feat: update vc-dialog to 7.1.8 * feat: update vc-from to 2.2.1 * feat: update vc-notification to 3.1.1 * test: update snapshots * feat: update vc-tree to 1.12.6 * feat: update vc-table to 6.2.8 * feat: update vc-upload to 2.5.1 * feat: update vc-input-number to 4.0.12 * feat: update vc-tabs to 9.2.6 * refactor: vc-menu * refactor: update vc-menu to 7.0.5 * style: remove unused * feat: update pagination to 1.16.5 * feat: add vc-progress 2.2.5 tag * feat: add vc-rate 2.4.0 tag * feat: update vc-slider to 8.6.1 * fix: tooltip error * style: delete conosle * feat: update vc-steps to 3.1.1 * add vc-switch tag 1.6.0 * feat: update upload to 2.5.1 * fix: update vc-menu * fix: update store * fix: add ref dir * fix: trigger mock shouldComponentUpdate * fix: update vc-select * revert: trigger lazyrenderbox * fix: update vc-select * fix: update vc-select * fix: update vc-select * fix: update vc-menu * fix: update vc-slick ref * update style to 3.8.2 * test: update snapshots * update vc-select * update util & affix * feat: add drawer * fix: support title add slot mode * test: update affix test * update alert * update anchor * update snapshots * fix: doc and vc-drawer * update select & auto-complete * update back-top & grid * feractor: avatar * test: add drawer test * update badge * update button * update card * update divider * feat: update vc-tabs to 9.3.6 and tabs * add afterEnter callback * update form * fix: update drawer * test: update snapshots * update modal & notification * test: update snapshots * update message * update locale-provider * update dropdown * update layout popconfirm popover * update time-picker * update menu * update date-picker * docs: update input docs * update input * update snapshots * update table * update test snapshots * feat: update progress * update checkbox * feat: update spin * update radio * docs: slider steps timeline * update list * update transfer * update collapse * update cascader * update upload
2018-09-05 13:28:54 +00:00
&-no-arrow &-selection-selected-value {
padding-right: 0;
}
2018-02-23 08:14:59 +00:00
&-disabled {
color: @disabled-color;
}
&-disabled &-selection {
background: @input-disabled-bg;
cursor: not-allowed;
&:hover,
&:focus,
&:active {
2019-03-30 08:06:06 +00:00
border-color: @select-border-color;
2018-02-23 08:14:59 +00:00
box-shadow: none;
}
&__clear {
display: none;
visibility: hidden;
pointer-events: none;
}
}
&-disabled &-selection--multiple &-selection__choice {
padding-right: 10px;
2019-03-30 08:06:06 +00:00
color: fade(@black, 33%);
background: @background-color-base;
2018-02-23 08:14:59 +00:00
&__remove {
display: none;
}
}
&-selection--single {
position: relative;
2019-03-30 08:06:06 +00:00
height: @input-height-base;
2018-02-23 08:14:59 +00:00
cursor: pointer;
}
&-selection__rendered {
2019-03-30 08:06:06 +00:00
position: relative;
2018-02-23 08:14:59 +00:00
display: block;
margin-right: @control-padding-horizontal - 1px;
2019-03-30 08:06:06 +00:00
margin-left: @control-padding-horizontal - 1px;
2018-02-23 08:14:59 +00:00
line-height: @input-height-base - 2px;
// https://github.com/ant-design/ant-design/issues/3481#issuecomment-254721026
2019-03-30 08:06:06 +00:00
&::after {
2018-02-23 08:14:59 +00:00
display: inline-block;
width: 0;
2019-03-30 08:06:06 +00:00
visibility: hidden;
pointer-events: none;
content: '.';
2018-02-23 08:14:59 +00:00
}
}
&-lg {
font-size: @font-size-lg;
.@{select-prefix-cls}-selection--single {
height: @input-height-lg;
}
.@{select-prefix-cls}-selection__rendered {
line-height: @input-height-lg - 2px;
}
.@{select-prefix-cls}-selection--multiple {
min-height: @input-height-lg;
.@{select-prefix-cls}-selection__rendered {
li {
height: @input-height-lg - 8px;
line-height: @input-height-lg - 8px;
}
}
.@{select-prefix-cls}-selection__clear {
top: @input-height-lg / 2;
}
}
}
&-sm {
.@{select-prefix-cls}-selection--single {
height: @input-height-sm;
}
.@{select-prefix-cls}-selection__rendered {
margin: 0 @control-padding-horizontal-sm - 1px;
2019-03-30 08:06:06 +00:00
line-height: @input-height-sm - 2px;
2018-02-23 08:14:59 +00:00
}
.@{select-prefix-cls}-selection--multiple {
min-height: @input-height-sm;
.@{select-prefix-cls}-selection__rendered {
li {
height: @input-height-sm - 8px;
line-height: @input-height-sm - 10px;
}
}
.@{select-prefix-cls}-selection__clear {
top: @input-height-sm / 2;
}
}
.@{select-prefix-cls}-selection__clear,
.@{select-prefix-cls}-arrow {
right: @control-padding-horizontal-sm;
}
}
&-disabled &-selection__choice__remove {
color: @disabled-color;
cursor: default;
&:hover {
color: @disabled-color;
}
}
&-search__field__wrap {
position: relative;
2019-03-30 08:06:06 +00:00
display: inline-block;
2018-02-23 08:14:59 +00:00
}
&-selection__placeholder,
2019-01-02 13:01:56 +00:00
&-search__field__placeholder {
// for TreeSelect compatibility
2018-02-23 08:14:59 +00:00
position: absolute;
top: 50%;
right: 9px;
2019-03-30 08:06:06 +00:00
left: 0;
2018-02-23 08:14:59 +00:00
max-width: 100%;
2019-03-30 08:06:06 +00:00
height: 20px;
2018-02-23 08:14:59 +00:00
margin-top: -10px;
overflow: hidden;
2019-03-30 08:06:06 +00:00
color: @input-placeholder-color;
line-height: 20px;
2018-02-23 08:14:59 +00:00
white-space: nowrap;
text-align: left;
2019-03-30 08:06:06 +00:00
text-overflow: ellipsis;
2018-02-23 08:14:59 +00:00
}
&-search__field__placeholder {
left: @control-padding-horizontal;
}
&-search__field__mirror {
position: absolute;
2018-11-14 13:33:56 +00:00
top: 0;
left: 0;
2018-02-23 08:14:59 +00:00
white-space: pre;
2018-11-14 13:33:56 +00:00
opacity: 0;
2019-03-30 08:06:06 +00:00
pointer-events: none;
2018-02-23 08:14:59 +00:00
}
&-search--inline {
position: absolute;
width: 100%;
2019-03-30 08:06:06 +00:00
height: 100%;
2018-02-23 08:14:59 +00:00
.@{select-prefix-cls}-search__field__wrap {
width: 100%;
height: 100%;
}
.@{select-prefix-cls}-search__field {
width: 100%;
2019-03-30 08:06:06 +00:00
height: 100%;
font-size: 100%;
line-height: 1;
2018-02-23 08:14:59 +00:00
background: transparent;
2019-03-30 08:06:06 +00:00
border-width: 0;
2018-02-23 08:14:59 +00:00
border-radius: @border-radius-base;
2019-03-30 08:06:06 +00:00
outline: 0;
2018-02-23 08:14:59 +00:00
}
> i {
float: right;
}
}
&-selection--multiple {
min-height: @input-height-base;
padding-bottom: 3px;
2019-03-30 08:06:06 +00:00
cursor: text;
2018-02-23 08:14:59 +00:00
.clearfix;
.@{select-prefix-cls}-search--inline {
position: static;
2019-03-30 08:06:06 +00:00
float: left;
2018-02-23 08:14:59 +00:00
width: auto;
max-width: 100%;
2019-03-30 08:06:06 +00:00
padding: 0;
2018-02-23 08:14:59 +00:00
.@{select-prefix-cls}-search__field {
width: 0.75em;
2019-03-30 08:06:06 +00:00
max-width: 100%;
2018-02-23 08:14:59 +00:00
}
}
.@{select-prefix-cls}-selection__rendered {
height: auto;
2019-03-30 08:06:06 +00:00
margin-bottom: -3px;
margin-left: 5px;
2018-02-23 08:14:59 +00:00
}
.@{select-prefix-cls}-selection__placeholder {
margin-left: 6px;
}
> ul > li,
2019-01-02 13:01:56 +00:00
.@{select-prefix-cls}-selection__rendered > ul > li {
2019-03-30 08:06:06 +00:00
height: @input-height-base - 8px;
2019-01-02 13:01:56 +00:00
// for tree-select
2018-02-23 08:14:59 +00:00
margin-top: 3px;
line-height: @input-height-base - 8px - 2px;
}
.@{select-prefix-cls}-selection__choice {
2019-03-30 08:06:06 +00:00
position: relative;
float: left;
max-width: 99%;
margin-right: 4px;
padding: 0 20px 0 10px;
overflow: hidden;
2018-02-23 08:14:59 +00:00
color: @tag-default-color;
background-color: @tag-default-bg;
border: 1px solid @border-color-split;
border-radius: @border-radius-sm;
cursor: default;
2019-01-02 13:01:56 +00:00
transition: padding 0.3s @ease-in-out;
2018-02-23 08:14:59 +00:00
&__disabled {
padding: 0 10px;
}
}
.@{select-prefix-cls}-selection__choice__content {
display: inline-block;
2019-03-30 08:06:06 +00:00
max-width: 100%;
2018-02-23 08:14:59 +00:00
overflow: hidden;
2019-03-30 08:06:06 +00:00
white-space: nowrap;
2018-02-23 08:14:59 +00:00
text-overflow: ellipsis;
2019-01-02 13:01:56 +00:00
transition: margin 0.3s @ease-in-out;
2018-02-23 08:14:59 +00:00
}
.@{select-prefix-cls}-selection__choice__remove {
.iconfont-mixin();
2019-03-30 08:06:06 +00:00
position: absolute;
right: 4px;
display: inline-block;
2018-02-23 08:14:59 +00:00
color: @text-color-secondary;
2019-03-30 08:06:06 +00:00
font-weight: bold;
font-size: @font-size-sm;
2018-02-23 08:14:59 +00:00
line-height: inherit;
cursor: pointer;
2019-01-02 13:01:56 +00:00
transition: all 0.3s;
2018-02-23 08:14:59 +00:00
.iconfont-size-under-12px(10px);
&:hover {
2019-03-30 08:06:06 +00:00
color: @icon-color-hover;
2018-02-23 08:14:59 +00:00
}
}
.@{select-prefix-cls}-selection__clear {
top: @input-height-base / 2;
}
}
update to antd3.8.3 (#159) * refactor: align * feat: update align to 2.4.3 * feat: update trigger 2.5.4 * feat: update tooltip 3.7.2 * fix: align * feat: update vc-calendar to 9.6.2 * feat: update vc-checkbox to 2.1.5 * feat: update vc-dialog to 7.1.8 * feat: update vc-from to 2.2.1 * feat: update vc-notification to 3.1.1 * test: update snapshots * feat: update vc-tree to 1.12.6 * feat: update vc-table to 6.2.8 * feat: update vc-upload to 2.5.1 * feat: update vc-input-number to 4.0.12 * feat: update vc-tabs to 9.2.6 * refactor: vc-menu * refactor: update vc-menu to 7.0.5 * style: remove unused * feat: update pagination to 1.16.5 * feat: add vc-progress 2.2.5 tag * feat: add vc-rate 2.4.0 tag * feat: update vc-slider to 8.6.1 * fix: tooltip error * style: delete conosle * feat: update vc-steps to 3.1.1 * add vc-switch tag 1.6.0 * feat: update upload to 2.5.1 * fix: update vc-menu * fix: update store * fix: add ref dir * fix: trigger mock shouldComponentUpdate * fix: update vc-select * revert: trigger lazyrenderbox * fix: update vc-select * fix: update vc-select * fix: update vc-select * fix: update vc-menu * fix: update vc-slick ref * update style to 3.8.2 * test: update snapshots * update vc-select * update util & affix * feat: add drawer * fix: support title add slot mode * test: update affix test * update alert * update anchor * update snapshots * fix: doc and vc-drawer * update select & auto-complete * update back-top & grid * feractor: avatar * test: add drawer test * update badge * update button * update card * update divider * feat: update vc-tabs to 9.3.6 and tabs * add afterEnter callback * update form * fix: update drawer * test: update snapshots * update modal & notification * test: update snapshots * update message * update locale-provider * update dropdown * update layout popconfirm popover * update time-picker * update menu * update date-picker * docs: update input docs * update input * update snapshots * update table * update test snapshots * feat: update progress * update checkbox * feat: update spin * update radio * docs: slider steps timeline * update list * update transfer * update collapse * update cascader * update upload
2018-09-05 13:28:54 +00:00
&-allow-clear &-selection--single &-selection-selected-value {
padding-right: 16px;
}
2018-02-23 08:14:59 +00:00
&-allow-clear &-selection--multiple &-selection__rendered {
margin-right: 20px; // In case that clear button will overlap content
}
&-open {
2018-11-14 13:33:56 +00:00
.@{select-prefix-cls}-arrow {
&-icon svg {
transform: rotate(180deg);
}
2018-02-23 08:14:59 +00:00
}
.@{select-prefix-cls}-selection {
.active();
}
}
&-combobox {
.@{select-prefix-cls}-arrow {
display: none;
}
.@{select-prefix-cls}-search--inline {
float: none;
2019-03-30 08:06:06 +00:00
width: 100%;
height: 100%;
2018-02-23 08:14:59 +00:00
}
.@{select-prefix-cls}-search__field__wrap {
width: 100%;
height: 100%;
}
.@{select-prefix-cls}-search__field {
position: relative;
z-index: 1;
2019-03-30 08:06:06 +00:00
width: 100%;
height: 100%;
2018-02-23 08:14:59 +00:00
box-shadow: none;
2019-03-30 08:06:06 +00:00
transition: all 0.3s @ease-in-out, height 0s;
2018-02-23 08:14:59 +00:00
}
}
&-combobox&-allow-clear &-selection:hover &-selection__rendered {
margin-right: 20px; // In case that clear button will overlap content
}
}
.@{select-prefix-cls}-dropdown {
.reset-component;
2019-03-30 08:06:06 +00:00
position: absolute;
top: -9999px;
left: -9999px;
z-index: @zindex-dropdown;
box-sizing: border-box;
font-size: @font-size-base;
2018-11-14 13:33:56 +00:00
// Fix select render lag of long text in chrome
// https://github.com/ant-design/ant-design/issues/11456
// https://github.com/ant-design/ant-design/issues/11843
font-variant: initial;
2018-02-23 08:14:59 +00:00
2019-03-30 08:06:06 +00:00
background-color: @component-background;
border-radius: @border-radius-base;
outline: none;
box-shadow: @box-shadow-base;
2018-02-23 08:14:59 +00:00
&.slide-up-enter.slide-up-enter-active&-placement-bottomLeft,
&.slide-up-appear.slide-up-appear-active&-placement-bottomLeft {
animation-name: antSlideUpIn;
}
&.slide-up-enter.slide-up-enter-active&-placement-topLeft,
&.slide-up-appear.slide-up-appear-active&-placement-topLeft {
animation-name: antSlideDownIn;
}
&.slide-up-leave.slide-up-leave-active&-placement-bottomLeft {
animation-name: antSlideUpOut;
}
&.slide-up-leave.slide-up-leave-active&-placement-topLeft {
animation-name: antSlideDownOut;
}
&-hidden {
display: none;
}
&-menu {
2019-03-30 08:06:06 +00:00
max-height: 250px;
2018-02-23 08:14:59 +00:00
margin-bottom: 0;
padding-left: 0; // Override default ul/ol
2018-02-27 13:58:55 +00:00
overflow: auto;
2019-03-30 08:06:06 +00:00
list-style: none;
outline: none;
2018-02-23 08:14:59 +00:00
&-item-group-list {
margin: 0;
padding: 0;
> .@{select-prefix-cls}-dropdown-menu-item {
padding-left: 20px;
}
}
&-item-group-title {
height: 32px;
2019-03-30 08:06:06 +00:00
padding: 0 @control-padding-horizontal;
color: @text-color-secondary;
2018-02-23 08:14:59 +00:00
font-size: @font-size-sm;
2019-03-30 08:06:06 +00:00
line-height: 32px;
2018-02-23 08:14:59 +00:00
}
update to antd3.8.3 (#159) * refactor: align * feat: update align to 2.4.3 * feat: update trigger 2.5.4 * feat: update tooltip 3.7.2 * fix: align * feat: update vc-calendar to 9.6.2 * feat: update vc-checkbox to 2.1.5 * feat: update vc-dialog to 7.1.8 * feat: update vc-from to 2.2.1 * feat: update vc-notification to 3.1.1 * test: update snapshots * feat: update vc-tree to 1.12.6 * feat: update vc-table to 6.2.8 * feat: update vc-upload to 2.5.1 * feat: update vc-input-number to 4.0.12 * feat: update vc-tabs to 9.2.6 * refactor: vc-menu * refactor: update vc-menu to 7.0.5 * style: remove unused * feat: update pagination to 1.16.5 * feat: add vc-progress 2.2.5 tag * feat: add vc-rate 2.4.0 tag * feat: update vc-slider to 8.6.1 * fix: tooltip error * style: delete conosle * feat: update vc-steps to 3.1.1 * add vc-switch tag 1.6.0 * feat: update upload to 2.5.1 * fix: update vc-menu * fix: update store * fix: add ref dir * fix: trigger mock shouldComponentUpdate * fix: update vc-select * revert: trigger lazyrenderbox * fix: update vc-select * fix: update vc-select * fix: update vc-select * fix: update vc-menu * fix: update vc-slick ref * update style to 3.8.2 * test: update snapshots * update vc-select * update util & affix * feat: add drawer * fix: support title add slot mode * test: update affix test * update alert * update anchor * update snapshots * fix: doc and vc-drawer * update select & auto-complete * update back-top & grid * feractor: avatar * test: add drawer test * update badge * update button * update card * update divider * feat: update vc-tabs to 9.3.6 and tabs * add afterEnter callback * update form * fix: update drawer * test: update snapshots * update modal & notification * test: update snapshots * update message * update locale-provider * update dropdown * update layout popconfirm popover * update time-picker * update menu * update date-picker * docs: update input docs * update input * update snapshots * update table * update test snapshots * feat: update progress * update checkbox * feat: update spin * update radio * docs: slider steps timeline * update list * update transfer * update collapse * update cascader * update upload
2018-09-05 13:28:54 +00:00
&-item-group-list &-item:first-child:not(:last-child),
&-item-group:not(:last-child) &-item-group-list &-item:last-child {
border-radius: 0;
}
2018-02-23 08:14:59 +00:00
&-item {
position: relative;
display: block;
padding: 5px @control-padding-horizontal;
2019-03-30 08:06:06 +00:00
overflow: hidden;
2018-02-23 08:14:59 +00:00
color: @text-color;
2019-03-30 08:06:06 +00:00
font-weight: normal;
line-height: 22px;
2018-02-23 08:14:59 +00:00
white-space: nowrap;
text-overflow: ellipsis;
2019-03-30 08:06:06 +00:00
cursor: pointer;
2018-02-23 08:14:59 +00:00
transition: background 0.3s ease;
&:hover {
background-color: @item-hover-bg;
}
2018-04-07 06:29:59 +00:00
&:first-child {
border-radius: @border-radius-base @border-radius-base 0 0;
}
&:last-child {
border-radius: 0 0 @border-radius-base @border-radius-base;
}
2018-02-23 08:14:59 +00:00
&-disabled {
color: @disabled-color;
cursor: not-allowed;
&:hover {
color: @disabled-color;
background-color: @component-background;
cursor: not-allowed;
}
}
&-selected {
&,
&:hover {
color: @text-color;
2019-03-30 08:06:06 +00:00
font-weight: 600;
background-color: @background-color-light;
2018-02-23 08:14:59 +00:00
}
}
&-active {
background-color: @item-active-bg;
}
&-divider {
height: 1px;
margin: 1px 0;
overflow: hidden;
line-height: 0;
2019-03-30 08:06:06 +00:00
background-color: @border-color-split;
2018-02-23 08:14:59 +00:00
}
}
}
&&--multiple {
.@{select-prefix-cls}-dropdown-menu-item {
2018-11-14 13:33:56 +00:00
padding-right: @control-padding-horizontal + 20;
& .@{select-prefix-cls}-selected-icon {
2018-02-23 08:14:59 +00:00
position: absolute;
top: 50%;
right: @control-padding-horizontal;
2019-03-30 08:06:06 +00:00
color: transparent;
2018-02-23 08:14:59 +00:00
font-weight: bold;
2019-03-30 08:06:06 +00:00
font-size: 12px;
2018-02-23 08:14:59 +00:00
text-shadow: 0 0.1px 0, 0.1px 0 0, 0 -0.1px 0, -0.1px 0;
2019-03-30 08:06:06 +00:00
transform: translateY(-50%);
2019-08-26 13:11:46 +00:00
transition: all .2s;
2018-02-23 08:14:59 +00:00
}
2018-11-14 13:33:56 +00:00
&:hover .@{select-prefix-cls}-selected-icon {
2019-03-30 08:06:06 +00:00
color: fade(@black, 87%);
2018-02-23 08:14:59 +00:00
}
2018-11-14 13:33:56 +00:00
&-disabled .@{select-prefix-cls}-selected-icon {
2018-02-23 08:14:59 +00:00
display: none;
}
2018-11-14 13:33:56 +00:00
&-selected .@{select-prefix-cls}-selected-icon,
&-selected:hover .@{select-prefix-cls}-selected-icon {
2018-02-23 08:14:59 +00:00
display: inline-block;
2019-03-30 08:06:06 +00:00
color: @primary-color;
2018-02-23 08:14:59 +00:00
}
}
}
&-container-open,
&-open {
.@{select-prefix-cls}-dropdown {
display: block;
}
}
}