forked from jackrabbitsgroup/angular-image-upload
-
Notifications
You must be signed in to change notification settings - Fork 0
/
image-upload.css
206 lines (206 loc) · 4.67 KB
/
image-upload.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
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
/* jrg-image-upload */
.jrg-image-upload-form-container .hidden {
display: none;
}
.jrg-image-upload-fake-input-container {
position: relative;
overflow: hidden;
}
.jrg-image-upload-fake-input-container-inner {
position: relative;
border: dashed 2px;
padding: 20px 0;
padding-top: 5px;
text-align: center;
}
.jrg-image-upload-input,
input[type='file'].jrg-image-upload-input {
/* height, padding, etc. don't work on file inputs - instead use font-size and overflow hidden of parent to just make it arbitrarily big so it fills the whole space */
position: absolute;
font-size: 5000px;
/* arbitrarily big - needs to cover uploaded images too so needs to be as tall as that height */
height: 100%;
/* for webkit on apple, which doesn't make height bigger otherwise */
top: 0;
left: 0;
opacity: 0;
/*filter:alpha(opacity:0);*/
line-height: auto;
}
.jrg-image-upload-drag-text {
font-size: 3em;
color: #aaaaaa;
text-align: center;
}
.jrg-image-upload-or-text {
font-size: .8em;
}
.jrg-image-upload-upload-text {
font-size: 1.75em;
line-height: 1.75em;
color: #323232;
text-align: center;
}
.jrg-image-upload-by-url-text {
font-size: 3em;
color: #323232;
text-align: center;
}
.jrg-image-upload-browse-input,
.jrg-image-upload-by-url-input {
font-size: 1em;
padding: 8px;
border: solid 2px black;
background-color: white;
color: black;
}
.jrg-image-upload-browse-input {
width: 275px;
}
.jrg-image-upload-by-url-input {
width: 100%;
}
.jrg-image-upload-browse-button {
border: solid 2px black;
padding: 8px 20px;
margin-left: 10px;
cursor: pointer;
color: white;
background-color: #5f5f5f;
}
.jrg-image-upload-upload-upload-button-container {
margin: 15px 0;
margin-top: 20px;
text-align: center;
}
.jrg-image-upload-upload-button {
border: solid 2px black;
padding: 8px 20px;
margin: 10px;
cursor: pointer;
color: white;
background-color: #5f5f5f;
}
.jrg-image-upload-upload-button:hover {
background-color: #141414;
}
.jrg-image-upload-drop-zone {
width: 200px;
height: 100px;
}
.jrg-image-upload-progress-bar {
display: none;
margin: 10px 0;
padding: 3px;
border: 1px solid #000;
font-size: 14px;
clear: both;
opacity: 0;
/*
-moz-transition: opacity 1s linear;
-o-transition: opacity 1s linear;
-webkit-transition: opacity 1s linear;
*/
}
.jrg-image-upload-progress-bar.loading {
display: block;
opacity: 1.0;
}
.jrg-image-upload-progress-bar.complete {
-moz-transition: opacity 2s linear 1s;
-o-transition: opacity 2s linear 1s;
-webkit-transition: opacity 2s linear 1s;
opacity: 0;
display: none;
}
.jrg-image-upload-progress-bar .percent {
display: block;
background-color: #99ccff;
height: auto;
width: 0;
}
.jrg-image-upload-progress-bar-inner {
background-color: black;
}
/* picture preview & crop */
.jrg-image-upload-picture-container {
position: relative;
margin: 0 auto;
/*z-index:3;*/
/* put on top of upload input since need to be able to also click "crop" image button UPDATE: this won't work; the input is the native file upload; can't replace it with a click.. just have to change the height of it so it stops right above the crop button */
}
.jrg-image-upload-picture-container-below {
z-index: 3;
/* put on top of upload input since need to be able to click "crop" button */
position: relative;
margin: 0 auto;
}
.jrg-image-upload-picture-crop-container {
position: relative;
z-index: 3;
/* put on top of upload input */
margin: 0 auto;
}
.jrg-image-upload-picture-container-img-outer {
margin: 0 auto;
position: relative;
}
.jrg-image-upload-picture-container-img {
position: relative;
margin: 0 auto;
cursor: pointer;
width: 100%;
height: 100%;
}
.jrg-image-upload-picture-container-img-crop {
position: absolute;
cursor: pointer;
width: 100%;
height: 100%;
left: 0;
top: 0;
}
.jrg-image-upload-picture-container-text {
text-align: center;
}
.jrg-image-upload-picture-crop-div {
position: absolute;
/*bottom:4px;*/
top: -38px;
left: 0;
right: 0;
cursor: pointer;
text-align: center;
background: #787878 transparent;
background: rgba(120, 120, 120, 0.6);
}
.jrg-image-upload-picture-crop-bottom-div {
text-align: center;
padding-top: 3px;
}
.jrg-image-upload-picture-crop-button {
cursor: pointer;
padding: 2px 5px;
margin-left: 5px;
margin-right: 5px;
font-size: 12pt;
display: inline-block;
margin-top: 10px;
}
.jrg-image-upload-picture-crop-container {
text-align: center;
}
.jrg-image-upload-picture-container-divs {
font-size: 12pt;
position: absolute;
/*z-index:275;*/
z-index: 2000;
background-color: #f5f5f5;
padding: 5px;
width: 350px;
height: 200px;
color: black;
/*
overflow:auto;
*/
}