element/packages/theme-default/src/select.css

137 lines
3.0 KiB
CSS
Raw Normal View History

2016-11-02 04:24:05 +00:00
@charset "UTF-8";
@import "./common/var.css";
@import "./select-dropdown.css";
@import "./input.css";
@import "./tag.css";
@import "./option.css";
@import "./option-group.css";
@import "./scrollbar.css";
2016-11-02 04:24:05 +00:00
@component-namespace el {
@b select {
display: inline-block;
2016-11-02 04:24:05 +00:00
position: relative;
&:hover {
.el-input__inner {
border-color: var(--select-border-color-hover);
}
}
2016-11-09 09:57:00 +00:00
& .el-input__inner {
cursor: pointer;
&:focus {
border-color: var(--select-input-focus-background);
}
}
2016-11-02 04:24:05 +00:00
& .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);
}
}
}
&.is-disabled {
& .el-input__inner {
cursor: not-allowed;
&:hover {
border-color: var(--select-disabled-border);
}
}
}
}
@e input {
border: none;
outline: none;
padding: 0;
2016-12-13 14:42:01 +00:00
margin-left: 10px;
2016-11-02 04:24:05 +00:00
color: var(--select-multiple-input-color);
font-size: var(--select-font-size);
vertical-align: baseline;
appearance: none;
height: 28px;
background-color: transparent;
2016-12-13 14:42:01 +00:00
@when mini {
height: 14px;
}
2016-11-02 04:24:05 +00:00
}
@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);
2016-12-13 14:42:01 +00:00
top: 50%;
transform: translateY(-50%);
2016-11-02 04:24:05 +00:00
}
& .el-tag__close {
margin-top: -2px;
}
& .el-tag {
height: var(--select-tag-height);
line-height: var(--select-tag-height);
box-sizing: border-box;
2016-12-13 14:42:01 +00:00
margin: 3px 0 3px 6px;
2016-11-02 04:24:05 +00:00
}
@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);
}
}
}
}