cy-element-ui 1.0.47 → 1.0.48

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 (209) hide show
  1. package/README.md +1 -1
  2. package/lib/element-ui.common.js +1 -1
  3. package/lib/index.js +1 -1
  4. package/lib/theme-chalk/README.md +33 -0
  5. package/lib/theme-chalk/base.css +1 -1
  6. package/lib/theme-chalk/gulpfile.js +27 -0
  7. package/lib/theme-chalk/index.css +1 -1
  8. package/lib/theme-chalk/package.json +35 -0
  9. package/lib/theme-chalk/src/alert.scss +147 -0
  10. package/lib/theme-chalk/src/aside.scss +7 -0
  11. package/lib/theme-chalk/src/autocomplete.scss +80 -0
  12. package/lib/theme-chalk/src/avatar.scss +51 -0
  13. package/lib/theme-chalk/src/backtop.scss +22 -0
  14. package/lib/theme-chalk/src/badge.scss +57 -0
  15. package/lib/theme-chalk/src/base.scss +2 -0
  16. package/lib/theme-chalk/src/breadcrumb.scss +55 -0
  17. package/lib/theme-chalk/src/button.scss +262 -0
  18. package/lib/theme-chalk/src/calendar.scss +79 -0
  19. package/lib/theme-chalk/src/card.scss +32 -0
  20. package/lib/theme-chalk/src/carousel-item.scss +50 -0
  21. package/lib/theme-chalk/src/carousel.scss +161 -0
  22. package/lib/theme-chalk/src/cascader-panel.scss +120 -0
  23. package/lib/theme-chalk/src/cascader.scss +182 -0
  24. package/lib/theme-chalk/src/checkbox.scss +359 -0
  25. package/lib/theme-chalk/src/col.scss +156 -0
  26. package/lib/theme-chalk/src/collapse.scss +63 -0
  27. package/lib/theme-chalk/src/color-picker.scss +384 -0
  28. package/lib/theme-chalk/src/common/popup.scss +42 -0
  29. package/lib/theme-chalk/src/common/transition.scss +99 -0
  30. package/lib/theme-chalk/src/common/var.scss +1028 -0
  31. package/lib/theme-chalk/src/container.scss +14 -0
  32. package/lib/theme-chalk/src/date-picker/date-picker.scss +97 -0
  33. package/lib/theme-chalk/src/date-picker/date-range-picker.scss +101 -0
  34. package/lib/theme-chalk/src/date-picker/date-table.scss +151 -0
  35. package/lib/theme-chalk/src/date-picker/month-table.scss +82 -0
  36. package/lib/theme-chalk/src/date-picker/picker-panel.scss +117 -0
  37. package/lib/theme-chalk/src/date-picker/picker.scss +197 -0
  38. package/lib/theme-chalk/src/date-picker/time-picker.scss +85 -0
  39. package/lib/theme-chalk/src/date-picker/time-range-picker.scss +31 -0
  40. package/lib/theme-chalk/src/date-picker/time-spinner.scss +110 -0
  41. package/lib/theme-chalk/src/date-picker/year-table.scss +51 -0
  42. package/lib/theme-chalk/src/date-picker.scss +12 -0
  43. package/lib/theme-chalk/src/descriptions-item.scss +42 -0
  44. package/lib/theme-chalk/src/descriptions.scss +111 -0
  45. package/lib/theme-chalk/src/dialog.scss +123 -0
  46. package/lib/theme-chalk/src/display.scss +12 -0
  47. package/lib/theme-chalk/src/divider.scss +47 -0
  48. package/lib/theme-chalk/src/drawer.scss +219 -0
  49. package/lib/theme-chalk/src/dropdown.scss +182 -0
  50. package/lib/theme-chalk/src/empty.scss +45 -0
  51. package/lib/theme-chalk/src/footer.scss +8 -0
  52. package/lib/theme-chalk/src/form.scss +167 -0
  53. package/lib/theme-chalk/src/header.scss +8 -0
  54. package/lib/theme-chalk/src/icon.scss +1167 -0
  55. package/lib/theme-chalk/src/image.scss +179 -0
  56. package/lib/theme-chalk/src/index.scss +90 -0
  57. package/lib/theme-chalk/src/input-number.scss +180 -0
  58. package/lib/theme-chalk/src/input.scss +360 -0
  59. package/lib/theme-chalk/src/link.scss +81 -0
  60. package/lib/theme-chalk/src/loading.scss +96 -0
  61. package/lib/theme-chalk/src/main.scss +12 -0
  62. package/lib/theme-chalk/src/menu.scss +289 -0
  63. package/lib/theme-chalk/src/message-box.scss +226 -0
  64. package/lib/theme-chalk/src/message.scss +120 -0
  65. package/lib/theme-chalk/src/mixins/_button.scss +81 -0
  66. package/lib/theme-chalk/src/mixins/config.scss +4 -0
  67. package/lib/theme-chalk/src/mixins/function.scss +44 -0
  68. package/lib/theme-chalk/src/mixins/mixins.scss +190 -0
  69. package/lib/theme-chalk/src/mixins/utils.scss +39 -0
  70. package/lib/theme-chalk/src/notification.scss +99 -0
  71. package/lib/theme-chalk/src/option-group.scss +42 -0
  72. package/lib/theme-chalk/src/option.scss +36 -0
  73. package/lib/theme-chalk/src/page-header.scss +41 -0
  74. package/lib/theme-chalk/src/pagination.scss +295 -0
  75. package/lib/theme-chalk/src/popconfirm.scss +16 -0
  76. package/lib/theme-chalk/src/popover.scss +40 -0
  77. package/lib/theme-chalk/src/popper.scss +101 -0
  78. package/lib/theme-chalk/src/progress.scss +141 -0
  79. package/lib/theme-chalk/src/radio-button.scss +113 -0
  80. package/lib/theme-chalk/src/radio-group.scss +9 -0
  81. package/lib/theme-chalk/src/radio.scss +199 -0
  82. package/lib/theme-chalk/src/rate.scss +49 -0
  83. package/lib/theme-chalk/src/reset.scss +79 -0
  84. package/lib/theme-chalk/src/result.scss +61 -0
  85. package/lib/theme-chalk/src/row.scss +43 -0
  86. package/lib/theme-chalk/src/scrollbar.scss +72 -0
  87. package/lib/theme-chalk/src/select-dropdown.scss +62 -0
  88. package/lib/theme-chalk/src/select.scss +152 -0
  89. package/lib/theme-chalk/src/skeleton-item.scss +84 -0
  90. package/lib/theme-chalk/src/skeleton.scss +40 -0
  91. package/lib/theme-chalk/src/slider.scss +250 -0
  92. package/lib/theme-chalk/src/spinner.scss +44 -0
  93. package/lib/theme-chalk/src/statistic.scss +38 -0
  94. package/lib/theme-chalk/src/step.scss +317 -0
  95. package/lib/theme-chalk/src/steps.scss +20 -0
  96. package/lib/theme-chalk/src/switch.scss +116 -0
  97. package/lib/theme-chalk/src/table-column.scss +97 -0
  98. package/lib/theme-chalk/src/table.scss +564 -0
  99. package/lib/theme-chalk/src/tabs.scss +602 -0
  100. package/lib/theme-chalk/src/tag.scss +163 -0
  101. package/lib/theme-chalk/src/time-picker.scss +8 -0
  102. package/lib/theme-chalk/src/time-select.scss +37 -0
  103. package/lib/theme-chalk/src/timeline-item.scss +86 -0
  104. package/lib/theme-chalk/src/timeline.scss +14 -0
  105. package/lib/theme-chalk/src/tooltip.scss +141 -0
  106. package/lib/theme-chalk/src/transfer.scss +227 -0
  107. package/lib/theme-chalk/src/tree.scss +123 -0
  108. package/lib/theme-chalk/src/upload.scss +603 -0
  109. package/package.json +3 -3
  110. package/packages/theme-chalk/gulpfile.js +1 -14
  111. package/packages/theme-chalk/src/common/var.scss +16 -16
  112. package/packages/theme-cy/gulpfile.js +1 -14
  113. package/src/index.js +1 -1
  114. package/lib/theme-chalk/alert.css +0 -1
  115. package/lib/theme-chalk/aside.css +0 -1
  116. package/lib/theme-chalk/autocomplete.css +0 -1
  117. package/lib/theme-chalk/avatar.css +0 -1
  118. package/lib/theme-chalk/backtop.css +0 -1
  119. package/lib/theme-chalk/badge.css +0 -1
  120. package/lib/theme-chalk/breadcrumb.css +0 -1
  121. package/lib/theme-chalk/button.css +0 -1
  122. package/lib/theme-chalk/calendar.css +0 -1
  123. package/lib/theme-chalk/card.css +0 -1
  124. package/lib/theme-chalk/carousel-item.css +0 -1
  125. package/lib/theme-chalk/carousel.css +0 -1
  126. package/lib/theme-chalk/cascader-panel.css +0 -1
  127. package/lib/theme-chalk/cascader.css +0 -1
  128. package/lib/theme-chalk/checkbox.css +0 -1
  129. package/lib/theme-chalk/col.css +0 -1
  130. package/lib/theme-chalk/collapse.css +0 -1
  131. package/lib/theme-chalk/color-picker.css +0 -1
  132. package/lib/theme-chalk/container.css +0 -1
  133. package/lib/theme-chalk/date-picker.css +0 -1
  134. package/lib/theme-chalk/descriptions-item.css +0 -1
  135. package/lib/theme-chalk/descriptions.css +0 -1
  136. package/lib/theme-chalk/dialog.css +0 -1
  137. package/lib/theme-chalk/display.css +0 -1
  138. package/lib/theme-chalk/divider.css +0 -1
  139. package/lib/theme-chalk/drawer.css +0 -1
  140. package/lib/theme-chalk/dropdown.css +0 -1
  141. package/lib/theme-chalk/empty.css +0 -1
  142. package/lib/theme-chalk/footer.css +0 -1
  143. package/lib/theme-chalk/form.css +0 -1
  144. package/lib/theme-chalk/header.css +0 -1
  145. package/lib/theme-chalk/icon.css +0 -1
  146. package/lib/theme-chalk/image.css +0 -1
  147. package/lib/theme-chalk/input-number.css +0 -1
  148. package/lib/theme-chalk/input.css +0 -1
  149. package/lib/theme-chalk/link.css +0 -1
  150. package/lib/theme-chalk/loading.css +0 -1
  151. package/lib/theme-chalk/main.css +0 -1
  152. package/lib/theme-chalk/menu.css +0 -1
  153. package/lib/theme-chalk/message-box.css +0 -1
  154. package/lib/theme-chalk/message.css +0 -1
  155. package/lib/theme-chalk/notification.css +0 -1
  156. package/lib/theme-chalk/option-group.css +0 -1
  157. package/lib/theme-chalk/option.css +0 -1
  158. package/lib/theme-chalk/page-header.css +0 -1
  159. package/lib/theme-chalk/pagination.css +0 -1
  160. package/lib/theme-chalk/popconfirm.css +0 -1
  161. package/lib/theme-chalk/popover.css +0 -1
  162. package/lib/theme-chalk/popper.css +0 -1
  163. package/lib/theme-chalk/progress.css +0 -1
  164. package/lib/theme-chalk/radio-button.css +0 -1
  165. package/lib/theme-chalk/radio-group.css +0 -1
  166. package/lib/theme-chalk/radio.css +0 -1
  167. package/lib/theme-chalk/rate.css +0 -1
  168. package/lib/theme-chalk/reset.css +0 -1
  169. package/lib/theme-chalk/result.css +0 -1
  170. package/lib/theme-chalk/row.css +0 -1
  171. package/lib/theme-chalk/scrollbar.css +0 -1
  172. package/lib/theme-chalk/select-dropdown.css +0 -1
  173. package/lib/theme-chalk/select.css +0 -1
  174. package/lib/theme-chalk/skeleton-item.css +0 -1
  175. package/lib/theme-chalk/skeleton.css +0 -1
  176. package/lib/theme-chalk/slider.css +0 -1
  177. package/lib/theme-chalk/spinner.css +0 -1
  178. package/lib/theme-chalk/statistic.css +0 -1
  179. package/lib/theme-chalk/step.css +0 -1
  180. package/lib/theme-chalk/steps.css +0 -1
  181. package/lib/theme-chalk/switch.css +0 -1
  182. package/lib/theme-chalk/table-column.css +0 -1
  183. package/lib/theme-chalk/table.css +0 -1
  184. package/lib/theme-chalk/tabs.css +0 -1
  185. package/lib/theme-chalk/tag.css +0 -1
  186. package/lib/theme-chalk/time-picker.css +0 -1
  187. package/lib/theme-chalk/time-select.css +0 -1
  188. package/lib/theme-chalk/timeline-item.css +0 -1
  189. package/lib/theme-chalk/timeline.css +0 -1
  190. package/lib/theme-chalk/tooltip.css +0 -1
  191. package/lib/theme-chalk/transfer.css +0 -1
  192. package/lib/theme-chalk/tree.css +0 -1
  193. package/lib/theme-chalk/upload.css +0 -1
  194. /package/lib/theme-chalk/{breadcrumb-item.css → src/breadcrumb-item.scss} +0 -0
  195. /package/lib/theme-chalk/{button-group.css → src/button-group.scss} +0 -0
  196. /package/lib/theme-chalk/{checkbox-button.css → src/checkbox-button.scss} +0 -0
  197. /package/lib/theme-chalk/{checkbox-group.css → src/checkbox-group.scss} +0 -0
  198. /package/lib/theme-chalk/{collapse-item.css → src/collapse-item.scss} +0 -0
  199. /package/lib/theme-chalk/{dropdown-item.css → src/dropdown-item.scss} +0 -0
  200. /package/lib/theme-chalk/{dropdown-menu.css → src/dropdown-menu.scss} +0 -0
  201. /package/lib/theme-chalk/{fonts → src/fonts}/element-icons.ttf +0 -0
  202. /package/lib/theme-chalk/{fonts → src/fonts}/element-icons.woff +0 -0
  203. /package/lib/theme-chalk/{form-item.css → src/form-item.scss} +0 -0
  204. /package/lib/theme-chalk/{infinite-scroll.css → src/infinite-scroll.scss} +0 -0
  205. /package/lib/theme-chalk/{infiniteScroll.css → src/infiniteScroll.scss} +0 -0
  206. /package/lib/theme-chalk/{menu-item-group.css → src/menu-item-group.scss} +0 -0
  207. /package/lib/theme-chalk/{menu-item.css → src/menu-item.scss} +0 -0
  208. /package/lib/theme-chalk/{submenu.css → src/submenu.scss} +0 -0
  209. /package/lib/theme-chalk/{tab-pane.css → src/tab-pane.scss} +0 -0
@@ -0,0 +1,359 @@
1
+ @import "common/var";
2
+ @import "mixins/mixins";
3
+ @import "mixins/_button";
4
+ @import "mixins/utils";
5
+
6
+ @include b(checkbox) {
7
+ color: $--checkbox-font-color;
8
+ font-weight: $--checkbox-font-weight;
9
+ font-size: $--font-size-base;
10
+ position: relative;
11
+ cursor: pointer;
12
+ display: inline-block;
13
+ white-space: nowrap;
14
+ user-select: none;
15
+ margin-right: 30px;
16
+
17
+ @include when(bordered) {
18
+ padding: $--checkbox-bordered-padding;
19
+ border-radius: $--border-radius-base;
20
+ border: $--border-base;
21
+ box-sizing: border-box;
22
+ line-height: normal;
23
+ height: $--checkbox-bordered-height;
24
+
25
+ &.is-checked {
26
+ border-color: $--color-primary;
27
+ }
28
+
29
+ &.is-disabled {
30
+ border-color: $--border-color-lighter;
31
+ cursor: not-allowed;
32
+ }
33
+
34
+ & + .el-checkbox.is-bordered {
35
+ margin-left: 10px;
36
+ }
37
+
38
+ &.el-checkbox--medium {
39
+ padding: $--checkbox-bordered-medium-padding;
40
+ border-radius: $--button-medium-border-radius;
41
+ height: $--checkbox-bordered-medium-height;
42
+
43
+ .el-checkbox__label {
44
+ line-height: 17px;
45
+ font-size: $--button-medium-font-size;
46
+ }
47
+
48
+ .el-checkbox__inner {
49
+ height: $--checkbox-bordered-medium-input-height;
50
+ width: $--checkbox-bordered-medium-input-width;
51
+ }
52
+ }
53
+
54
+ &.el-checkbox--small {
55
+ padding: $--checkbox-bordered-small-padding;
56
+ border-radius: $--button-small-border-radius;
57
+ height: $--checkbox-bordered-small-height;
58
+
59
+ .el-checkbox__label {
60
+ line-height: 15px;
61
+ font-size: $--button-small-font-size;
62
+ }
63
+
64
+ .el-checkbox__inner {
65
+ height: $--checkbox-bordered-small-input-height;
66
+ width: $--checkbox-bordered-small-input-width;
67
+
68
+ &::after {
69
+ height: 6px;
70
+ width: 2px;
71
+ }
72
+ }
73
+ }
74
+
75
+ &.el-checkbox--mini {
76
+ padding: $--checkbox-bordered-mini-padding;
77
+ border-radius: $--button-mini-border-radius;
78
+ height: $--checkbox-bordered-mini-height;
79
+
80
+ .el-checkbox__label {
81
+ line-height: 12px;
82
+ font-size: $--button-mini-font-size;
83
+ }
84
+
85
+ .el-checkbox__inner {
86
+ height: $--checkbox-bordered-mini-input-height;
87
+ width: $--checkbox-bordered-mini-input-width;
88
+ &::after {
89
+ height: 6px;
90
+ width: 2px;
91
+ }
92
+ }
93
+ }
94
+ }
95
+
96
+ @include e(input) {
97
+ white-space: nowrap;
98
+ cursor: pointer;
99
+ outline: none;
100
+ display: inline-block;
101
+ line-height: 1;
102
+ position: relative;
103
+ vertical-align: middle;
104
+
105
+ @include when(disabled) {
106
+ .el-checkbox__inner {
107
+ background-color: $--checkbox-disabled-input-fill;
108
+ border-color: $--checkbox-disabled-border-color;
109
+ cursor: not-allowed;
110
+
111
+ &::after {
112
+ cursor: not-allowed;
113
+ border-color: $--checkbox-disabled-icon-color;
114
+ }
115
+
116
+ & + .el-checkbox__label {
117
+ cursor: not-allowed;
118
+ }
119
+ }
120
+
121
+ &.is-checked {
122
+ .el-checkbox__inner {
123
+ background-color: $--checkbox-disabled-checked-input-fill;
124
+ border-color: $--checkbox-disabled-checked-input-border-color;
125
+
126
+ &::after {
127
+ border-color: $--checkbox-disabled-checked-icon-color;
128
+ }
129
+ }
130
+ }
131
+
132
+ &.is-indeterminate {
133
+ .el-checkbox__inner {
134
+ background-color: $--checkbox-disabled-checked-input-fill;
135
+ border-color: $--checkbox-disabled-checked-input-border-color;
136
+
137
+ &::before {
138
+ background-color: $--checkbox-disabled-checked-icon-color;
139
+ border-color: $--checkbox-disabled-checked-icon-color;
140
+ }
141
+ }
142
+ }
143
+
144
+ & + span.el-checkbox__label {
145
+ color: $--disabled-color-base;
146
+ cursor: not-allowed;
147
+ }
148
+ }
149
+
150
+ @include when(checked) {
151
+ .el-checkbox__inner {
152
+ background-color: $--checkbox-checked-background-color;
153
+ border-color: $--checkbox-checked-input-border-color;
154
+
155
+ &::after {
156
+ transform: rotate(45deg) scaleY(1);
157
+ }
158
+ }
159
+
160
+ & + .el-checkbox__label {
161
+ color: $--checkbox-checked-font-color;
162
+ }
163
+ }
164
+ @include when(focus) { /*focus时 视觉上区分*/
165
+ .el-checkbox__inner {
166
+ border-color: $--checkbox-input-border-color-hover;
167
+ }
168
+ }
169
+ @include when(indeterminate) {
170
+ .el-checkbox__inner {
171
+ background-color: $--checkbox-checked-background-color;
172
+ border-color: $--checkbox-checked-input-border-color;
173
+
174
+ &::before {
175
+ content: '';
176
+ position: absolute;
177
+ display: block;
178
+ background-color: $--checkbox-checked-icon-color;
179
+ height: 2px;
180
+ transform: scale(0.5);
181
+ left: 0;
182
+ right: 0;
183
+ top: 5px;
184
+ }
185
+
186
+ &::after {
187
+ display: none;
188
+ }
189
+ }
190
+ }
191
+ }
192
+ @include e(inner) {
193
+ display: inline-block;
194
+ position: relative;
195
+ border: $--checkbox-input-border;
196
+ border-radius: $--checkbox-border-radius;
197
+ box-sizing: border-box;
198
+ width: $--checkbox-input-width;
199
+ height: $--checkbox-input-height;
200
+ background-color: $--checkbox-background-color;
201
+ z-index: $--index-normal;
202
+ transition: border-color .25s cubic-bezier(.71,-.46,.29,1.46),
203
+ background-color .25s cubic-bezier(.71,-.46,.29,1.46);
204
+
205
+ &:hover {
206
+ border-color: $--checkbox-input-border-color-hover;
207
+ }
208
+
209
+ &::after {
210
+ box-sizing: content-box;
211
+ content: "";
212
+ border: 1px solid $--checkbox-checked-icon-color;
213
+ border-left: 0;
214
+ border-top: 0;
215
+ height: 7px;
216
+ left: 4px;
217
+ position: absolute;
218
+ top: 1px;
219
+ transform: rotate(45deg) scaleY(0);
220
+ width: 3px;
221
+ transition: transform .15s ease-in .05s;
222
+ transform-origin: center;
223
+ }
224
+ }
225
+
226
+ @include e(original) {
227
+ opacity: 0;
228
+ outline: none;
229
+ position: absolute;
230
+ margin: 0;
231
+ width: 0;
232
+ height: 0;
233
+ z-index: -1;
234
+ }
235
+
236
+ @include e(label) {
237
+ display: inline-block;
238
+ padding-left: 10px;
239
+ line-height: 19px;
240
+ font-size: $--checkbox-font-size;
241
+ }
242
+
243
+ &:last-of-type {
244
+ margin-right: 0;
245
+ }
246
+ }
247
+
248
+ @include b(checkbox-button) {
249
+ position: relative;
250
+ display: inline-block;
251
+
252
+ @include e(inner) {
253
+ display: inline-block;
254
+ line-height: 1;
255
+ font-weight: $--checkbox-font-weight;
256
+ white-space: nowrap;
257
+ vertical-align: middle;
258
+ cursor: pointer;
259
+ background: $--button-default-background-color;
260
+ border: $--border-base;
261
+ border-left: 0;
262
+ color: $--button-default-font-color;
263
+ -webkit-appearance: none;
264
+ text-align: center;
265
+ box-sizing: border-box;
266
+ outline: none;
267
+ margin: 0;
268
+ position: relative;
269
+ transition: $--all-transition;
270
+ @include utils-user-select(none);
271
+
272
+ @include button-size($--button-padding-vertical, $--button-padding-horizontal, $--button-font-size, 0);
273
+
274
+ &:hover {
275
+ color: $--color-primary;
276
+ }
277
+
278
+ & [class*="el-icon-"] {
279
+ line-height: 0.9;
280
+
281
+ & + span {
282
+ margin-left: 5px;
283
+ }
284
+ }
285
+ }
286
+
287
+ @include e(original) {
288
+ opacity: 0;
289
+ outline: none;
290
+ position: absolute;
291
+ margin: 0;
292
+ z-index: -1;
293
+ }
294
+
295
+ &.is-checked {
296
+ & .el-checkbox-button__inner {
297
+ color: $--checkbox-button-checked-font-color;
298
+ background-color: $--checkbox-button-checked-background-color;
299
+ border-color: $--checkbox-button-checked-border-color;
300
+ box-shadow: -1px 0 0 0 $--color-primary-light-4;
301
+ }
302
+ &:first-child .el-checkbox-button__inner {
303
+ border-left-color: $--checkbox-button-checked-border-color;
304
+ }
305
+ }
306
+
307
+ &.is-disabled {
308
+ & .el-checkbox-button__inner {
309
+ color: $--button-disabled-font-color;
310
+ cursor: not-allowed;
311
+ background-image: none;
312
+ background-color: $--button-disabled-background-color;
313
+ border-color: $--button-disabled-border-color;
314
+ box-shadow: none;
315
+ }
316
+ &:first-child .el-checkbox-button__inner {
317
+ border-left-color: $--button-disabled-border-color;
318
+ }
319
+ }
320
+
321
+ &:first-child {
322
+ .el-checkbox-button__inner {
323
+ border-left: $--border-base;
324
+ border-radius: $--border-radius-base 0 0 $--border-radius-base;
325
+ box-shadow: none !important;
326
+ }
327
+ }
328
+
329
+ &.is-focus {
330
+ & .el-checkbox-button__inner {
331
+ border-color: $--checkbox-button-checked-border-color;
332
+ }
333
+ }
334
+
335
+ &:last-child {
336
+ .el-checkbox-button__inner {
337
+ border-radius: 0 $--border-radius-base $--border-radius-base 0;
338
+ }
339
+ }
340
+ @include m(medium) {
341
+ .el-checkbox-button__inner {
342
+ @include button-size($--button-medium-padding-vertical, $--button-medium-padding-horizontal, $--button-medium-font-size, 0);
343
+ }
344
+ }
345
+ @include m(small) {
346
+ .el-checkbox-button__inner {
347
+ @include button-size($--button-small-padding-vertical, $--button-small-padding-horizontal, $--button-small-font-size, 0);
348
+ }
349
+ }
350
+ @include m(mini) {
351
+ .el-checkbox-button__inner {
352
+ @include button-size($--button-mini-padding-vertical, $--button-mini-padding-horizontal, $--button-mini-font-size, 0);
353
+ }
354
+ }
355
+ }
356
+
357
+ @include b(checkbox-group) {
358
+ font-size: 0;
359
+ }
@@ -0,0 +1,156 @@
1
+ @import "./common/var.scss";
2
+ @import "./mixins/mixins.scss";
3
+
4
+ [class*="el-col-"] {
5
+ float: left;
6
+ box-sizing: border-box;
7
+ }
8
+
9
+ .el-col-0 {
10
+ display: none;
11
+ }
12
+
13
+ @for $i from 0 through 24 {
14
+ .el-col-#{$i} {
15
+ width: (1 / 24 * $i * 100) * 1%;
16
+ }
17
+
18
+ .el-col-offset-#{$i} {
19
+ margin-left: (1 / 24 * $i * 100) * 1%;
20
+ }
21
+
22
+ .el-col-pull-#{$i} {
23
+ position: relative;
24
+ right: (1 / 24 * $i * 100) * 1%;
25
+ }
26
+
27
+ .el-col-push-#{$i} {
28
+ position: relative;
29
+ left: (1 / 24 * $i * 100) * 1%;
30
+ }
31
+ }
32
+
33
+ @include res(xs) {
34
+ .el-col-xs-0 {
35
+ display: none;
36
+ }
37
+ @for $i from 0 through 24 {
38
+ .el-col-xs-#{$i} {
39
+ width: (1 / 24 * $i * 100) * 1%;
40
+ }
41
+
42
+ .el-col-xs-offset-#{$i} {
43
+ margin-left: (1 / 24 * $i * 100) * 1%;
44
+ }
45
+
46
+ .el-col-xs-pull-#{$i} {
47
+ position: relative;
48
+ right: (1 / 24 * $i * 100) * 1%;
49
+ }
50
+
51
+ .el-col-xs-push-#{$i} {
52
+ position: relative;
53
+ left: (1 / 24 * $i * 100) * 1%;
54
+ }
55
+ }
56
+ }
57
+
58
+ @include res(sm) {
59
+ .el-col-sm-0 {
60
+ display: none;
61
+ }
62
+ @for $i from 0 through 24 {
63
+ .el-col-sm-#{$i} {
64
+ width: (1 / 24 * $i * 100) * 1%;
65
+ }
66
+
67
+ .el-col-sm-offset-#{$i} {
68
+ margin-left: (1 / 24 * $i * 100) * 1%;
69
+ }
70
+
71
+ .el-col-sm-pull-#{$i} {
72
+ position: relative;
73
+ right: (1 / 24 * $i * 100) * 1%;
74
+ }
75
+
76
+ .el-col-sm-push-#{$i} {
77
+ position: relative;
78
+ left: (1 / 24 * $i * 100) * 1%;
79
+ }
80
+ }
81
+ }
82
+
83
+ @include res(md) {
84
+ .el-col-md-0 {
85
+ display: none;
86
+ }
87
+ @for $i from 0 through 24 {
88
+ .el-col-md-#{$i} {
89
+ width: (1 / 24 * $i * 100) * 1%;
90
+ }
91
+
92
+ .el-col-md-offset-#{$i} {
93
+ margin-left: (1 / 24 * $i * 100) * 1%;
94
+ }
95
+
96
+ .el-col-md-pull-#{$i} {
97
+ position: relative;
98
+ right: (1 / 24 * $i * 100) * 1%;
99
+ }
100
+
101
+ .el-col-md-push-#{$i} {
102
+ position: relative;
103
+ left: (1 / 24 * $i * 100) * 1%;
104
+ }
105
+ }
106
+ }
107
+
108
+ @include res(lg) {
109
+ .el-col-lg-0 {
110
+ display: none;
111
+ }
112
+ @for $i from 0 through 24 {
113
+ .el-col-lg-#{$i} {
114
+ width: (1 / 24 * $i * 100) * 1%;
115
+ }
116
+
117
+ .el-col-lg-offset-#{$i} {
118
+ margin-left: (1 / 24 * $i * 100) * 1%;
119
+ }
120
+
121
+ .el-col-lg-pull-#{$i} {
122
+ position: relative;
123
+ right: (1 / 24 * $i * 100) * 1%;
124
+ }
125
+
126
+ .el-col-lg-push-#{$i} {
127
+ position: relative;
128
+ left: (1 / 24 * $i * 100) * 1%;
129
+ }
130
+ }
131
+ }
132
+
133
+ @include res(xl) {
134
+ .el-col-xl-0 {
135
+ display: none;
136
+ }
137
+ @for $i from 0 through 24 {
138
+ .el-col-xl-#{$i} {
139
+ width: (1 / 24 * $i * 100) * 1%;
140
+ }
141
+
142
+ .el-col-xl-offset-#{$i} {
143
+ margin-left: (1 / 24 * $i * 100) * 1%;
144
+ }
145
+
146
+ .el-col-xl-pull-#{$i} {
147
+ position: relative;
148
+ right: (1 / 24 * $i * 100) * 1%;
149
+ }
150
+
151
+ .el-col-xl-push-#{$i} {
152
+ position: relative;
153
+ left: (1 / 24 * $i * 100) * 1%;
154
+ }
155
+ }
156
+ }
@@ -0,0 +1,63 @@
1
+ @import "mixins/mixins";
2
+ @import "common/var";
3
+ @import "common/transition";
4
+
5
+ @include b(collapse) {
6
+ border-top: 1px solid $--collapse-border-color;
7
+ border-bottom: 1px solid $--collapse-border-color;
8
+ }
9
+ @include b(collapse-item) {
10
+ @include when(disabled) {
11
+ .el-collapse-item__header {
12
+ color: $--font-color-disabled-base;
13
+ cursor: not-allowed;
14
+ }
15
+ }
16
+ @include e(header) {
17
+ display: flex;
18
+ align-items: center;
19
+ height: $--collapse-header-height;
20
+ line-height: $--collapse-header-height;
21
+ background-color: $--collapse-header-background-color;
22
+ color: $--collapse-header-font-color;
23
+ cursor: pointer;
24
+ border-bottom: 1px solid $--collapse-border-color;
25
+ font-size: $--collapse-header-font-size;
26
+ font-weight: 500;
27
+ transition: border-bottom-color .3s;
28
+ outline: none;
29
+ @include e(arrow) {
30
+ margin: 0 8px 0 auto;
31
+ transition: transform .3s;
32
+ font-weight: 300;
33
+ @include when(active) {
34
+ transform: rotate(90deg);
35
+ }
36
+ }
37
+ &.focusing:focus:not(:hover){
38
+ color: $--color-primary;
39
+ }
40
+ @include when(active) {
41
+ border-bottom-color: transparent;
42
+ }
43
+ }
44
+
45
+ @include e(wrap) {
46
+ will-change: height;
47
+ background-color: $--collapse-content-background-color;
48
+ overflow: hidden;
49
+ box-sizing: border-box;
50
+ border-bottom: 1px solid $--collapse-border-color;
51
+ }
52
+
53
+ @include e(content) {
54
+ padding-bottom: 25px;
55
+ font-size: $--collapse-content-font-size;
56
+ color: $--collapse-content-font-color;
57
+ line-height: 1.769230769230769;
58
+ }
59
+
60
+ &:last-child {
61
+ margin-bottom: -1px;
62
+ }
63
+ }