@timus-networks/theme 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. package/README.md +90 -0
  2. package/components-js/exporter.js +19 -0
  3. package/components-js/interfaces.ts +11 -0
  4. package/components-js/utils.ts +20 -0
  5. package/components-ts/exporter.js +19 -0
  6. package/components-ts/interfaces.ts +11 -0
  7. package/components-ts/utils.ts +20 -0
  8. package/convert.js +98 -0
  9. package/index.d.ts +0 -0
  10. package/js-converter.js +90 -0
  11. package/loader.js +41 -0
  12. package/module.js +62 -0
  13. package/package.json +38 -0
  14. package/plugins/js-components-installer.js +21 -0
  15. package/plugins/theme-provider.ts +75 -0
  16. package/plugins/ts-components-installer.js +21 -0
  17. package/scss/_buttons.scss +160 -0
  18. package/scss/_colors.scss +159 -0
  19. package/scss/_containers.scss +7 -0
  20. package/scss/_element-ui.scss +14 -0
  21. package/scss/_fonts.scss +69 -0
  22. package/scss/_icons.scss +87 -0
  23. package/scss/_inputs.scss +39 -0
  24. package/scss/_layers.scss +9 -0
  25. package/scss/_selectbox.scss +4 -0
  26. package/scss/_variables.scss +16 -0
  27. package/scss/element-ui/alert.scss +147 -0
  28. package/scss/element-ui/aside.scss +7 -0
  29. package/scss/element-ui/autocomplete.scss +80 -0
  30. package/scss/element-ui/avatar.scss +51 -0
  31. package/scss/element-ui/backtop.scss +22 -0
  32. package/scss/element-ui/badge.scss +58 -0
  33. package/scss/element-ui/base.scss +2 -0
  34. package/scss/element-ui/breadcrumb-item.scss +0 -0
  35. package/scss/element-ui/breadcrumb.scss +55 -0
  36. package/scss/element-ui/button-group.scss +0 -0
  37. package/scss/element-ui/button.scss +275 -0
  38. package/scss/element-ui/calendar.scss +79 -0
  39. package/scss/element-ui/card.scss +32 -0
  40. package/scss/element-ui/carousel-item.scss +50 -0
  41. package/scss/element-ui/carousel.scss +162 -0
  42. package/scss/element-ui/cascader-panel.scss +120 -0
  43. package/scss/element-ui/cascader.scss +182 -0
  44. package/scss/element-ui/checkbox-button.scss +0 -0
  45. package/scss/element-ui/checkbox-group.scss +0 -0
  46. package/scss/element-ui/checkbox.scss +359 -0
  47. package/scss/element-ui/col.scss +157 -0
  48. package/scss/element-ui/collapse-item.scss +0 -0
  49. package/scss/element-ui/collapse.scss +63 -0
  50. package/scss/element-ui/color-picker.scss +384 -0
  51. package/scss/element-ui/common/popup.scss +42 -0
  52. package/scss/element-ui/common/transition.scss +99 -0
  53. package/scss/element-ui/common/var.scss +1029 -0
  54. package/scss/element-ui/container.scss +14 -0
  55. package/scss/element-ui/date-picker/date-picker.scss +97 -0
  56. package/scss/element-ui/date-picker/date-range-picker.scss +101 -0
  57. package/scss/element-ui/date-picker/date-table.scss +151 -0
  58. package/scss/element-ui/date-picker/month-table.scss +82 -0
  59. package/scss/element-ui/date-picker/picker-panel.scss +117 -0
  60. package/scss/element-ui/date-picker/picker.scss +197 -0
  61. package/scss/element-ui/date-picker/time-picker.scss +85 -0
  62. package/scss/element-ui/date-picker/time-range-picker.scss +31 -0
  63. package/scss/element-ui/date-picker/time-spinner.scss +110 -0
  64. package/scss/element-ui/date-picker/year-table.scss +51 -0
  65. package/scss/element-ui/date-picker.scss +12 -0
  66. package/scss/element-ui/descriptions-item.scss +42 -0
  67. package/scss/element-ui/descriptions.scss +111 -0
  68. package/scss/element-ui/dialog.scss +123 -0
  69. package/scss/element-ui/display.scss +12 -0
  70. package/scss/element-ui/divider.scss +47 -0
  71. package/scss/element-ui/drawer.scss +219 -0
  72. package/scss/element-ui/dropdown-item.scss +0 -0
  73. package/scss/element-ui/dropdown-menu.scss +0 -0
  74. package/scss/element-ui/dropdown.scss +182 -0
  75. package/scss/element-ui/empty.scss +45 -0
  76. package/scss/element-ui/fonts/element-icons.ttf +0 -0
  77. package/scss/element-ui/fonts/element-icons.woff +0 -0
  78. package/scss/element-ui/footer.scss +8 -0
  79. package/scss/element-ui/form-item.scss +0 -0
  80. package/scss/element-ui/form.scss +167 -0
  81. package/scss/element-ui/header.scss +8 -0
  82. package/scss/element-ui/icon.scss +1167 -0
  83. package/scss/element-ui/image.scss +179 -0
  84. package/scss/element-ui/index.scss +87 -0
  85. package/scss/element-ui/infinite-scroll.scss +0 -0
  86. package/scss/element-ui/infiniteScroll.scss +0 -0
  87. package/scss/element-ui/input-number.scss +181 -0
  88. package/scss/element-ui/input.scss +360 -0
  89. package/scss/element-ui/link.scss +81 -0
  90. package/scss/element-ui/loading.scss +97 -0
  91. package/scss/element-ui/main.scss +12 -0
  92. package/scss/element-ui/menu-item-group.scss +0 -0
  93. package/scss/element-ui/menu-item.scss +0 -0
  94. package/scss/element-ui/menu.scss +289 -0
  95. package/scss/element-ui/message-box.scss +226 -0
  96. package/scss/element-ui/message.scss +120 -0
  97. package/scss/element-ui/mixins/_button.scss +81 -0
  98. package/scss/element-ui/mixins/config.scss +4 -0
  99. package/scss/element-ui/mixins/function.scss +44 -0
  100. package/scss/element-ui/mixins/mixins.scss +190 -0
  101. package/scss/element-ui/mixins/utils.scss +39 -0
  102. package/scss/element-ui/notification.scss +99 -0
  103. package/scss/element-ui/option-group.scss +42 -0
  104. package/scss/element-ui/option.scss +36 -0
  105. package/scss/element-ui/page-header.scss +41 -0
  106. package/scss/element-ui/pagination.scss +295 -0
  107. package/scss/element-ui/popconfirm.scss +16 -0
  108. package/scss/element-ui/popover.scss +40 -0
  109. package/scss/element-ui/popper.scss +102 -0
  110. package/scss/element-ui/progress.scss +141 -0
  111. package/scss/element-ui/radio-button.scss +113 -0
  112. package/scss/element-ui/radio-group.scss +9 -0
  113. package/scss/element-ui/radio.scss +199 -0
  114. package/scss/element-ui/rate.scss +49 -0
  115. package/scss/element-ui/reset.scss +79 -0
  116. package/scss/element-ui/result.scss +61 -0
  117. package/scss/element-ui/row.scss +43 -0
  118. package/scss/element-ui/scrollbar.scss +72 -0
  119. package/scss/element-ui/select-dropdown.scss +62 -0
  120. package/scss/element-ui/select.scss +152 -0
  121. package/scss/element-ui/skeleton-item.scss +84 -0
  122. package/scss/element-ui/skeleton.scss +40 -0
  123. package/scss/element-ui/slider.scss +250 -0
  124. package/scss/element-ui/spinner.scss +44 -0
  125. package/scss/element-ui/statistic.scss +38 -0
  126. package/scss/element-ui/step.scss +317 -0
  127. package/scss/element-ui/steps.scss +20 -0
  128. package/scss/element-ui/submenu.scss +0 -0
  129. package/scss/element-ui/switch.scss +116 -0
  130. package/scss/element-ui/tab-pane.scss +0 -0
  131. package/scss/element-ui/table-column.scss +97 -0
  132. package/scss/element-ui/table.scss +564 -0
  133. package/scss/element-ui/tabs.scss +602 -0
  134. package/scss/element-ui/tag.scss +163 -0
  135. package/scss/element-ui/time-picker.scss +8 -0
  136. package/scss/element-ui/time-select.scss +37 -0
  137. package/scss/element-ui/timeline-item.scss +86 -0
  138. package/scss/element-ui/timeline.scss +14 -0
  139. package/scss/element-ui/tooltip.scss +141 -0
  140. package/scss/element-ui/transfer.scss +228 -0
  141. package/scss/element-ui/tree.scss +123 -0
  142. package/scss/element-ui/upload.scss +603 -0
  143. package/scss/main.scss +22 -0
@@ -0,0 +1,163 @@
1
+ @import "mixins/mixins";
2
+ @import "common/var";
3
+
4
+ @mixin genTheme($backgroundColorWeight, $borderColorWeight, $fontColorWeight, $hoverColorWeight) {
5
+ background-color: mix($--tag-primary-color, $--color-white, $backgroundColorWeight);
6
+ border-color: mix($--tag-primary-color, $--color-white, $borderColorWeight);
7
+ color: mix($--tag-primary-color, $--color-white, $fontColorWeight);
8
+
9
+ @include when(hit) {
10
+ border-color: $--tag-primary-color;
11
+ }
12
+
13
+ .el-tag__close {
14
+ color: mix($--tag-primary-color, $--color-white, $fontColorWeight);
15
+ &:hover {
16
+ color: $--color-white;
17
+ background-color: mix($--tag-primary-color, $--color-white, $hoverColorWeight);
18
+ }
19
+ }
20
+
21
+ &.el-tag--info {
22
+ background-color: mix($--tag-info-color, $--color-white, $backgroundColorWeight);
23
+ border-color: mix($--tag-info-color, $--color-white, $borderColorWeight);
24
+ color: mix($--tag-info-color, $--color-white, $fontColorWeight);
25
+
26
+ @include when(hit) {
27
+ border-color: $--tag-info-color;
28
+ }
29
+
30
+ .el-tag__close {
31
+ color: mix($--tag-info-color, $--color-white, $fontColorWeight);
32
+ &:hover {
33
+ color: $--color-white;
34
+ background-color: mix($--tag-info-color, $--color-white, $hoverColorWeight);
35
+ }
36
+ }
37
+ }
38
+
39
+ &.el-tag--success {
40
+ background-color: mix($--tag-success-color, $--color-white, $backgroundColorWeight);
41
+ border-color: mix($--tag-success-color, $--color-white, $borderColorWeight);
42
+ color: mix($--tag-success-color, $--color-white, $fontColorWeight);
43
+
44
+ @include when(hit) {
45
+ border-color: $--tag-success-color;
46
+ }
47
+
48
+ .el-tag__close {
49
+ color: mix($--tag-success-color, $--color-white, $fontColorWeight);
50
+ &:hover {
51
+ color: $--color-white;
52
+ background-color: mix($--tag-success-color, $--color-white, $hoverColorWeight);
53
+ }
54
+ }
55
+ }
56
+
57
+ &.el-tag--warning {
58
+ background-color: mix($--tag-warning-color, $--color-white, $backgroundColorWeight);
59
+ border-color: mix($--tag-warning-color, $--color-white, $borderColorWeight);
60
+ color: mix($--tag-warning-color, $--color-white, $fontColorWeight);
61
+
62
+ @include when(hit) {
63
+ border-color: $--tag-warning-color;
64
+ }
65
+
66
+ .el-tag__close {
67
+ color: mix($--tag-warning-color, $--color-white, $fontColorWeight);
68
+ &:hover {
69
+ color: $--color-white;
70
+ background-color: mix($--tag-warning-color, $--color-white, $hoverColorWeight);
71
+ }
72
+ }
73
+ }
74
+
75
+ &.el-tag--danger {
76
+ background-color: mix($--tag-danger-color, $--color-white, $backgroundColorWeight);
77
+ border-color: mix($--tag-danger-color, $--color-white, $borderColorWeight);
78
+ color: mix($--tag-danger-color, $--color-white, $fontColorWeight);
79
+
80
+ @include when(hit) {
81
+ border-color: $--tag-danger-color;
82
+ }
83
+
84
+ .el-tag__close {
85
+ color: mix($--tag-danger-color, $--color-white, $fontColorWeight);
86
+ &:hover {
87
+ color: $--color-white;
88
+ background-color: mix($--tag-danger-color, $--color-white, $hoverColorWeight);
89
+ }
90
+ }
91
+ }
92
+ }
93
+
94
+ @include b(tag) {
95
+ @include genTheme(10%, 20%, 100%, 100%);
96
+ display: inline-block;
97
+ height: 32px;
98
+ padding: $--tag-padding;
99
+ line-height: 30px;
100
+ font-size: $--tag-font-size;
101
+ color: $--tag-primary-color;
102
+ border-width: 1px;
103
+ border-style: solid;
104
+ border-radius: $--tag-border-radius;
105
+ box-sizing: border-box;
106
+ white-space: nowrap;
107
+
108
+ .el-icon-close {
109
+ border-radius: 50%;
110
+ text-align: center;
111
+ position: relative;
112
+ cursor: pointer;
113
+ font-size: 12px;
114
+ height: 16px;
115
+ width: 16px;
116
+ line-height: 16px;
117
+ vertical-align: middle;
118
+ top: -1px;
119
+ right: -5px;
120
+
121
+ &::before {
122
+ display: block;
123
+ }
124
+ }
125
+
126
+ @include m(dark) {
127
+ @include genTheme(100%, 100%, 0%, 80%);
128
+ }
129
+
130
+ @include m(plain) {
131
+ @include genTheme(0%, 40%, 100%, 100%);
132
+ }
133
+
134
+ @include m(medium) {
135
+ height: 28px;
136
+ line-height: 26px;
137
+
138
+ .el-icon-close {
139
+ transform: scale(.8);
140
+ }
141
+ }
142
+
143
+ @include m(small) {
144
+ height: 24px;
145
+ padding: 0 8px;
146
+ line-height: 22px;
147
+
148
+ .el-icon-close {
149
+ transform: scale(.8);
150
+ }
151
+ }
152
+
153
+ @include m(mini) {
154
+ height: 20px;
155
+ padding: 0 5px;
156
+ line-height: 19px;
157
+
158
+ .el-icon-close {
159
+ margin-left: -3px;
160
+ transform: scale(.7);
161
+ }
162
+ }
163
+ }
@@ -0,0 +1,8 @@
1
+ @import "./date-picker/picker.scss";
2
+ @import "./date-picker/picker-panel.scss";
3
+ @import "./date-picker/time-spinner.scss";
4
+ @import "./date-picker/time-picker.scss";
5
+ @import "./date-picker/time-range-picker.scss";
6
+ @import "./input.scss";
7
+ @import "./scrollbar.scss";
8
+ @import "./popper";
@@ -0,0 +1,37 @@
1
+ @import "common/var";
2
+ @import "./date-picker/picker.scss";
3
+ @import "./date-picker/date-picker.scss";
4
+ @import "./scrollbar.scss";
5
+ @import "./popper";
6
+
7
+ .time-select {
8
+ margin: 5px 0;
9
+ min-width: 0;
10
+ }
11
+
12
+ .time-select .el-picker-panel__content {
13
+ max-height: 200px;
14
+ margin: 0;
15
+ }
16
+
17
+ .time-select-item {
18
+ padding: 8px 10px;
19
+ font-size: 14px;
20
+ line-height: 20px;
21
+ }
22
+
23
+ .time-select-item.selected:not(.disabled) {
24
+ color: $--color-primary;
25
+ font-weight: bold;
26
+ }
27
+
28
+ .time-select-item.disabled {
29
+ color: $--datepicker-border-color;
30
+ cursor: not-allowed;
31
+ }
32
+
33
+ .time-select-item:hover {
34
+ background-color: $--background-color-base;
35
+ font-weight: bold;
36
+ cursor: pointer;
37
+ }
@@ -0,0 +1,86 @@
1
+ @import "mixins/mixins";
2
+ @import "common/var";
3
+
4
+ @include b(timeline-item) {
5
+ position: relative;
6
+ padding-bottom: 20px;
7
+
8
+ @include e(wrapper) {
9
+ position: relative;
10
+ padding-left: 28px;
11
+ top: -3px;
12
+ }
13
+
14
+ @include e(tail) {
15
+ position: absolute;
16
+ left: 4px;
17
+ height: 100%;
18
+ border-left: 2px solid $--timeline-node-color;
19
+ }
20
+
21
+ @include e(icon) {
22
+ color: $--color-white;
23
+ font-size: $--font-size-small;
24
+ }
25
+
26
+ @include e(node) {
27
+ position: absolute;
28
+ background-color: $--timeline-node-color;
29
+ border-radius: 50%;
30
+ display: flex;
31
+ justify-content: center;
32
+ align-items: center;
33
+
34
+ @include m(normal) {
35
+ left: -1px;
36
+ width: $--timeline-node-size-normal;
37
+ height: $--timeline-node-size-normal;
38
+ }
39
+ @include m(large) {
40
+ left: -2px;
41
+ width: $--timeline-node-size-large;
42
+ height: $--timeline-node-size-large;
43
+ }
44
+
45
+ @include m(primary) {
46
+ background-color: $--color-primary;
47
+ }
48
+ @include m(success) {
49
+ background-color: $--color-success;
50
+ }
51
+ @include m(warning) {
52
+ background-color: $--color-warning;
53
+ }
54
+ @include m(danger) {
55
+ background-color: $--color-danger;
56
+ }
57
+ @include m(info) {
58
+ background-color: $--color-info;
59
+ }
60
+ }
61
+
62
+ @include e(dot) {
63
+ position: absolute;
64
+ display: flex;
65
+ justify-content: center;
66
+ align-items: center;
67
+ }
68
+
69
+ @include e(content) {
70
+ color: $--color-text-primary;
71
+ }
72
+
73
+ @include e(timestamp) {
74
+ color: $--color-text-secondary;
75
+ line-height: 1;
76
+ font-size: $--font-size-small;
77
+
78
+ @include when(top) {
79
+ margin-bottom: 8px;
80
+ padding-top: 4px;
81
+ }
82
+ @include when(bottom) {
83
+ margin-top: 8px;
84
+ }
85
+ }
86
+ }
@@ -0,0 +1,14 @@
1
+ @import "mixins/mixins";
2
+ @import "common/var";
3
+
4
+ @include b(timeline) {
5
+ margin: 0;
6
+ font-size: $--font-size-base;
7
+ list-style: none;
8
+
9
+ & .el-timeline-item:last-child {
10
+ & .el-timeline-item__tail {
11
+ display: none;
12
+ }
13
+ }
14
+ }
@@ -0,0 +1,141 @@
1
+ @import "mixins/mixins";
2
+ @import "common/var";
3
+
4
+ @include b(tooltip) {
5
+ &:focus:not(.focusing), &:focus:hover {
6
+ outline-width: 0;
7
+ }
8
+ @include e(popper) {
9
+ position: absolute;
10
+ border-radius: 4px;
11
+ padding: $--tooltip-padding;
12
+ z-index: $--index-popper;
13
+ font-size: $--tooltip-font-size;
14
+ line-height: 1.2;
15
+ min-width: 10px;
16
+ word-wrap: break-word;
17
+
18
+ .popper__arrow,
19
+ .popper__arrow::after {
20
+ position: absolute;
21
+ display: block;
22
+ width: 0;
23
+ height: 0;
24
+ border-color: transparent;
25
+ border-style: solid;
26
+ }
27
+
28
+ .popper__arrow {
29
+ border-width: $--tooltip-arrow-size;
30
+ }
31
+
32
+ .popper__arrow::after {
33
+ content: " ";
34
+ border-width: 5px;
35
+ }
36
+
37
+ &[x-placement^="top"] {
38
+ margin-bottom: #{$--tooltip-arrow-size + 6px};
39
+ }
40
+
41
+ &[x-placement^="top"] .popper__arrow {
42
+ bottom: -$--tooltip-arrow-size;
43
+ border-top-color: $--tooltip-border-color;
44
+ border-bottom-width: 0;
45
+
46
+ &::after {
47
+ bottom: 1px;
48
+ margin-left: -5px;
49
+ border-top-color: $--tooltip-fill;
50
+ border-bottom-width: 0;
51
+ }
52
+ }
53
+
54
+ &[x-placement^="bottom"] {
55
+ margin-top: #{$--tooltip-arrow-size + 6px};
56
+ }
57
+
58
+ &[x-placement^="bottom"] .popper__arrow {
59
+ top: -$--tooltip-arrow-size;
60
+ border-top-width: 0;
61
+ border-bottom-color: $--tooltip-border-color;
62
+
63
+ &::after {
64
+ top: 1px;
65
+ margin-left: -5px;
66
+ border-top-width: 0;
67
+ border-bottom-color: $--tooltip-fill;
68
+ }
69
+ }
70
+
71
+ &[x-placement^="right"] {
72
+ margin-left: #{$--tooltip-arrow-size + 6px};
73
+ }
74
+
75
+ &[x-placement^="right"] .popper__arrow {
76
+ left: -$--tooltip-arrow-size;
77
+ border-right-color: $--tooltip-border-color;
78
+ border-left-width: 0;
79
+
80
+ &::after {
81
+ bottom: -5px;
82
+ left: 1px;
83
+ border-right-color: $--tooltip-fill;
84
+ border-left-width: 0;
85
+ }
86
+ }
87
+
88
+ &[x-placement^="left"] {
89
+ margin-right: #{$--tooltip-arrow-size + 6px};
90
+ }
91
+
92
+ &[x-placement^="left"] .popper__arrow {
93
+ right: -$--tooltip-arrow-size;
94
+ border-right-width: 0;
95
+ border-left-color: $--tooltip-border-color;
96
+
97
+ &::after {
98
+ right: 1px;
99
+ bottom: -5px;
100
+ margin-left: -5px;
101
+ border-right-width: 0;
102
+ border-left-color: $--tooltip-fill;
103
+ }
104
+ }
105
+
106
+ @include when(dark) {
107
+ background: $--tooltip-fill;
108
+ color: $--tooltip-color;
109
+ }
110
+
111
+ @include when(light) {
112
+ background: $--tooltip-color;
113
+ border: 1px solid $--tooltip-fill;
114
+
115
+ &[x-placement^="top"] .popper__arrow {
116
+ border-top-color: $--tooltip-fill;
117
+ &::after {
118
+ border-top-color: $--tooltip-color;
119
+ }
120
+ }
121
+ &[x-placement^="bottom"] .popper__arrow {
122
+ border-bottom-color: $--tooltip-fill;
123
+ &::after {
124
+ border-bottom-color: $--tooltip-color;
125
+ }
126
+ }
127
+ &[x-placement^="left"] .popper__arrow {
128
+ border-left-color: $--tooltip-fill;
129
+ &::after {
130
+ border-left-color: $--tooltip-color;
131
+ }
132
+ }
133
+ &[x-placement^="right"] .popper__arrow {
134
+ border-right-color: $--tooltip-fill;
135
+ &::after {
136
+ border-right-color: $--tooltip-color;
137
+ }
138
+ }
139
+ }
140
+ }
141
+ }
@@ -0,0 +1,228 @@
1
+ @use "sass:math";
2
+ @import "mixins/mixins";
3
+ @import "mixins/utils";
4
+ @import "common/var";
5
+ @import "input";
6
+ @import "button";
7
+ @import "checkbox";
8
+ @import "checkbox-group";
9
+
10
+ @include b(transfer) {
11
+ font-size: $--font-size-base;
12
+
13
+ @include e(buttons) {
14
+ display: inline-block;
15
+ vertical-align: middle;
16
+ padding: 0 30px;
17
+ }
18
+
19
+ @include e(button) {
20
+ display: block;
21
+ margin: 0 auto;
22
+ padding: 10px;
23
+ border-radius: 50%;
24
+ color: $--color-white;
25
+ background-color: $--color-primary;
26
+ font-size: 0;
27
+
28
+ @include when(with-texts) {
29
+ border-radius: $--border-radius-base;
30
+ }
31
+
32
+ @include when(disabled) {
33
+ border: $--border-base;
34
+ background-color: $--background-color-base;
35
+ color: $--color-text-placeholder;
36
+
37
+ &:hover {
38
+ border: $--border-base;
39
+ background-color: $--background-color-base;
40
+ color: $--color-text-placeholder;
41
+ }
42
+ }
43
+
44
+ &:first-child {
45
+ margin-bottom: 10px;
46
+ }
47
+
48
+ &:nth-child(2) {
49
+ margin: 0;
50
+ }
51
+
52
+ i, span {
53
+ font-size: 14px;
54
+ }
55
+
56
+ & [class*="el-icon-"] + span {
57
+ margin-left: 0;
58
+ }
59
+ }
60
+ }
61
+
62
+ @include b(transfer-panel) {
63
+ border: 1px solid $--transfer-border-color;
64
+ border-radius: $--transfer-border-radius;
65
+ overflow: hidden;
66
+ background: $--color-white;
67
+ display: inline-block;
68
+ vertical-align: middle;
69
+ width: $--transfer-panel-width;
70
+ max-height: 100%;
71
+ box-sizing: border-box;
72
+ position: relative;
73
+
74
+ @include e(body) {
75
+ height: $--transfer-panel-body-height;
76
+
77
+ @include when(with-footer) {
78
+ padding-bottom: $--transfer-panel-footer-height;
79
+ }
80
+ }
81
+
82
+ @include e(list) {
83
+ margin: 0;
84
+ padding: 6px 0;
85
+ list-style: none;
86
+ height: $--transfer-panel-body-height;
87
+ overflow: auto;
88
+ box-sizing: border-box;
89
+
90
+ @include when(filterable) {
91
+ height: #{$--transfer-panel-body-height - $--transfer-filter-height - 20px};
92
+ padding-top: 0;
93
+ }
94
+ }
95
+
96
+ @include e(item) {
97
+ height: $--transfer-item-height;
98
+ line-height: $--transfer-item-height;
99
+ padding-left: 15px;
100
+ display: block !important;
101
+
102
+ & + .el-transfer-panel__item {
103
+ margin-left: 0;
104
+ }
105
+
106
+ &.el-checkbox {
107
+ color: $--color-text-regular;
108
+ }
109
+
110
+ &:hover {
111
+ color: $--color-primary;
112
+ }
113
+
114
+ &.el-checkbox .el-checkbox__label {
115
+ width: 100%;
116
+ @include utils-ellipsis;
117
+ display: block;
118
+ box-sizing: border-box;
119
+ padding-left: 24px;
120
+ line-height: $--transfer-item-height;
121
+ }
122
+
123
+ .el-checkbox__input {
124
+ position: absolute;
125
+ top: 8px;
126
+ }
127
+ }
128
+
129
+ @include e(filter) {
130
+ text-align: center;
131
+ margin: 15px;
132
+ box-sizing: border-box;
133
+ display: block;
134
+ width: auto;
135
+
136
+ .el-input__inner {
137
+ height: $--transfer-filter-height;
138
+ width: 100%;
139
+ font-size: 12px;
140
+ display: inline-block;
141
+ box-sizing: border-box;
142
+ border-radius: math.div($--transfer-filter-height, 2);
143
+ padding-right: 10px;
144
+ padding-left: 30px;
145
+ }
146
+
147
+ .el-input__icon {
148
+ margin-left: 5px;
149
+ }
150
+
151
+ .el-icon-circle-close {
152
+ cursor: pointer;
153
+ }
154
+ }
155
+
156
+ .el-transfer-panel__header {
157
+ height: $--transfer-panel-header-height;
158
+ line-height: $--transfer-panel-header-height;
159
+ background: $--transfer-panel-header-background-color;
160
+ margin: 0;
161
+ padding-left: 15px;
162
+ border-bottom: 1px solid $--transfer-border-color;
163
+ box-sizing: border-box;
164
+ color: $--color-black;
165
+
166
+ .el-checkbox {
167
+ display: block;
168
+ line-height: 40px;
169
+
170
+ .el-checkbox__label {
171
+ font-size: 16px;
172
+ color: $--color-text-primary;
173
+ font-weight: normal;
174
+
175
+ span {
176
+ position: absolute;
177
+ right: 15px;
178
+ color: $--color-text-secondary;
179
+ font-size: 12px;
180
+ font-weight: normal;
181
+ }
182
+ }
183
+ }
184
+ }
185
+
186
+ .el-transfer-panel__footer {
187
+ height: $--transfer-panel-footer-height;
188
+ background: $--color-white;
189
+ margin: 0;
190
+ padding: 0;
191
+ border-top: 1px solid $--transfer-border-color;
192
+ position: absolute;
193
+ bottom: 0;
194
+ left: 0;
195
+ width: 100%;
196
+ z-index: $--index-normal;
197
+ @include utils-vertical-center;
198
+
199
+ .el-checkbox {
200
+ padding-left: 20px;
201
+ color: $--color-text-regular;
202
+ }
203
+ }
204
+
205
+ .el-transfer-panel__empty {
206
+ margin: 0;
207
+ height: $--transfer-item-height;
208
+ line-height: $--transfer-item-height;
209
+ padding: 6px 15px 0;
210
+ color: $--color-text-secondary;
211
+ text-align: center;
212
+ }
213
+
214
+ .el-checkbox__label {
215
+ padding-left: 8px;
216
+ }
217
+
218
+ .el-checkbox__inner {
219
+ height: 14px;
220
+ width: 14px;
221
+ border-radius: 3px;
222
+ &::after {
223
+ height: 6px;
224
+ width: 3px;
225
+ left: 4px;
226
+ }
227
+ }
228
+ }