qt-public-ui
Version:
新设计规范下业务组件库
133 lines (123 loc) • 2.68 kB
text/less
@import (reference) '../../style/common.less';
.umui-cascader-select {
.umui-select-tag-no-border {
.@{ant-prefix}-select-selection__choice {
border: none;
}
}
&-popup {
max-height: 296px;
}
&-content {
border-right: 1px solid @border-color-split;
max-height: 296px;
height: 100%;
}
&-block {
height: 100%;
}
&-tabs {
height: 100%;
display: flex;
max-height: 296px;
}
&-tabs-level-1 {
border-right: 1px solid @border-color-split;
min-width: 93px;
max-height: 100%;
overflow-y: auto;
& > li {
line-height: 20px;
padding: 6px 9px 6px 16px;
font-size: 12px;
display: flex;
justify-content: space-between;
align-items: center;
color: @text-color-secondary;
cursor: pointer;
white-space: nowrap;
&:hover,
&.tab-active {
color: @primary-color;
background-color: @item-hover-bg;
i.anticon {
color: @primary-color;
}
}
i.anticon {
width: 16px;
height: 16px;
color: @text-color-secondary;
font-size: 12px;
display: flex;
align-items: center;
margin-right: 0;
}
}
}
&-tabs-level-2 {
border-left: none;
min-width: 200px;
& > .search-box {
.umui-input-underline .@{ant-prefix}-input:not(:last-child) {
padding: 8px 5px;
height: 28px;
}
}
.umui-level-2-item {
padding: 6px 8px 6px 16px;
line-height: 20px;
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
color: @text-color;
&:hover,
&.active {
color: @primary-color;
background-color: @item-hover-bg;
}
}
.umui-level-2-item-with-children {
padding: 6px 9px 6px 16px;
line-height: 20px;
display: flex;
align-items: center;
cursor: pointer;
color: @text-color;
&:hover {
background-color: @item-hover-bg;
}
&.active {
color: @primary-color;
background-color: @item-hover-bg;
}
&.disabled {
cursor: not-allowed;
color: @disabled-color;
background-color: @disabled-bg;
}
}
}
&-footer {
border-top: 1px solid @border-color-split;
min-height: 40px;
}
&-custom-template-new {
overflow: auto;
// padding: 16px;
}
&-tabs-level-3 {
padding: 10px 9px 10px 16px;
max-height: 40px;
}
&-reset {
color: @text-color;
margin-left: 5px;
}
&-reset:hover {
color: @primary-color;
margin-left: 5px;
cursor: pointer;
}
}