Files
vxe-table/styles/filter.scss
xuliangzhan e6a5ea625e 内部重构
2019-12-11 13:10:19 +08:00

115 lines
2.3 KiB
SCSS

/**Variable**/
/*筛选*/
.vxe-filter-wrapper {
padding: 0 0.1em 0 0.25em;
text-align: center;
vertical-align: middle;
display: inline-block;
line-height: 0;
&.is--active {
.vxe-filter--btn {
color: $vxe-font-color;
}
}
.vxe-filter--btn {
color: $vxe-table-column-icon-border-color;
cursor: pointer;
&:hover {
color: $vxe-font-color;
}
}
}
.filter--active {
.vxe-filter-wrapper {
.vxe-filter--btn {
color: $vxe-primary-color;
}
}
}
/*筛选容器*/
.vxe-table--filter-wrapper {
display: none;
position: absolute;
min-width: 120px;
border-radius: 2px;
color: $vxe-font-color;
background-color: #fff;
border: 1px solid $vxe-table-popup-border-color;
box-shadow: 0 2px 4px 0 rgba(0,0,0,.2);
font-size: 13px;
font-family: $vxe-font-family;
z-index: 10;
&:not(.is--multiple) {
text-align: center;
}
&.filter--active {
display: block;
}
.vxe-table--filter-body {
list-style-type: none;
margin: 0;
padding: 0;
max-height: 240px;
padding: 10px;
overflow-x: hidden;
overflow-y: auto;
.vxe-table--filter-option {
margin-bottom: 8px;
&:last-child {
margin-bottom: 0;
}
&:hover {
.vxe-table--filter-label {
color: $vxe-primary-color;
}
}
&.is--active {
.vxe-table--filter-label {
font-weight: 700;
color: $vxe-primary-color;
}
}
.vxe-checkbox {
display: block;
.vxe-checkbox--label {
max-width: 360px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
.vxe-table--filter-label {
display: block;
max-width: 360px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
cursor: pointer;
}
}
}
.vxe-table--filter-footer {
border-top: 1px solid $vxe-table-popup-border-color;
padding: 0.8em;
user-select: none;
button {
background-color: transparent;
padding: 0 0.4em;
border: 0;
color: $vxe-font-color;
cursor: pointer;
&:focus {
outline: none;
}
&:hover {
color: $vxe-primary-color;
}
&.is--disabled {
color: #c0c4cc;
cursor: not-allowed;
}
}
}
}