upload.scss
14.9 KB
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
$dialogWidth:652px;
$dialogZindex:811213;
$fontsize:14px;
.uedbody{
div, dl, dt, dd, ul, li,ol, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, button, textarea, blockquote,p{margin:0; padding:0;}
h1,h2,h3,h4,h5,h6 {font-weight:normal;}
li{list-style-type:none;}
ol,ul,dl{list-style:none;}
em{font-style:normal;}
img{border:none;vertical-align:middle;}
select,label,input{vertical-align:middle; padding:0; margin:0;outline:medium;font-size:12px;}
textarea{resize: none; line-height:18px;}
table { border-collapse: collapse; border-spacing: 0; empty-cell:show;}
a{text-decoration:none;color:#333;outline:none; cursor:pointer;}
a:hover{cursor:pointer;blr:expression(this.onFocus=this.blur());}
box-sizing : content-box !important;
-webkit-box-sizing: content-box !important;
-moz-box-sizing: content-box !important;
* {
padding: 0; margin: 0;
box-sizing : content-box !important;
-webkit-box-sizing: content-box !important;
-moz-box-sizing: content-box !important;
}
.clearfix:before, .clearfix:after {
content: "";
display: table;
}
.clearfix:after{
clear: both;
}
.clearfix{
*zoom: 1;
}
.fr{float: right;}
.fl{float: left;}
width: $dialogWidth;
position: fixed;
padding: 2px 0px 0px 2px;
background-color: #FFF;
border: 1px solid rgba(0, 0, 0, 0.2);
border-radius: 6px;
box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
z-index: $dialogZindex;
font-family:"微软雅黑";
font-size: 12px;
margin: 0px auto;
//start of ued_title
.ued_title{
height: 26px;
border-bottom: 1px solid #C6C6C6;
background: transparent url("images/dialog-title-bg.png") repeat-x scroll 0% 0%;
position: relative;
cursor: move;
.icon{background: url("images/icons-all.gif") no-repeat center;}
.uedbar {
span{
font-weight: bold;
font-size: 14px;
color: #444;
line-height: 26px;
padding-left: 5px;
}
}
.close_btn{
height: 20px;
width: 20px;
cursor: pointer;
background-position :0px -59px;
position: absolute;
right: 5px;
top: 3px;
&:hover{background-position: 0px -89px;}
}
}
//end of ued_title
//button styles
.btn {
display: inline-block;
margin-bottom: 0px;
margin-right: 5px;
padding: 4px 10px;
font-weight: 400;
text-align: center;
cursor: pointer;
border: 1px solid transparent;
white-space: nowrap;
font-size: $fontsize;
border-radius: 3px;
-moz-user-select: none;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
padding: 5px 14px;
}
.btn-default {
border: 1px solid #CFCFCF;
color: #565656;
background: #ffffff;
&:hover {
background: #f0f0f0;
}
}
.btn-primary {
background:#00b7ee;
color: #ffffff;
&:hover {
background: #00a2d4;
}
}//button style end
.btn.disabled {
cursor: not-allowed;
opacity: .65;
&:hover {
background: #00b7ee;
}
}
//start of wrapper
.wrapper {
width: 630px;
height: 380px;
margin: 0px auto;
padding: 10px;
position: relative;
font-family: sans-serif;
//start of wra_head
.wra_head {
span {
float: left;
padding: 0px 5px;
margin-right:3px;
height: 30px;
border: 1px solid #CCC;
background: transparent url("images/dialog-title-bg.png") repeat-x scroll 0% 0%;
text-align: center;
line-height: 30px;
cursor: pointer;
position: relative;
}
span.focus {
height: 31px;
border-bottom: medium none;
background: #FFF none repeat scroll 0% 0%;
position: relative;
z-index: 2;
}
}//end of wra_head
//start of wra_body
.wra_body{
width: 100%;
height: 346px;
clear: both;
margin: 0px auto;
border: 1px solid #CCC;
display: block;
clip: auto;
overflow: hidden;
top: -1px;
position: relative;
//upload panel start
.upload-panel {
.wra_pla {
zoom: 1; overflow: hidden;
text-align: center;
.upload-image-placeholder {
margin: 10px;
border: 2px dashed #e6e6e6;
height: 172px;
padding-top: 150px;
text-align: center;
background: url("images/image.png") center 70px no-repeat;
position: relative;
top: 0;
.webuploader-element-invisible {
//width: 145px;
//height: 40px;
//position: absolute;
//left: 225px;
opacity: 0;
width: 0; height: 0;
}
.image-select {
padding: 10px 30px;
cursor: pointer;
}
}
}
//image list box start
.image-list-box {
.wra_bar {
border-bottom: 1px solid #DADADA;
padding: 8px;
vertical-align: middle;
position: relative;
zoom: 1; overflow: hidden;
.info{
font-size: $fontsize;
color: #666;
margin-top: 6px;
}
.fr {
.btn {padding: 6px 15px;}
}
}
//filelist start
.filelist{
list-style: outside none none;
margin: 0px;
padding: 0px;
overflow-x: hidden;
overflow-y: auto;
position: relative;
height: 300px;
li {
width: 113px;
height: 113px;
margin: 9px 0px 0px 9px;
position: relative;
display: block;
float: left;
overflow: hidden;
font-size: 12px;
.imgWrap{
position: relative;
vertical-align: middle;
text-align: center;
overflow: hidden;
width: 113px;
height: 113px;
transform-origin: 50% 50% 0px;
transition: all 200ms ease-out 0s;
}
//file opt box start
.file-opt-box{
position: absolute;
display: none;
background: rgba(0, 0, 0, 0.5) none repeat scroll 0% 0%;
width: 100%;
top: 0px;
left: 0px;
overflow: hidden;
span {
width: 24px;
height: 24px;
display: inline;
float: right;
text-indent: -9999px;
overflow: hidden;
background: url("images/icons.png") no-repeat;
margin: 5px 1px 1px;
cursor: pointer;
-webkit-tap-highlight-color: rgba(0,0,0,0);
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.remove{
background-position: -48px -24px;
&:hover{
background-position: -48px -0px;
}
}
.rotateRight{
display: none;
background-position: -24px -24px;
&:hover{
background-position: -24px -0px;
}
}
.rotateLeft{
display: none;
background-position: 0px -24px;
&:hover{
background-position: 0px 0px;
}
}
}//file opt box end
.success{
background: url("images/success.png") no-repeat right;
position: absolute;
display: none;
left: 0px;
bottom: 0px;
height: 40px;
width: 100%;
}
.error {
position: absolute;
width: 100%;
display: none;
background: rgba(255, 255, 255, 0.7) none repeat scroll 0% 0%;
left: 0;
padding:5px 3px;
color: #cc0000;
border: 1px solid #cccccc;
bottom: 0;
}
.progress {
position: absolute;
width: 100%;
bottom: 0;
left: 0;
bottom: 0;
height: 8px;
overflow: hidden;
z-index: 50;
margin: 0;
border-radius: 0;
background: none;
-webkit-box-shadow: 0 0 0;
span {
width: 0;
height: 100%;
background: #1483d8 url("images/progress.png") repeat-x;
-webit-transition: width 200ms linear;
-moz-transition: width 200ms linear;
-o-transition: width 200ms linear;
-ms-transition: width 200ms linear;
transition: width 200ms linear;
-webkit-animation: progressmove 2s linear infinite;
-moz-animation: progressmove 2s linear infinite;
-o-animation: progressmove 2s linear infinite;
-ms-animation: progressmove 2s linear infinite;
animation: progressmove 2s linear infinite;
-webkit-transform: translateZ(0);
}
}
}//end li
}//filelist end
}//image list box end
}//upload panel end
//image online start
.online{
width: 100%;
height: 336px;
padding: 10px 0px 0px;
display: none;
.imagelist {
width: 100%;
height: 100%;
overflow-x: hidden;
overflow-y: auto;
position: relative;
.list {
li {
float: left;
display: block;
list-style: outside none none;
padding: 0px;
width: 113px;
height: 113px;
margin: 0px 0px 9px 9px;
background-color: #EEE;
overflow: hidden;
cursor: pointer;
position: relative;
img{cursor: pointer;}
span.ic {
position: absolute;
top: 0px;
left: 0px;
cursor: pointer;
width: 113px;
height: 113px;
.img-size {
font-size:12px;
padding: 5px;
background:rgba(0,0,0,0.6);
display: none;
color: #ffffff;
}
&:hover{
width: 107px;
height: 107px;
border: 3px solid #1094FA;
background-position: 72px 72px;
.img-size {
display: inline-block;
width: 97px;
}
}
}
span.selected {
background: url("images/success.png") no-repeat 75px 75px;
}
}
}
}
} //image online end
//image search start
.searchbox {
width: 100%;
padding: 10px 0px 0px;
zoom: 1; overflow: hidden;
display: none;
//搜索条
.search-bar {
.searTxt{
margin-left: 5px;
background: #FFF none repeat scroll 0% 0%;
width: 300px;
height: 21px;
line-height: 21px;
padding: 3px 6px;
font-size: $fontsize;
line-height: 1.42857;
border: 1px solid #CCC;
border-radius: 4px;
box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.075) inset;
transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s;
margin-right:10px;
}
.searchBtn {
color: #FFF;
border-color: #285E8E;
background-color: #3B97D7;
}
.searchRese{
color: #333;
border-color: #CCC;
background-color: #FFF;
}
}
.search-imagelist-box {
width: 100%;
height: 292px;
overflow-x: hidden;
overflow-y: auto;
position: relative;
margin-top:10px;
.search-list {
zoom:1; overflow: hidden;
li {
float: left;
display: block;
list-style: outside none none;
padding: 0px;
width: 113px;
height: 113px;
margin: 0px 0px 9px 9px;
background-color: #EEE;
overflow: hidden;
cursor: pointer;
position: relative;
img {
cursor: pointer;
}
span.ic {
position: absolute;
top: 0px;
left: 0px;
cursor: pointer;
width: 113px;
height: 113px;
.img-size {
font-size:12px;
padding: 5px;
background:rgba(0,0,0,0.6);
display: none;
color: #ffffff;
}
&:hover {
width: 107px;
height: 107px;
border: 3px solid #1094FA;
background-position: 72px 72px;
overflow: hidden;
.img-size {
display: inline-block;
width: 97px;
}
}
}
span.selected {
background: url("images/success.png") no-repeat 75px 75px;
}
}
}
}
}//image search start end
.no-data {
line-height: 40px;
height: 40px;
font-size:$fontsize;
color: #999999;
text-align: center;
display: none;
.error {
color: #cc0000;
}
}
.loading-icon {
background:rgba(0,0,0,0.4) url("images/loader.gif") no-repeat center center;
position: absolute;
width: 100%;
height: 346px;
top:0; left: 0;
display: none;
text-align: center;
.loading-message {
position: absolute;
font-size: 14px;
color: #f0f0f0;
top: 210px;
left:253px;
}
}
//图片占位符
.icon-placeholder {
background-size: 113px 113px;
display: block;
width: 113px;
height: 113px;
}
.icon-aep, .icon-aepx {background-image: url("icons/aep.png");}
.icon-asp {background-image: url("icons/asp.png");}
.icon-avi {background-image: url("icons/avi.png");}
.icon-c, .icon-cpp {background-image: url("icons/c.png");}
.icon-conf {background-image: url("icons/conf.png");}
.icon-css {background-image: url("icons/css.png");}
.icon-htm,.icon-html {background-image: url("icons/htm.png");}
.icon-default {background-image: url("icons/txt.png");}
.icon-doc,.icon-docx {background-image: url("icons/doc.png");}
.icon-eps {background-image: url("icons/eps.png");}
.icon-fla,.icon-swf {background-image: url("icons/fla.png");}
.icon-idn {background-image: url("icons/idn.png");}
.icon-ini {background-image: url("icons/ini.png");}
.icon-java, .icon-jar, .icon-war {background-image: url("icons/java.png");}
.icon-js {background-image: url("icons/js.png");}
.icon-jsf {background-image: url("icons/jsf.png");}
.icon-md, .icon-markdown {background-image: url("icons/markdown.png");}
.icon-mdb {background-image: url("icons/mdb.png");}
.icon-midi {background-image: url("icons/midi.png");}
.icon-mov {background-image: url("icons/mov.png");}
.icon-mp3 {background-image: url("icons/mp3.png");}
.icon-mpeg {background-image: url("icons/mpeg.png");}
.icon-pdf {background-image: url("icons/pdf.png");}
.icon-php {background-image: url("icons/php.png");}
.icon-ppt, .icon-pptx {background-image: url("icons/ppt.png");}
.icon-psd {background-image: url("icons/psd.png");}
.icon-pst {background-image: url("icons/pst.png");}
.icon-pub {background-image: url("icons/pub.png");}
.icon-py {background-image: url("icons/py.png");}
.icon-rb {background-image: url("icons/rb.png");}
.icon-rm, .icon-rmvb {background-image: url("icons/rmvb.png");}
.icon-scss {background-image: url("icons/scss.png");}
.icon-tif {background-image: url("icons/tif.png");}
.icon-txt {background-image: url("icons/txt.png");}
.icon-vsd {background-image: url("icons/vsd.png");}
.icon-wav {background-image: url("icons/wav.png");}
.icon-wma {background-image: url("icons/wma.png");}
.icon-wmv {background-image: url("icons/wmv.png");}
.icon-xls, .icon-xlsx {background-image: url("icons/xls.png");}
.icon-xml {background-image: url("icons/xml.png");}
.icon-zip, .icon-rar, .icon-tgz, .icon-gz, .icon-tar, .icon-7z {background-image: url("icons/zip.png");}
}//end of wra_body
.wra_body_server {
height: 380px;
.online {
display: block !important;
height: 365px;
}
}
}//start of wrapper
.wra-btn-group {
clear: both;
zoom: 1;
text-align: right;
padding: 10px 20px 20px 0px;
.tip-text {
float: left;
padding: 5px 10px;
color: #999;
font-size: 14px;
}
}
}