1
- @import " ../../style/themes/default" ;
2
- @import " ../../style/mixins/index" ;
1
+ @import ' ../../style/themes/default' ;
2
+ @import ' ../../style/mixins/index' ;
3
3
4
- @upload-prefix-cls : ~ " @{ant-prefix} -upload" ;
5
- @upload-item : ~ " @{ant-prefix} -upload-list-item" ;
4
+ @upload-prefix-cls : ~ ' @{ant-prefix} -upload' ;
5
+ @upload-item : ~ ' @{ant-prefix} -upload-list-item' ;
6
6
@upload-pictrue-card-size : 104px ;
7
7
8
8
.@{upload-prefix-cls} {
19
19
outline : none ;
20
20
}
21
21
22
- input [type= " file" ] {
22
+ input [type= ' file' ] {
23
23
cursor : pointer ;
24
24
}
25
25
57
57
58
58
&&-drag {
59
59
border : @border-width-base dashed @border-color-base ;
60
- transition : border- color .3s ;
60
+ transition : border- color 0 .3s ;
61
61
cursor : pointer ;
62
62
border-radius : @border-radius-base ;
63
63
text-align : center ;
110
110
}
111
111
.@{iconfont-css-prefix} -plus {
112
112
font-size : 30px ;
113
- transition : all .3s ;
113
+ transition : all 0 .3s ;
114
114
color : @disabled-color ;
115
115
& :hover {
116
116
color : @text-color-secondary ;
142
142
&-info {
143
143
height : 100% ;
144
144
padding : 0 12px 0 4px ;
145
- transition : background- color .3s ;
145
+ transition : background- color 0 .3s ;
146
146
147
147
> span {
148
148
display : block ;
159
159
160
160
.@{iconfont-css-prefix} -close {
161
161
.iconfont-size-under-12px (10px );
162
- transition : all .3s ;
162
+ transition : all 0 .3s ;
163
163
opacity : 0 ;
164
164
cursor : pointer ;
165
165
position : absolute ;
236
236
top : 8px ;
237
237
left : 8px ;
238
238
text-align : center ;
239
+ line-height : 54px ;
240
+ font-size : 26px ;
241
+ opacity : 0.8 ;
239
242
}
240
243
241
244
.@{upload-item} -icon {
242
- color : @disabled-color ;
243
- font-size : 36px ;
245
+ font-size : 26px ;
244
246
position : absolute ;
245
247
top : 50% ;
246
248
left : 50% ;
247
- margin-top : -18px ;
248
- margin-left : -18px ;
249
+ transform : translate (-50% , -50% );
249
250
}
250
251
251
252
.@{upload-item} -thumbnail img {
255
256
overflow : hidden ;
256
257
}
257
258
258
- .@{upload-item} -thumbnail.@{iconfont-css-prefix} :before {
259
- line-height : 48px ;
260
- font-size : 24px ;
261
- color : @text-color-secondary ;
262
- }
263
-
264
259
.@{upload-item} -name {
265
260
overflow : hidden ;
266
261
text-overflow : ellipsis ;
267
262
white-space : nowrap ;
268
263
margin : 0 0 0 8px ;
269
264
line-height : 44px ;
270
- transition : all .3s ;
265
+ transition : all 0 .3s ;
271
266
padding-left : 48px ;
272
267
padding-right : 8px ;
273
268
max-width : 100% ;
283
278
padding-left : 56px ;
284
279
margin-top : 0 ;
285
280
bottom : 14px ;
286
- width : ~ " calc(100% - 24px)" ;
281
+ width : ~ ' calc(100% - 24px)' ;
287
282
}
288
283
289
284
.@{iconfont-css-prefix} -close {
319
314
position : absolute ;
320
315
z-index : 1 ;
321
316
background-color : rgba (0 , 0 , 0 , 0.5 );
322
- transition : all .3s ;
317
+ transition : all 0 .3s ;
323
318
width : 100% ;
324
319
height : 100% ;
325
320
opacity : 0 ;
338
333
z-index : 10 ;
339
334
white-space : nowrap ;
340
335
opacity : 0 ;
341
- transition : all .3s ;
336
+ transition : all 0 .3s ;
342
337
343
338
.@{iconfont-css-prefix} -eye-o ,
344
339
.@{iconfont-css-prefix} -delete {
345
340
z-index : 10 ;
346
- transition : all .3s ;
341
+ transition : all 0 .3s ;
347
342
cursor : pointer ;
348
343
font-size : 16px ;
349
344
width : 16px ;
415
410
.@{upload-prefix-cls} -animate-leave ,
416
411
.@{upload-prefix-cls} -animate-inline-enter ,
417
412
.@{upload-prefix-cls} -animate-inline-leave {
418
- animation-duration : .3s ;
413
+ animation-duration : 0 .3s ;
419
414
animation-fill-mode : @ease-in-out-circ ;
420
415
}
421
416
472
467
padding : 0 ;
473
468
opacity : 0 ;
474
469
}
475
- }
470
+ }
0 commit comments