-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdrag-and-drop.css
143 lines (121 loc) · 3.05 KB
/
drag-and-drop.css
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
/*
Styles for HTML5 File Drag & Drop demonstration
Featured on SitePoint.com
Developed by Craig Buckler (@craigbuckler) of OptimalWorks.net
Extended by Clinton Pahl
*/
.filedrag {
background-color: #F7F7F7;
display: table;
text-align: center;
margin: 1em 0;
border: 2px dashed #BBBBBB;
cursor: default;
width: 100%;
height: 8em;
position: relative;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-o-box-sizing: border-box;
box-sizing: border-box;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
-o-border-radius: 3px;
border-radius: 3px;
}
.filedrag:hover {
border: 2px solid #BBBBBB;
background: rgba(224,224,224,1);
background: -moz-linear-gradient(top, rgba(224,224,224,1) 0%, rgba(246,246,246,1) 53%, rgba(255,255,255,1) 100%);
background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(224,224,224,1)), color-stop(53%, rgba(246,246,246,1)), color-stop(100%, rgba(255,255,255,1)));
background: -webkit-linear-gradient(top, rgba(224,224,224,1) 0%, rgba(246,246,246,1) 53%, rgba(255,255,255,1) 100%);
background: -o-linear-gradient(top, rgba(224,224,224,1) 0%, rgba(246,246,246,1) 53%, rgba(255,255,255,1) 100%);
background: -ms-linear-gradient(top, rgba(224,224,224,1) 0%, rgba(246,246,246,1) 53%, rgba(255,255,255,1) 100%);
background: linear-gradient(to bottom, rgba(224,224,224,1) 0%, rgba(246,246,246,1) 53%, rgba(255,255,255,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e0e0e0', endColorstr='#ffffff', GradientType=0 );
}
.filedrag input {
position: absolute;
top:0;
left:0;
opacity: 0;
width: 100%;
height: 100%;
z-index: 9999;
}
.filedrag input:hover {
cursor: pointer;
}
.filedrag * {
-webkit-box-sizing: inherit;
-moz-box-sizing: inherit;
-o-box-sizing: inherit;
box-sizing: inherit;
}
.info {
font-weight: bold;
color: #BBBBBB;
}
.info-file {
font-weight: bold;
color: #6F916F;
}
.filedrag .status {
display: table-cell;
vertical-align: middle;
width: 100%;
height: 100%;
}
.filedrag.hover {
color: #f00;
border-color: #f00;
border-style: solid;
-webkit-box-shadow: inset 0 3px 4px #888;
-moz-box-shadow: inset 0 3px 4px #888;
box-shadow: inset 0 3px 4px #888;
}
pre {
width: 95%;
height: 8em;
font-family: monospace;
font-size: 0.9em;
padding: 1px 2px;
margin: 0 0 1em auto;
border: 1px inset #666;
background-color: #eee;
overflow: auto;
}
.messages p {
margin: 0;
}
.filedrag .messages {
padding: 0.5em;
margin: 1em 0;
border: 2px solid #129F22;
width: 100%;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
-o-border-radius: 3px;
border-radius: 3px;
}
#progress p {
display: block;
width: 240px;
padding: 2px 5px;
margin: 2px 0;
border: 1px inset #446;
background: #eee url("progress.png") 100% 0 repeat-y;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
-o-border-radius: 5px;
border-radius: 5px;
}
#progress p.success {
background: #0c0 none 0 0 no-repeat;
}
#progress p.failed {
background: #c00 none 0 0 no-repeat;
}
.hidden {
display: none;
}