zhangyong
2023-08-22 1353e87cb21a4032d585d7404bae9042f2ebcf08
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
@use 'sass:map';
 
@use 'mixins/mixins' as *;
@use 'common/var' as *;
 
@include b(table-column) {
  @include m(selection) {
    .cell {
      padding-left: 14px;
      padding-right: 14px;
    }
  }
}
 
@include b(table-filter) {
  border: solid 1px getCssVar('border-color-lighter');
  border-radius: 2px;
  background-color: $color-white;
  box-shadow: map.get($dropdown, 'menu-box-shadow');
  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;
    font-size: getCssVar('font-size', 'base');
 
    &:hover {
      background-color: map.get($dropdown, 'menuItem-hover-fill');
      color: map.get($dropdown, 'menuItem-hover-color');
    }
 
    @include when(active) {
      background-color: getCssVar('color-primary');
      color: $color-white;
    }
  }
 
  @include e(content) {
    min-width: 100px;
  }
 
  @include e(bottom) {
    border-top: 1px solid getCssVar('border-color-lighter');
    padding: 8px;
 
    button {
      background: transparent;
      border: none;
      color: getCssVar('text-color', 'regular');
      cursor: pointer;
      font-size: getCssVar('font-size-small');
      padding: 0 3px;
 
      &:hover {
        color: getCssVar('color-primary');
      }
 
      &:focus {
        outline: none;
      }
 
      &.is-disabled {
        color: getCssVar('disabled-text-color');
        cursor: not-allowed;
      }
    }
  }
 
  @include e(wrap) {
    max-height: 280px;
  }
 
  @include e(checkbox-group) {
    padding: 10px;
 
    label.#{$namespace}-checkbox {
      display: flex;
      align-items: center;
      margin-right: 5px;
      margin-bottom: 12px;
      margin-left: 5px;
      height: unset;
    }
 
    .#{$namespace}-checkbox:last-child {
      margin-bottom: 0;
    }
  }
}