yyzone
Version:
yyzone vue components and utils
154 lines (131 loc) • 3.38 kB
text/less
@prefixSelectCls: ~'@{yy-css-prefix}select';
.@{prefixSelectCls} {
display: inline-block;
width: 100%;
.@{prefixTagCls} {
margin-top: 3px;
margin-bottom: 3px;
}
&-single {
.@{prefixTagCls} {
border-color: transparent;
background-color: transparent;
&-inner {
padding: 0;
}
&:hover {
border-color: transparent;
background-color: transparent;
color: @yy-text-primary-color;
}
}
}
&-selection {
.input;
min-height: @yy-input-height-base;
line-height: normal;
padding: 0 20px 0 10px;
height: auto;
display: flex;
flex-wrap: wrap;
align-items: center;
&-disabled {
.disabled;
input {
.cursor(not-allowed);
}
}
&-readonly {
.readonly;
input {
.cursor(not-allowed);
}
}
&-focus {
.active;
}
.@{prefixFormItemCls}-error & {
.input-error()
}
&-icon {
color: @yy-text-info-color;
position: absolute;
right: 10px;
top: 50%;
margin-top: -15px;
line-height: 30px;
}
&-placeholder {
font-size: @yy-font-size-small;
line-height: 22px;
color: @yy-input-placeholder-color;
}
input {
outline: none;
border: none;
background-color: transparent;
font-size: @yy-font-size-small;
height: 30px;
line-height: 30px;
&::placeholder {
color: @yy-input-placeholder-color;
}
}
}
&-large &-selection {
min-height: @yy-input-height-large;
}
&-small &-selection {
min-height: @yy-input-height-small;
padding: 2px 20px 2px 10px;
}
&-item {
list-style: none;
padding: 5px 9px;
line-height: 22px;
font-size: @yy-font-size-small;
color: @yy-text-primary-color;
.cursor();
.yy-checkbox-wrapper {
font-size: @yy-font-size-small;
}
&:hover {
background-color: @yy-select-hover-bg;
}
&-selected {
background-color: @yy-select-selected-bg;
}
&-disabled {
.cursor(not-allowed);
background-color: @yy-btn-disable-color;
&:hover {
background-color: @yy-btn-disable-color;
}
}
}
&-dropdown {
width: auto;
max-height: 200px;
overflow: auto;
margin: 5px 0;
padding: 5px 0;
background-color: @yy-background-component;
box-sizing: border-box;
border-radius: 3px;
box-shadow: @yy-shadow-base;
position: absolute;
z-index: 900;
text-align: left;
}
&-group &-item {
padding-left: 18px;
}
&-group {
&-title {
font-size: @yy-font-size-small;
padding: 5px 9px;
line-height: 22px;
color: @yy-text-primary-color;
}
}
}