qt-public-ui
Version:
新设计规范下业务组件库
213 lines (210 loc) • 4.87 kB
text/less
@import (reference) '../../style/common.less';
.umui-multi-select-dropdown {
background-color: white;
box-shadow: @box-shadow-base;
.use-all-selection {
color: @text-color-secondary;
font-size: 12px;
display: flex;
padding: 4px 12px;
min-height: 36px;
align-items: center;
background: @component-background;
border-bottom: 1px solid @border-color-split;
.@{ant-prefix}-checkbox-wrapper {
margin-right: 8px;
}
&-checked {
& > span {
color: @text-color;
}
}
}
.umui-multi-options-wrapper {
background: @component-background;
width: 100%;
padding: 4px 0;
max-height: 324px;
overflow: auto;
}
.umui-multi-footer{
background-color: white;
display: flex;
height: 40px;
justify-content: space-between;
align-items: center;
padding: 0 10px 0 16px;
border-top: 1px solid #F0F1F3;
p{
font-family: PingFangSC-Regular;
font-size: 12px;
color: #97A1AF;
letter-spacing: 0;
line-height: 20px;
margin-bottom: 0;
}
button{
width: 40px;
height: 24px;
padding: 0;
}
}
.search-box {
.umui-input-search {
padding-left: 16px;
border-bottom: 1px solid @border-color-split;
background-color: @white;
}
.@{ant-prefix}-input-affix-wrapper {
padding: 4.5px 12px;
}
.@{ant-prefix}-input-affix-wrapper .@{ant-prefix}-input-suffix {
right: 12px;
}
}
.um-multi-option {
&-disabled:hover {
cursor: not-allowed ;
}
display: flex;
padding: 4px 12px;
margin: 4px 0;
align-items: center;
&:hover {
background-color: @item-hover-bg;
cursor: pointer;
}
&-label {
color: @text-color;
line-height: 20px;
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
&-label-checked {
color: @text-color;
// font-weight: bolder;
}
.@{ant-prefix}-checkbox-wrapper {
margin-right: 8px;
}
&-disabled {
.um-multi-option-label-checked {
color: @text-color-secondary ;
}
}
}
}
@selectmaxwidth: 480px;
@selectminwidth: 124px;
.umui-multi-select {
display: inline-block;
min-width: @selectminwidth;
max-width: @selectmaxwidth;
vertical-align: middle;
background-color: @component-background;
&-active {
border-color: @primary-color ;
}
&-active-color {
color: @primary-color ;
}
&-active-transform {
transform: rotate(180deg);
}
.um-icon-filter {
top: 4px;
color: @text-color-secondary;
position: absolute;
right: 12px;
font-size: 14px;
height: 14px;
transition: transform 0.3s;
transform-origin: 50% 65%;
}
&.umui-multi-select-disabled {
cursor: not-allowed;
background-color: @disabled-bg;
color: @disabled-color;
.um-multi-option-label-checked {
color: @text-color-secondary ;
}
.um-icon-filter {
color: @disabled-color;
}
}
&.umui-multi-select-underline {
.umui-multi-selected-options {
border: none;
border-bottom: 1px solid @border-color-base;
border-radius: 0;
}
}
.umui-multi-selected-options {
min-height: 28px;
border: 1px solid @border-color-base;
border-radius: 2px;
padding: 0 36px 8px 4px;
display: flex;
justify-content: space-between;
position: relative;
overflow: hidden;
&:hover {
cursor: pointer;
border-color: @primary-color ;
}
&-seperator {
padding: 0 36px 0 16px;
.umui-multi-selected-options-wrapper {
flex-wrap: nowrap;
align-items: center;
width: 100%;
margin-bottom: 0 ;
& > .options-seperator {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: @text-color;
line-height: 26px;
}
}
}
.umui-multi-selected-options-wrapper {
display: flex;
flex-wrap: wrap;
height: auto;
margin-bottom: -6px;
width: 100%;
overflow: hidden;
& > .@{ant-prefix}-tag {
margin-top: 3px;
margin-right: 4px;
border: none;
line-height: 1.5;
height: 20px;
background-color: @normal-color;
max-width: 100%;
display: flex;
align-items: center;
color: @text-color;
}
.multi-select-option-text {
overflow: hidden;
flex: 1;
text-overflow: ellipsis;
}
}
.umui-multi-select-placeholder {
position: absolute;
top: 0;
right: 12px;
bottom: 0;
left: 12px;
height: 100%;
display: flex;
align-items: center;
color: @text-color-info;
}
}
}