mirror of https://github.com/ElemeFE/element
144 lines
2.8 KiB
SCSS
144 lines
2.8 KiB
SCSS
![]() |
@import "mixins/mixins";
|
||
|
@import "common/var";
|
||
|
@import "select-dropdown";
|
||
|
@import "input";
|
||
|
@import "tag";
|
||
|
@import "option";
|
||
|
@import "option-group";
|
||
|
@import "scrollbar";
|
||
|
|
||
|
@include b(select) {
|
||
|
display: inline-block;
|
||
|
position: relative;
|
||
|
|
||
|
&:hover {
|
||
|
.el-input__inner {
|
||
|
border-color: $--select-border-color-hover;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
& .el-input__inner {
|
||
|
cursor: pointer;
|
||
|
padding-right: 35px;
|
||
|
|
||
|
&:focus {
|
||
|
border-color: $--select-input-focus-background;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
& .el-input {
|
||
|
& .el-input__icon {
|
||
|
color: $--select-input-color;
|
||
|
font-size: $--select-input-font-size;
|
||
|
transition: transform .3s;
|
||
|
transform: translateY(-50%) rotateZ(180deg);
|
||
|
line-height: 16px;
|
||
|
top: 50%;
|
||
|
cursor: pointer;
|
||
|
|
||
|
@include when(reverse) {
|
||
|
transform: translateY(-50%);
|
||
|
}
|
||
|
|
||
|
@include when(show-close) {
|
||
|
transition: 0s;
|
||
|
height: 16px;
|
||
|
width: 16px;
|
||
|
font-size: $--select-font-size;
|
||
|
right: 8px;
|
||
|
text-align: center;
|
||
|
transform: translateY(-50%) rotateZ(180deg);
|
||
|
border-radius: $--border-radius-circle;
|
||
|
color: $--select-input-color;
|
||
|
|
||
|
&:hover {
|
||
|
color: $--select-close-hover-color;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
&.is-disabled {
|
||
|
& .el-input__inner {
|
||
|
cursor: not-allowed;
|
||
|
|
||
|
&:hover {
|
||
|
border-color: $--select-disabled-border;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
&.is-focus .el-input__inner {
|
||
|
border-color: $--input-focus-border;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
& > .el-input {
|
||
|
display: block;
|
||
|
}
|
||
|
|
||
|
@include e(input) {
|
||
|
border: none;
|
||
|
outline: none;
|
||
|
padding: 0;
|
||
|
margin-left: 10px;
|
||
|
color: $--select-multiple-input-color;
|
||
|
font-size: $--select-font-size;
|
||
|
vertical-align: baseline;
|
||
|
appearance: none;
|
||
|
height: 28px;
|
||
|
background-color: transparent;
|
||
|
@include when(mini) {
|
||
|
height: 14px;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@include e(close) {
|
||
|
cursor: pointer;
|
||
|
position: absolute;
|
||
|
top: 8px;
|
||
|
z-index: $--index-top;
|
||
|
right: 25px;
|
||
|
color: $--select-input-color;
|
||
|
line-height: 18px;
|
||
|
font-size: $--select-input-font-size;
|
||
|
|
||
|
&:hover {
|
||
|
color: $--select-close-hover-color;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@include e(tags) {
|
||
|
position: absolute;
|
||
|
line-height: normal;
|
||
|
white-space: normal;
|
||
|
z-index: $--index-normal;
|
||
|
top: 50%;
|
||
|
transform: translateY(-50%);
|
||
|
}
|
||
|
|
||
|
& .el-tag__close {
|
||
|
margin-top: -2px;
|
||
|
}
|
||
|
|
||
|
& .el-tag {
|
||
|
height: $--select-tag-height;
|
||
|
line-height: $--select-tag-height;
|
||
|
box-sizing: border-box;
|
||
|
margin: 3px 0 3px 6px;
|
||
|
}
|
||
|
|
||
|
@include e(tag) {
|
||
|
display: inline-block;
|
||
|
height: $--select-tag-height;
|
||
|
line-height: $--select-tag-height;
|
||
|
font-size: $--select-font-size;
|
||
|
border-radius: $--border-radius-base;
|
||
|
color: $--select-tag-color;
|
||
|
background-color: $--select-tag-background;
|
||
|
|
||
|
& .el-icon-close {
|
||
|
font-size: $--select-input-font-size;
|
||
|
}
|
||
|
}
|
||
|
}
|