mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-12 10:45:10 +08:00
5db2e9729c
fix all picker's transition and styles, including select, autocomplete, timer-picker, date-picker and so on, which transition should be 'el-zoom-in-top' and without duplication.
86 lines
1.5 KiB
SCSS
86 lines
1.5 KiB
SCSS
@import "mixins/mixins";
|
|
@import "mixins/utils";
|
|
@import "common/var";
|
|
@import "./input.scss";
|
|
@import "./scrollbar.scss";
|
|
@import "./popper";
|
|
|
|
@include b(autocomplete) {
|
|
position: relative;
|
|
display: inline-block;
|
|
|
|
@include e(popper) {
|
|
@include picker-popper(
|
|
$--color-white,
|
|
1px solid $--border-color-light,
|
|
$--box-shadow-light,
|
|
);
|
|
}
|
|
}
|
|
|
|
@include b(autocomplete-suggestion) {
|
|
border-radius: $--border-radius-base;
|
|
box-sizing: border-box;
|
|
|
|
@include e(wrap) {
|
|
max-height: 280px;
|
|
padding: 10px 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
@include e(list) {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
& li {
|
|
padding: 0 20px;
|
|
margin: 0;
|
|
line-height: 34px;
|
|
cursor: pointer;
|
|
color: $--color-text-regular;
|
|
font-size: $--font-size-base;
|
|
list-style: none;
|
|
text-align: left;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
|
|
&:hover {
|
|
background-color: $--select-option-hover-background;
|
|
}
|
|
|
|
&.highlighted {
|
|
background-color: $--select-option-hover-background;
|
|
}
|
|
|
|
&.divider {
|
|
margin-top: 6px;
|
|
border-top: 1px solid $--color-black;
|
|
}
|
|
|
|
&.divider:last-child {
|
|
margin-bottom: -6px;
|
|
}
|
|
}
|
|
|
|
@include when(loading) {
|
|
li {
|
|
text-align: center;
|
|
height: 100px;
|
|
line-height: 100px;
|
|
font-size: 20px;
|
|
color: #999;
|
|
@include utils-vertical-center;
|
|
|
|
&:hover {
|
|
background-color: $--color-white;
|
|
}
|
|
}
|
|
|
|
& .el-icon-loading {
|
|
vertical-align: middle;
|
|
}
|
|
}
|
|
}
|