2021-09-19 19:34:25 +08:00
|
|
|
@use 'sass:map';
|
2021-07-30 11:25:47 +08:00
|
|
|
|
2021-09-28 20:42:12 +08:00
|
|
|
@use 'mixins/mixins' as *;
|
|
|
|
@use 'common/var' as *;
|
2020-08-28 11:09:05 +08:00
|
|
|
|
|
|
|
@include b(table-column) {
|
|
|
|
@include m(selection) {
|
|
|
|
.cell {
|
|
|
|
padding-left: 14px;
|
|
|
|
padding-right: 14px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include b(table-filter) {
|
2022-04-26 17:19:09 +08:00
|
|
|
border: solid 1px getCssVar('border-color-lighter');
|
2020-08-28 11:09:05 +08:00
|
|
|
border-radius: 2px;
|
2021-09-28 20:42:12 +08:00
|
|
|
background-color: $color-white;
|
|
|
|
box-shadow: map.get($dropdown, 'menu-box-shadow');
|
2020-08-28 11:09:05 +08:00
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
/** used for dropdown mode */
|
|
|
|
@include e(list) {
|
|
|
|
padding: 5px 0;
|
|
|
|
margin: 0;
|
|
|
|
list-style: none;
|
|
|
|
min-width: 100px;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include e(list-item) {
|
|
|
|
line-height: 36px;
|
|
|
|
padding: 0 10px;
|
|
|
|
cursor: pointer;
|
2022-04-26 17:19:09 +08:00
|
|
|
font-size: getCssVar('font-size', 'base');
|
2020-08-28 11:09:05 +08:00
|
|
|
|
|
|
|
&:hover {
|
2021-09-28 20:42:12 +08:00
|
|
|
background-color: map.get($dropdown, 'menuItem-hover-fill');
|
|
|
|
color: map.get($dropdown, 'menuItem-hover-color');
|
2020-08-28 11:09:05 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
@include when(active) {
|
2022-04-26 17:19:09 +08:00
|
|
|
background-color: getCssVar('color-primary');
|
2021-09-28 20:42:12 +08:00
|
|
|
color: $color-white;
|
2020-08-28 11:09:05 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include e(content) {
|
|
|
|
min-width: 100px;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include e(bottom) {
|
2022-04-26 17:19:09 +08:00
|
|
|
border-top: 1px solid getCssVar('border-color-lighter');
|
2020-08-28 11:09:05 +08:00
|
|
|
padding: 8px;
|
|
|
|
|
|
|
|
button {
|
|
|
|
background: transparent;
|
|
|
|
border: none;
|
2022-04-26 17:19:09 +08:00
|
|
|
color: getCssVar('text-color', 'regular');
|
2020-08-28 11:09:05 +08:00
|
|
|
cursor: pointer;
|
2022-04-26 17:19:09 +08:00
|
|
|
font-size: getCssVar('font-size-small');
|
2020-08-28 11:09:05 +08:00
|
|
|
padding: 0 3px;
|
|
|
|
|
|
|
|
&:hover {
|
2022-04-26 17:19:09 +08:00
|
|
|
color: getCssVar('color-primary');
|
2020-08-28 11:09:05 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-disabled {
|
2022-04-10 23:58:20 +08:00
|
|
|
color: getCssVar('disabled-text-color');
|
2020-08-28 11:09:05 +08:00
|
|
|
cursor: not-allowed;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include e(wrap) {
|
|
|
|
max-height: 280px;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include e(checkbox-group) {
|
|
|
|
padding: 10px;
|
|
|
|
|
2021-02-04 16:29:23 +08:00
|
|
|
label.#{$namespace}-checkbox {
|
2022-01-19 17:12:58 +08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2020-08-28 11:09:05 +08:00
|
|
|
margin-right: 5px;
|
2022-01-19 17:12:58 +08:00
|
|
|
margin-bottom: 12px;
|
2020-08-28 11:09:05 +08:00
|
|
|
margin-left: 5px;
|
2022-01-19 17:12:58 +08:00
|
|
|
height: unset;
|
2020-08-28 11:09:05 +08:00
|
|
|
}
|
|
|
|
|
2021-02-04 16:29:23 +08:00
|
|
|
.#{$namespace}-checkbox:last-child {
|
2020-08-28 11:09:05 +08:00
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
2021-07-14 09:27:52 +08:00
|
|
|
}
|