element/packages/theme-chalk/src/option.scss

40 lines
792 B
SCSS
Raw Normal View History

@import "mixins/mixins";
@import "common/var";
@include b(select-dropdown) {
@include e(item) {
font-size: $--select-font-size;
padding: 7px 20px;
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 {
2017-09-21 03:50:56 +00:00
color: $--select-option-selected;
}
& span {
line-height: 1.5 !important;
}
}
}