ep-craft 0.1.2 → 0.1.4

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 (160) hide show
  1. package/dist/components/button/EpButton.vue.d.ts +7 -7
  2. package/dist/components/button/button.d.ts +4 -4
  3. package/dist/components/button/index.d.ts +2 -4
  4. package/dist/components/button/index.js +4 -6
  5. package/dist/index.css +1 -2
  6. package/dist/resolver.js +9 -12
  7. package/package.json +4 -2
  8. package/theme-chalk/src/affix.scss +7 -0
  9. package/theme-chalk/src/alert.scss +115 -0
  10. package/theme-chalk/src/anchor-link.scss +45 -0
  11. package/theme-chalk/src/anchor.scss +93 -0
  12. package/theme-chalk/src/aside.scss +8 -0
  13. package/theme-chalk/src/autocomplete.scss +95 -0
  14. package/theme-chalk/src/avatar-group.scss +25 -0
  15. package/theme-chalk/src/avatar.scss +55 -0
  16. package/theme-chalk/src/backtop.scss +29 -0
  17. package/theme-chalk/src/badge.scss +58 -0
  18. package/theme-chalk/src/base.scss +3 -0
  19. package/theme-chalk/src/breadcrumb-item.scss +58 -0
  20. package/theme-chalk/src/breadcrumb.scss +9 -0
  21. package/theme-chalk/src/button-group.scss +133 -0
  22. package/theme-chalk/src/button.scss +374 -0
  23. package/theme-chalk/src/calendar.scss +94 -0
  24. package/theme-chalk/src/card.scss +49 -0
  25. package/theme-chalk/src/carousel-item.scss +58 -0
  26. package/theme-chalk/src/carousel.scss +195 -0
  27. package/theme-chalk/src/cascader-panel.scss +150 -0
  28. package/theme-chalk/src/cascader.scss +289 -0
  29. package/theme-chalk/src/check-tag.scss +60 -0
  30. package/theme-chalk/src/checkbox-button.scss +142 -0
  31. package/theme-chalk/src/checkbox-group.scss +7 -0
  32. package/theme-chalk/src/checkbox.scss +300 -0
  33. package/theme-chalk/src/col.scss +56 -0
  34. package/theme-chalk/src/collapse-item.scss +72 -0
  35. package/theme-chalk/src/collapse-transition.scss +1 -0
  36. package/theme-chalk/src/collapse.scss +29 -0
  37. package/theme-chalk/src/color/index.scss +20 -0
  38. package/theme-chalk/src/color-picker-panel.scss +294 -0
  39. package/theme-chalk/src/color-picker.scss +165 -0
  40. package/theme-chalk/src/common/popup.scss +47 -0
  41. package/theme-chalk/src/common/transition.scss +125 -0
  42. package/theme-chalk/src/common/var.scss +1748 -0
  43. package/theme-chalk/src/config-provider.scss +0 -0
  44. package/theme-chalk/src/container.scss +14 -0
  45. package/theme-chalk/src/dark/css-vars.scss +45 -0
  46. package/theme-chalk/src/dark/var.scss +224 -0
  47. package/theme-chalk/src/date-picker/date-picker.scss +121 -0
  48. package/theme-chalk/src/date-picker/date-range-picker.scss +165 -0
  49. package/theme-chalk/src/date-picker/date-table.scss +164 -0
  50. package/theme-chalk/src/date-picker/month-table.scss +112 -0
  51. package/theme-chalk/src/date-picker/picker-panel.scss +152 -0
  52. package/theme-chalk/src/date-picker/picker.scss +217 -0
  53. package/theme-chalk/src/date-picker/time-picker.scss +90 -0
  54. package/theme-chalk/src/date-picker/time-range-picker.scss +33 -0
  55. package/theme-chalk/src/date-picker/time-spinner.scss +115 -0
  56. package/theme-chalk/src/date-picker/utils.scss +14 -0
  57. package/theme-chalk/src/date-picker/year-table.scss +108 -0
  58. package/theme-chalk/src/date-picker-panel.scss +34 -0
  59. package/theme-chalk/src/date-picker.scss +0 -0
  60. package/theme-chalk/src/descriptions-item.scss +77 -0
  61. package/theme-chalk/src/descriptions.scss +151 -0
  62. package/theme-chalk/src/dialog.scss +207 -0
  63. package/theme-chalk/src/display.scss +12 -0
  64. package/theme-chalk/src/divider.scss +48 -0
  65. package/theme-chalk/src/drawer.scss +251 -0
  66. package/theme-chalk/src/dropdown-item.scss +0 -0
  67. package/theme-chalk/src/dropdown-menu.scss +0 -0
  68. package/theme-chalk/src/dropdown.scss +208 -0
  69. package/theme-chalk/src/empty.scss +49 -0
  70. package/theme-chalk/src/footer.scss +12 -0
  71. package/theme-chalk/src/form-item.scss +246 -0
  72. package/theme-chalk/src/form.scss +28 -0
  73. package/theme-chalk/src/header.scss +12 -0
  74. package/theme-chalk/src/icon.scss +41 -0
  75. package/theme-chalk/src/image-viewer.scss +161 -0
  76. package/theme-chalk/src/image.scss +49 -0
  77. package/theme-chalk/src/index.scss +116 -0
  78. package/theme-chalk/src/infinite-scroll.scss +0 -0
  79. package/theme-chalk/src/input-number.scss +192 -0
  80. package/theme-chalk/src/input-otp.scss +191 -0
  81. package/theme-chalk/src/input-tag.scss +249 -0
  82. package/theme-chalk/src/input.scss +541 -0
  83. package/theme-chalk/src/link.scss +90 -0
  84. package/theme-chalk/src/loading.scss +104 -0
  85. package/theme-chalk/src/main.scss +14 -0
  86. package/theme-chalk/src/mention.scss +88 -0
  87. package/theme-chalk/src/menu-item-group.scss +0 -0
  88. package/theme-chalk/src/menu-item.scss +0 -0
  89. package/theme-chalk/src/menu.scss +376 -0
  90. package/theme-chalk/src/message-box.scss +220 -0
  91. package/theme-chalk/src/message.scss +123 -0
  92. package/theme-chalk/src/mixins/_button.scss +240 -0
  93. package/theme-chalk/src/mixins/_col.scss +41 -0
  94. package/theme-chalk/src/mixins/_var.scss +67 -0
  95. package/theme-chalk/src/mixins/config.scss +5 -0
  96. package/theme-chalk/src/mixins/function.scss +99 -0
  97. package/theme-chalk/src/mixins/mixins.scss +257 -0
  98. package/theme-chalk/src/mixins/utils.scss +39 -0
  99. package/theme-chalk/src/notification.scss +109 -0
  100. package/theme-chalk/src/option-group.scss +33 -0
  101. package/theme-chalk/src/option.scss +71 -0
  102. package/theme-chalk/src/overlay.scss +17 -0
  103. package/theme-chalk/src/page-header.scss +60 -0
  104. package/theme-chalk/src/pagination.scss +235 -0
  105. package/theme-chalk/src/popconfirm.scss +17 -0
  106. package/theme-chalk/src/popover.scss +61 -0
  107. package/theme-chalk/src/popper.scss +117 -0
  108. package/theme-chalk/src/progress.scss +179 -0
  109. package/theme-chalk/src/radio-button.scss +165 -0
  110. package/theme-chalk/src/radio-group.scss +9 -0
  111. package/theme-chalk/src/radio.scss +220 -0
  112. package/theme-chalk/src/rate.scss +121 -0
  113. package/theme-chalk/src/reset.scss +99 -0
  114. package/theme-chalk/src/result.scss +57 -0
  115. package/theme-chalk/src/row.scss +34 -0
  116. package/theme-chalk/src/scrollbar.scss +97 -0
  117. package/theme-chalk/src/segmented.scss +186 -0
  118. package/theme-chalk/src/select-dropdown-v2.scss +1 -0
  119. package/theme-chalk/src/select-dropdown.scss +57 -0
  120. package/theme-chalk/src/select-v2.scss +4 -0
  121. package/theme-chalk/src/select.scss +269 -0
  122. package/theme-chalk/src/skeleton-item.scss +83 -0
  123. package/theme-chalk/src/skeleton.scss +44 -0
  124. package/theme-chalk/src/slider.scss +212 -0
  125. package/theme-chalk/src/space.scss +20 -0
  126. package/theme-chalk/src/spinner.scss +43 -0
  127. package/theme-chalk/src/splitter-panel.scss +8 -0
  128. package/theme-chalk/src/splitter.scss +148 -0
  129. package/theme-chalk/src/statistic.scss +35 -0
  130. package/theme-chalk/src/step.scss +320 -0
  131. package/theme-chalk/src/steps.scss +22 -0
  132. package/theme-chalk/src/sub-menu.scss +0 -0
  133. package/theme-chalk/src/switch.scss +294 -0
  134. package/theme-chalk/src/tab-pane.scss +0 -0
  135. package/theme-chalk/src/table-column.scss +100 -0
  136. package/theme-chalk/src/table-v2.scss +239 -0
  137. package/theme-chalk/src/table.scss +698 -0
  138. package/theme-chalk/src/tabs.scss +699 -0
  139. package/theme-chalk/src/tag.scss +195 -0
  140. package/theme-chalk/src/text.scss +51 -0
  141. package/theme-chalk/src/time-picker.scss +5 -0
  142. package/theme-chalk/src/time-select.scss +37 -0
  143. package/theme-chalk/src/timeline-item.scss +135 -0
  144. package/theme-chalk/src/timeline.scss +101 -0
  145. package/theme-chalk/src/tooltip.scss +0 -0
  146. package/theme-chalk/src/tour.scss +187 -0
  147. package/theme-chalk/src/transfer.scss +201 -0
  148. package/theme-chalk/src/tree-select.scss +41 -0
  149. package/theme-chalk/src/tree.scss +134 -0
  150. package/theme-chalk/src/upload.scss +660 -0
  151. package/theme-chalk/src/var.scss +87 -0
  152. package/theme-chalk/src/virtual-list.scss +40 -0
  153. package/dist/components/button/EpButton.vue.js +0 -171
  154. package/dist/components/button/EpButton2.vue.js +0 -4
  155. package/dist/components/button/button.js +0 -95
  156. package/dist/node_modules/@ctrl/tinycolor/dist/module/conversion.js +0 -134
  157. package/dist/node_modules/@ctrl/tinycolor/dist/module/css-color-names.js +0 -153
  158. package/dist/node_modules/@ctrl/tinycolor/dist/module/format-input.js +0 -77
  159. package/dist/node_modules/@ctrl/tinycolor/dist/module/index.js +0 -354
  160. package/dist/node_modules/@ctrl/tinycolor/dist/module/util.js +0 -32
@@ -0,0 +1,660 @@
1
+ @use 'mixins/mixins' as *;
2
+ @use 'mixins/utils' as *;
3
+ @use 'common/var' as *;
4
+
5
+ @mixin upload-success($color: null) {
6
+ right: -15px;
7
+ top: -6px;
8
+ width: 40px;
9
+ height: 24px;
10
+ background: getCssVar('color-success');
11
+ text-align: center;
12
+ transform: rotate(45deg);
13
+
14
+ i {
15
+ font-size: 12px;
16
+ margin-top: 11px;
17
+ transform: rotate(-45deg);
18
+ color: $color;
19
+ }
20
+ }
21
+
22
+ @include b(upload) {
23
+ @include set-component-css-var('upload', $upload);
24
+ }
25
+
26
+ @include b(upload) {
27
+ @include utils-inline-flex-center;
28
+
29
+ cursor: pointer;
30
+ outline: none;
31
+
32
+ @include when(disabled) {
33
+ cursor: not-allowed;
34
+ &:focus {
35
+ border-color: getCssVar('border-color', 'darker');
36
+ color: inherit;
37
+ .#{$namespace}-upload-dragger {
38
+ border-color: getCssVar('border-color', 'darker');
39
+ }
40
+ }
41
+ .#{$namespace}-upload-dragger {
42
+ cursor: not-allowed;
43
+ background-color: getCssVar('disabled-bg-color');
44
+
45
+ .#{bem('upload', 'text')} {
46
+ color: getCssVar('text-color-placeholder');
47
+
48
+ em {
49
+ color: getCssVar('disabled-text-color');
50
+ }
51
+ }
52
+
53
+ &:hover {
54
+ border-color: getCssVar('border-color', 'darker');
55
+ }
56
+ }
57
+ }
58
+
59
+ @include e(input) {
60
+ display: none;
61
+ }
62
+
63
+ @include e(tip) {
64
+ font-size: 12px;
65
+ color: getCssVar('text-color', 'regular');
66
+ margin-top: 7px;
67
+ }
68
+
69
+ iframe {
70
+ position: absolute;
71
+ z-index: -1;
72
+ top: 0;
73
+ left: 0;
74
+ opacity: 0;
75
+ filter: alpha(opacity=0);
76
+ }
77
+
78
+ /* Picture Card for Wall */
79
+ @include m(picture-card) {
80
+ background-color: getCssVar('fill-color', 'lighter');
81
+ border: 1px dashed getCssVar('border-color', 'darker');
82
+ border-radius: 6px;
83
+ box-sizing: border-box;
84
+ width: getCssVar('upload', 'picture-card', 'size');
85
+ height: getCssVar('upload', 'picture-card', 'size');
86
+ cursor: pointer;
87
+ vertical-align: top;
88
+
89
+ @include utils-inline-flex-center;
90
+
91
+ > i {
92
+ font-size: 28px;
93
+ color: getCssVar('text-color', 'secondary');
94
+ }
95
+
96
+ &:hover {
97
+ border-color: getCssVar('color-primary');
98
+ color: getCssVar('color-primary');
99
+ }
100
+ }
101
+
102
+ @include when(drag) {
103
+ display: block;
104
+ }
105
+
106
+ &:focus {
107
+ border-color: getCssVar('color-primary');
108
+ color: getCssVar('color-primary');
109
+
110
+ .#{$namespace}-upload-dragger {
111
+ border-color: getCssVar('color-primary');
112
+ }
113
+ }
114
+ }
115
+
116
+ @include b(upload-dragger) {
117
+ padding: getCssVar('upload-dragger-padding-vertical')
118
+ getCssVar('upload-dragger-padding-horizontal');
119
+ background-color: getCssVar('fill-color', 'blank');
120
+ border: 1px dashed getCssVar('border-color');
121
+ border-radius: 6px;
122
+ box-sizing: border-box;
123
+ text-align: center;
124
+ cursor: pointer;
125
+ position: relative;
126
+ overflow: hidden;
127
+
128
+ .#{bem('icon', '', 'upload')} {
129
+ font-size: 67px;
130
+ color: getCssVar('text-color', 'placeholder');
131
+ margin-bottom: 16px;
132
+ line-height: 50px;
133
+ }
134
+
135
+ + .#{bem('upload', 'tip')} {
136
+ text-align: center;
137
+ }
138
+
139
+ ~ .#{bem('upload', 'files')} {
140
+ border-top: getCssVar('border');
141
+ margin-top: 7px;
142
+ padding-top: 5px;
143
+ }
144
+
145
+ .#{bem('upload', 'text')} {
146
+ color: getCssVar('text-color', 'regular');
147
+ font-size: 14px;
148
+ text-align: center;
149
+
150
+ em {
151
+ color: getCssVar('color-primary');
152
+ font-style: normal;
153
+ }
154
+ }
155
+
156
+ &:hover {
157
+ border-color: getCssVar('color-primary');
158
+ }
159
+
160
+ @include when(dragover) {
161
+ padding: calc(#{getCssVar('upload-dragger-padding-vertical')} - 1px)
162
+ calc(#{getCssVar('upload-dragger-padding-horizontal')} - 1px);
163
+ background-color: getCssVar('color', 'primary', 'light-9');
164
+ border: 2px dashed getCssVar('color-primary');
165
+ }
166
+ }
167
+
168
+ @include b(upload-list) {
169
+ @include set-component-css-var('upload', $upload);
170
+ }
171
+
172
+ @include b(upload-list) {
173
+ margin: 10px 0 0;
174
+ padding: 0;
175
+ list-style: none;
176
+ position: relative;
177
+
178
+ @include e(item) {
179
+ transition: all 0.5s cubic-bezier(0.55, 0, 0.1, 1);
180
+ font-size: 14px;
181
+ color: getCssVar('text-color', 'regular');
182
+ margin-bottom: 5px;
183
+ position: relative;
184
+ box-sizing: border-box;
185
+ border-radius: 4px;
186
+ width: 100%;
187
+
188
+ .#{bem('progress')} {
189
+ position: absolute;
190
+ top: 20px;
191
+ width: 100%;
192
+ }
193
+
194
+ .#{bem('progress', 'text')} {
195
+ position: absolute;
196
+ right: 0;
197
+ top: -13px;
198
+ }
199
+
200
+ .#{bem('progress-bar')} {
201
+ margin-right: 0;
202
+ padding-right: 0;
203
+ }
204
+
205
+ & .#{bem('icon', '', 'upload-success')} {
206
+ color: getCssVar('color-success');
207
+ }
208
+
209
+ .#{bem('icon', '', 'close')} {
210
+ display: none;
211
+ position: absolute;
212
+ right: 5px;
213
+ top: 50%;
214
+ cursor: pointer;
215
+ opacity: 0.75;
216
+ color: getCssVar('text-color', 'regular');
217
+ transition: opacity getCssVar('transition-duration');
218
+ transform: translateY(-50%);
219
+
220
+ &:hover {
221
+ opacity: 1;
222
+ color: getCssVar('color-primary');
223
+ }
224
+ }
225
+
226
+ & .#{bem('icon', '', 'close-tip')} {
227
+ display: none;
228
+ position: absolute;
229
+ top: 1px;
230
+ right: 5px;
231
+ font-size: 12px;
232
+ cursor: pointer;
233
+ opacity: 1;
234
+ color: getCssVar('color-primary');
235
+ font-style: normal;
236
+ }
237
+
238
+ &:hover,
239
+ &:focus-within {
240
+ background-color: getCssVar('fill-color', 'light');
241
+
242
+ .#{bem('icon', '', 'close')} {
243
+ display: inline-flex;
244
+ }
245
+
246
+ .#{bem('icon', '', 'close-tip')} {
247
+ right: 24px;
248
+ }
249
+
250
+ .#{bem('progress', 'text')} {
251
+ display: none;
252
+ }
253
+ }
254
+
255
+ .#{bem('upload-list', 'item-info')} {
256
+ display: inline-flex;
257
+ justify-content: center;
258
+ flex-direction: column;
259
+ width: calc(100% - 30px);
260
+ margin-left: 4px;
261
+ }
262
+
263
+ @include when(success) {
264
+ .#{bem('upload-list', 'item-status-label')} {
265
+ display: inline-flex;
266
+ }
267
+
268
+ .#{bem('upload-list', 'item-name')}:hover,
269
+ .#{bem('upload-list', 'item-name')}:focus {
270
+ color: getCssVar('color-primary');
271
+ cursor: pointer;
272
+ }
273
+
274
+ &:focus:not(:hover) {
275
+ /* 键盘focus */
276
+ .#{bem('icon', '', 'close-tip')} {
277
+ display: inline-block;
278
+ }
279
+ }
280
+
281
+ &:not(.focusing):focus,
282
+ &:active {
283
+ /* click时 */
284
+ outline-width: 0;
285
+
286
+ .#{bem('icon', '', 'close-tip')} {
287
+ display: none;
288
+ }
289
+ }
290
+
291
+ &:hover,
292
+ &:focus,
293
+ &:focus-within {
294
+ .#{bem('upload-list', 'item-status-label')} {
295
+ display: none;
296
+ opacity: 0;
297
+ }
298
+ }
299
+ }
300
+ }
301
+
302
+ @include e(item-name) {
303
+ color: getCssVar('text-color', 'regular');
304
+ display: inline-flex;
305
+ text-align: center;
306
+ align-items: center;
307
+
308
+ padding: 0 4px;
309
+
310
+ transition: color getCssVar('transition-duration');
311
+ font-size: getCssVar('font-size', 'base');
312
+
313
+ .#{$namespace}-icon {
314
+ margin-right: 6px;
315
+ color: getCssVar('text-color', 'secondary');
316
+ }
317
+ }
318
+
319
+ @include e(item-file-name) {
320
+ overflow: hidden;
321
+ text-overflow: ellipsis;
322
+ white-space: nowrap;
323
+ }
324
+
325
+ @include e(item-status-label) {
326
+ position: absolute;
327
+ right: 5px;
328
+ top: 0;
329
+ line-height: inherit;
330
+ display: none;
331
+
332
+ height: 100%;
333
+ justify-content: center;
334
+ align-items: center;
335
+
336
+ transition: opacity getCssVar('transition-duration');
337
+ }
338
+
339
+ @include e(item-delete) {
340
+ position: absolute;
341
+ right: 10px;
342
+ top: 0;
343
+ font-size: 12px;
344
+ color: getCssVar('text-color', 'regular');
345
+ display: none;
346
+
347
+ &:hover {
348
+ color: getCssVar('color-primary');
349
+ }
350
+ }
351
+
352
+ // upload-list
353
+ @include m(picture-card) {
354
+ display: inline-flex;
355
+ flex-wrap: wrap;
356
+ margin: 0;
357
+
358
+ .#{bem('upload-list', 'item')} {
359
+ overflow: hidden;
360
+ background-color: getCssVar('fill-color', 'blank');
361
+ border: 1px solid getCssVar('border-color');
362
+ border-radius: 6px;
363
+ box-sizing: border-box;
364
+ width: getCssVar('upload-list', 'picture-card', 'size');
365
+ height: getCssVar('upload-list', 'picture-card', 'size');
366
+ margin: 0 8px 8px 0;
367
+ padding: 0;
368
+
369
+ display: inline-flex;
370
+
371
+ .#{bem('icon', '' ,'check')},
372
+ .#{bem('icon', '' ,'circle-check')} {
373
+ color: $color-white;
374
+ }
375
+
376
+ .#{bem('icon', '', 'close')} {
377
+ display: none;
378
+ }
379
+
380
+ &:hover {
381
+ .#{bem('upload-list', 'item-status-label')} {
382
+ opacity: 0;
383
+ // for fade out
384
+ display: block;
385
+ }
386
+
387
+ .#{$namespace}-progress__text {
388
+ display: block;
389
+ }
390
+ }
391
+ }
392
+
393
+ .#{bem('upload-list', 'item')} {
394
+ .#{bem('upload-list', 'item-name')} {
395
+ display: none;
396
+ }
397
+ }
398
+
399
+ .#{bem('upload-list', 'item-thumbnail')} {
400
+ width: 100%;
401
+ height: 100%;
402
+ object-fit: contain;
403
+ }
404
+
405
+ .#{bem('upload-list', 'item-status-label')} {
406
+ @include upload-success();
407
+ }
408
+
409
+ .#{bem('upload-list', 'item-actions')} {
410
+ position: absolute;
411
+ width: 100%;
412
+ height: 100%;
413
+ left: 0;
414
+ top: 0;
415
+ cursor: default;
416
+
417
+ display: inline-flex;
418
+ justify-content: center;
419
+ align-items: center;
420
+
421
+ color: #fff;
422
+ opacity: 0;
423
+ font-size: 20px;
424
+ background-color: getCssVar('overlay-color', 'lighter');
425
+ transition: opacity getCssVar('transition-duration');
426
+
427
+ span {
428
+ display: none;
429
+ cursor: pointer;
430
+ }
431
+
432
+ span + span {
433
+ margin-left: 16px;
434
+ }
435
+
436
+ .#{bem('upload-list', 'item-delete')} {
437
+ position: static;
438
+ font-size: inherit;
439
+ color: inherit;
440
+ }
441
+
442
+ &:hover {
443
+ opacity: 1;
444
+
445
+ span {
446
+ display: inline-flex;
447
+ }
448
+ }
449
+ }
450
+
451
+ .#{bem('progress')} {
452
+ top: 50%;
453
+ left: 50%;
454
+ transform: translate(-50%, -50%);
455
+ bottom: auto;
456
+ width: 126px;
457
+
458
+ .#{$namespace}-progress__text {
459
+ top: 50%;
460
+ }
461
+ }
462
+ }
463
+
464
+ @include m(picture) {
465
+ .#{bem('upload-list', 'item')} {
466
+ overflow: hidden;
467
+ z-index: 0;
468
+ background-color: getCssVar('fill-color', 'blank');
469
+ border: 1px solid getCssVar('border-color');
470
+ border-radius: 6px;
471
+ box-sizing: border-box;
472
+ margin-top: 10px;
473
+ padding: 10px;
474
+ display: flex;
475
+ align-items: center;
476
+
477
+ .#{bem('icon', '' ,'check')},
478
+ .#{bem('icon', '' ,'circle-check')} {
479
+ color: $color-white;
480
+ }
481
+
482
+ &:hover {
483
+ .#{bem('upload-list', 'item-status-label')} {
484
+ opacity: 0;
485
+ display: inline-flex;
486
+ }
487
+
488
+ .#{bem('progress', 'text')} {
489
+ display: block;
490
+ }
491
+ }
492
+
493
+ &.is-success {
494
+ .#{bem('upload-list', 'item-name')} {
495
+ i {
496
+ display: none;
497
+ }
498
+ }
499
+ }
500
+
501
+ & .#{bem('icon', '' ,'close')} {
502
+ top: 5px;
503
+ transform: translateY(0);
504
+ }
505
+ }
506
+
507
+ .#{bem('upload-list', 'item-thumbnail')} {
508
+ $item-thumbnail-size: 70px;
509
+
510
+ display: inline-flex;
511
+ justify-content: center;
512
+ align-items: center;
513
+
514
+ width: $item-thumbnail-size;
515
+ height: $item-thumbnail-size;
516
+ object-fit: contain;
517
+
518
+ position: relative;
519
+ z-index: 1;
520
+ background-color: getCssVar('color-white');
521
+ }
522
+
523
+ .#{bem('upload-list', 'item-status-label')} {
524
+ position: absolute;
525
+ right: -17px;
526
+ top: -7px;
527
+ width: 46px;
528
+ height: 26px;
529
+ background: getCssVar('color-success');
530
+ text-align: center;
531
+ transform: rotate(45deg);
532
+
533
+ i {
534
+ font-size: 12px;
535
+ margin-top: 12px;
536
+ transform: rotate(-45deg);
537
+ }
538
+ }
539
+
540
+ .#{$namespace}-progress {
541
+ position: relative;
542
+ top: -7px;
543
+ }
544
+ }
545
+ }
546
+
547
+ @include b(upload-cover) {
548
+ position: absolute;
549
+ left: 0;
550
+ top: 0;
551
+ width: 100%;
552
+ height: 100%;
553
+ overflow: hidden;
554
+ z-index: 10;
555
+ cursor: default;
556
+ @include utils-vertical-center;
557
+
558
+ img {
559
+ display: block;
560
+ width: 100%;
561
+ height: 100%;
562
+ }
563
+
564
+ @include e(label) {
565
+ @include upload-success(#fff);
566
+ }
567
+
568
+ @include e(progress) {
569
+ display: inline-block;
570
+ vertical-align: middle;
571
+ position: static;
572
+ width: 243px;
573
+
574
+ + .#{bem('upload', 'inner')} {
575
+ opacity: 0;
576
+ }
577
+ }
578
+
579
+ @include e(content) {
580
+ position: absolute;
581
+ top: 0;
582
+ left: 0;
583
+ width: 100%;
584
+ height: 100%;
585
+ }
586
+
587
+ @include e(interact) {
588
+ position: absolute;
589
+ bottom: 0;
590
+ left: 0;
591
+ width: 100%;
592
+ height: 100%;
593
+ background-color: getCssVar('overlay-color', 'light');
594
+ text-align: center;
595
+
596
+ .btn {
597
+ display: inline-block;
598
+ color: $color-white;
599
+ font-size: 14px;
600
+ cursor: pointer;
601
+ vertical-align: middle;
602
+ transition: getCssVar('transition-md-fade');
603
+ margin-top: 60px;
604
+
605
+ i {
606
+ margin-top: 0;
607
+ }
608
+
609
+ span {
610
+ opacity: 0;
611
+ transition: opacity 0.15s linear;
612
+ }
613
+
614
+ &:not(:first-child) {
615
+ margin-left: 35px;
616
+ }
617
+
618
+ &:hover {
619
+ transform: translateY(-13px);
620
+
621
+ span {
622
+ opacity: 1;
623
+ }
624
+ }
625
+
626
+ i {
627
+ color: $color-white;
628
+ display: block;
629
+ font-size: 24px;
630
+ line-height: inherit;
631
+ margin: 0 auto 5px;
632
+ }
633
+ }
634
+ }
635
+
636
+ @include e(title) {
637
+ position: absolute;
638
+ bottom: 0;
639
+ left: 0;
640
+ background-color: $color-white;
641
+ height: 36px;
642
+ width: 100%;
643
+ overflow: hidden;
644
+ text-overflow: ellipsis;
645
+ white-space: nowrap;
646
+ font-weight: normal;
647
+ text-align: left;
648
+ padding: 0 10px;
649
+ margin: 0;
650
+ line-height: 36px;
651
+ font-size: 14px;
652
+ color: getCssVar('text-color', 'primary');
653
+ }
654
+
655
+ + .#{bem('upload', 'inner')} {
656
+ opacity: 0;
657
+ position: relative;
658
+ z-index: 1;
659
+ }
660
+ }