mirror of https://github.com/ElemeFE/element
45 lines
916 B
SCSS
45 lines
916 B
SCSS
![]() |
@import "mixins/mixins";
|
||
|
@import "common/var";
|
||
|
|
||
|
@include b(select-dropdown) {
|
||
|
@include e(item) {
|
||
|
font-size: $--select-font-size;
|
||
|
padding: 8px 10px;
|
||
|
position: relative;
|
||
|
white-space: nowrap;
|
||
|
overflow: hidden;
|
||
|
text-overflow: ellipsis;
|
||
|
color: $--select-option-color;
|
||
|
height: $--select-option-height;
|
||
|
line-height: 1.5;
|
||
|
box-sizing: border-box;
|
||
|
cursor: pointer;
|
||
|
|
||
|
@include when(disabled) {
|
||
|
color: $--select-option-disabled-color;
|
||
|
cursor: not-allowed;
|
||
|
|
||
|
&:hover {
|
||
|
background-color: $--color-white;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
&.hover, &:hover {
|
||
|
background-color: $--select-option-hover-background;
|
||
|
}
|
||
|
|
||
|
&.selected {
|
||
|
color: $--color-white;
|
||
|
background-color: $--select-option-selected;
|
||
|
|
||
|
&.hover {
|
||
|
background-color: $--select-option-selected-hover;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
& span {
|
||
|
line-height: 1.5 !important;
|
||
|
}
|
||
|
}
|
||
|
}
|