forked from OTRMan/otr.to-chat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfiledrop.css
43 lines (40 loc) · 1.08 KB
/
filedrop.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
/***
Styles below are only required if you're using <iframe> fallback in
addition to HTML5 drag & drop (only working in Firefox/Chrome/Opera 15+).
You can @import this file and override individual styles. Drag & drop zone
can be styled in absolutely any way you want so there are no defaults.
***/
/* Essential FileDrop zone element configuration: */
.fd-zone {
position: relative;
overflow: hidden;
width: 100%;
height: 100%;
margin: 0 auto;
border: 2px dashed #0087f7;
border-radius: 5px;
text-align: center;
-webkit-transition: background 0.5s linear;
-moz-transition: background 0.5s linear;
-ms-transition: background 0.5s linear;
-o-transition: background 0.5s linear;
transition: background 0.5s linear;
}
/* Hides <input type="file"> while simulating "Browse" button: */
.fd-file {
opacity: 0;
font-size: 118px;
position: absolute;
right: 0;
top: 0;
z-index: 1;
padding: 0;
margin: 0;
cursor: pointer;
filter: alpha(opacity=0);
font-family: sans-serif;
}
.fd-zone.over {
border-color: maroon;
background: #99DEFF;
}