-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathImageUploadCSS.css
129 lines (121 loc) · 2.15 KB
/
ImageUploadCSS.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
.ImageCenter {
margin-top:1.5%;
background-size: cover;
display: flex;
align-items: center;
justify-content: center;
}
.ImagePreview {
opacity: 0;
display: block;
left: 0;
right: 0;
bottom: 0;
top: 0;
position: absolute;
overflow: hidden;
transition: all 500ms ease-in-out 250ms;
}
.ImagePreview.Show {
opacity: 1;
}
.ImageProgress {
opacity: 0;
display: block;
left: 0;
right: 0;
top: 0;
bottom: 0;
position: absolute;
overflow: hidden;
transition: all 500ms ease-in-out 250ms;
}
.ImageProgress.Show {
opacity: 1;
}
.ImagePreview > div {
position: absolute;
background-size: cover;
filter: blur(20px);
left: -40px;
right: -40px;
bottom: -40px;
top: -40px;
}
.DropArea {
background: #efefef;
display: flex;
align-items: center;
justify-content: center;
width: calc(60vw - 60px);
height: calc(50vh - 50px);
border: 2px dashed #DDD;
transition: all 250ms ease-in-out 0s;
position: relative;
}
.DropArea.Over {
border: solid 20px rgba(0, 0, 0, 0.2);
}
.ImageProgress {
display: block;
left: 0;
right: 0;
top: 0;
bottom: 0;
position: absolute;
overflow: hidden;
}
.ImageProgress > .ImageProgressImage {
opacity: 0.3;
position: absolute;
background-position: center center;
background-size: cover;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
.ImageProgress > .ImageProgressUploaded {
position: absolute;
background-position: center center;
background-size: cover;
top: 0;
left: 0;
right: 0;
bottom: 0;
clip-path: inset(0% 0 0 0);
}
.Status {
background: rgba(0, 0, 0, 0.3);
display: block;
color: #939393;
font-size: 30px;
font-weight: bold;
text-align: center;
line-height: calc(50vh - 50px);
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
transition: all 250ms ease-in-out 0s;
}
.Status {
background: transparent;
display: block;
color: #939393;
font-size: 30px;
font-weight: bold;
text-align: center;
line-height: calc(50vh - 50px);
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
transition: all 250ms ease-in-out 0s;
}
.Status.Uploading {
background: rgba(0, 0, 0, 0.3);
color: white;
}