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