2017-08-23 10:07:14 +00:00
|
|
|
@import "mixins/mixins";
|
2017-11-12 12:56:18 +00:00
|
|
|
@import "mixins/utils";
|
2017-08-23 10:07:14 +00:00
|
|
|
@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;
|
|
|
|
|
2018-10-17 08:40:29 +00:00
|
|
|
.el-select__tags
|
|
|
|
>span {
|
|
|
|
display: contents;
|
|
|
|
}
|
|
|
|
|
2017-08-23 10:07:14 +00:00
|
|
|
&:hover {
|
|
|
|
.el-input__inner {
|
|
|
|
border-color: $--select-border-color-hover;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-22 09:46:34 +00:00
|
|
|
.el-input__inner {
|
2017-08-23 10:07:14 +00:00
|
|
|
cursor: pointer;
|
|
|
|
padding-right: 35px;
|
|
|
|
|
|
|
|
&:focus {
|
2019-03-14 09:55:28 +00:00
|
|
|
border-color: $--select-input-focus-border-color;
|
2017-08-23 10:07:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-22 09:46:34 +00:00
|
|
|
.el-input {
|
2017-09-14 11:34:15 +00:00
|
|
|
& .el-select__caret {
|
2017-08-23 10:07:14 +00:00
|
|
|
color: $--select-input-color;
|
|
|
|
font-size: $--select-input-font-size;
|
|
|
|
transition: transform .3s;
|
2017-09-13 03:40:36 +00:00
|
|
|
transform: rotateZ(180deg);
|
2017-08-23 10:07:14 +00:00
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
@include when(reverse) {
|
2017-09-13 03:40:36 +00:00
|
|
|
transform: rotateZ(0deg);
|
2017-08-23 10:07:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@include when(show-close) {
|
|
|
|
font-size: $--select-font-size;
|
|
|
|
text-align: center;
|
2017-09-13 03:40:36 +00:00
|
|
|
transform: rotateZ(180deg);
|
2017-08-23 10:07:14 +00:00
|
|
|
border-radius: $--border-radius-circle;
|
|
|
|
color: $--select-input-color;
|
2017-09-21 02:55:46 +00:00
|
|
|
transition: $--color-transition-base;
|
2017-08-23 10:07:14 +00:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: $--select-close-hover-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-disabled {
|
|
|
|
& .el-input__inner {
|
|
|
|
cursor: not-allowed;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
border-color: $--select-disabled-border;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-11-02 11:18:48 +00:00
|
|
|
|
|
|
|
&.is-focus .el-input__inner {
|
2019-03-14 09:55:28 +00:00
|
|
|
border-color: $--select-input-focus-border-color;
|
2017-11-02 11:18:48 +00:00
|
|
|
}
|
2017-08-23 10:07:14 +00:00
|
|
|
}
|
|
|
|
|
2017-09-22 09:46:34 +00:00
|
|
|
> .el-input {
|
2017-08-23 10:07:14 +00:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include e(input) {
|
|
|
|
border: none;
|
|
|
|
outline: none;
|
|
|
|
padding: 0;
|
2017-10-18 10:31:03 +00:00
|
|
|
margin-left: 15px;
|
2017-08-23 10:07:14 +00:00
|
|
|
color: $--select-multiple-input-color;
|
|
|
|
font-size: $--select-font-size;
|
|
|
|
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%);
|
2018-01-26 03:24:09 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
flex-wrap: wrap;
|
2017-08-23 10:07:14 +00:00
|
|
|
}
|
|
|
|
|
2017-09-22 09:46:34 +00:00
|
|
|
.el-tag__close {
|
2017-08-23 10:07:14 +00:00
|
|
|
margin-top: -2px;
|
|
|
|
}
|
|
|
|
|
2017-09-22 09:46:34 +00:00
|
|
|
.el-tag {
|
2017-08-23 10:07:14 +00:00
|
|
|
box-sizing: border-box;
|
2017-09-21 02:55:46 +00:00
|
|
|
border-color: transparent;
|
2018-01-26 03:24:09 +00:00
|
|
|
margin: 2px 0 2px 6px;
|
2017-10-20 06:03:34 +00:00
|
|
|
background-color: #f0f2f5;
|
2017-09-21 02:55:46 +00:00
|
|
|
|
|
|
|
&__close.el-icon-close {
|
|
|
|
background-color: $--color-text-placeholder;
|
|
|
|
right: -7px;
|
2017-11-02 11:18:48 +00:00
|
|
|
top: 0;
|
2017-09-21 02:55:46 +00:00
|
|
|
color: $--color-white;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: $--color-text-secondary;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
display: block;
|
2017-10-18 08:12:54 +00:00
|
|
|
transform: translate(0, .5px);
|
2017-09-21 02:55:46 +00:00
|
|
|
}
|
|
|
|
}
|
2017-08-23 10:07:14 +00:00
|
|
|
}
|
|
|
|
}
|