-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathstyle.css
82 lines (82 loc) · 1.6 KB
/
style.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
header {
padding: 1.5rem 0;
}
body.auth-false .auth-false {
display: block;
}
body.auth-false .auth-true {
display: none;
}
body.auth-true .auth-false {
display: none;
}
body.auth-true .auth-true {
display: block;
}
[file-drop] {
position: relative;
border: 1px solid transparent;
}
.img-preview > div,
[file-drop-preview] div {
display: inline-block;
position: relative;
}
.img-preview img,
[file-drop-preview] img {
max-width: 100px;
max-height: 100px;
width: auto;
height: auto;
}
.img-preview > div,
[file-drop-preview] > div {
margin: 0.25em;
}
.img-preview > div:after,
[file-drop-preview] > div:after {
content: 'Click to remove!';
background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.9));
color: #fff;
padding: 0.5em;
width: 100%;
bottom: 0;
left: 0;
position: absolute;
font-size: 0.65em;
}
.img-preview > div:hover:before,
[file-drop-preview] > div:hover:before {
opacity: 0.7;
transform: translateX(-50%) translateY(-50%) scale(1);
}
.img-preview > div:before,
[file-drop-preview] > div:before {
transition: all ease 250ms;
font-size: 1.6em;
content: '❌';
background: rgba(0,0,0,0.9);
color: #fff;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%) scale(0.001);
position: absolute;
border-radius: 50%;
width: 50px;
height: 50px;
text-align: center;
line-height: 55px;
opacity: 0;
}
.solid-border:after {
border: 1px dashed #aaa;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.8);
content: 'Drop Files Here!';
text-align: center;
line-height: 100%;
}