Project

General

Profile

1
@font-face {
2
    font-weight: normal;
3
    font-style: normal;
4
    font-family: 'codropsicons';
5
    src: url('../fonts/codropsicons/codropsicons.eot');
6
    src: url('../fonts/codropsicons/codropsicons.eot?#iefix') format('embedded-opentype'), url('../fonts/codropsicons/codropsicons.woff') format('woff'), url('../fonts/codropsicons/codropsicons.ttf') format('truetype'), url('../fonts/codropsicons/codropsicons.svg#codropsicons') format('svg');
7
}
8

    
9
*,
10
*:after,
11
*:before {
12
    -webkit-box-sizing: border-box;
13
    box-sizing: border-box;
14
}
15

    
16
.clearfix:before,
17
.clearfix:after {
18
    display: table;
19
    content: '';
20
}
21

    
22
.clearfix:after {
23
    clear: both;
24
}
25

    
26
.inputfile {
27
    width: 0.1px;
28
    height: 0.1px;
29
    opacity: 0;
30
    overflow: hidden;
31
    position: absolute;
32
    z-index: -1;
33
}
34

    
35
.input-file {
36
opacity: 1;
37
overflow: hidden;
38
height: 2.625em;
39
right: 11.225em;
40
margin-top: -2.825em;
41
}
42

    
43
.js .inputfile {
44
width: 0.1px;
45
height: 0.1px;
46
opacity: 0;
47
overflow: hidden;
48
position: absolute;
49
z-index: -1;
50
}
51

    
52
.inputfile + label {
53
max-width: 80%;
54
font-size: 1.25rem;
55
/* 20px */
56
font-weight: 700;
57
text-overflow: ellipsis;
58
white-space: nowrap;
59
cursor: pointer;
60
display: inline-block;
61
overflow: hidden;
62
padding: 0.625rem 1.25rem;
63
/* 10px 20px */
64
}
65

    
66
.no-js .inputfile + label {
67
display: none;
68
}
69

    
70
.inputfile:focus + label,
71
.inputfile.has-focus + label {
72
outline: 1px dotted #000;
73
outline: -webkit-focus-ring-color auto 5px;
74
}
75

    
76
.inputfile + label * {
77
/* pointer-events: none; */
78
/* in case of FastClick lib use */
79
}
80

    
81
.inputfile + label svg {
82
width: 1em;
83
height: 1em;
84
vertical-align: middle;
85
fill: currentColor;
86
margin-top: -0.25em;
87
/* 4px */
88
margin-right: 0.25em;
89
/* 4px */
90
}
91

    
92

    
93
/* style 1 */
94

    
95
.inputfile-1 + label {
96
color: #f1e5e6;
97
background-color: #d3394c;
98
}
99

    
100
.inputfile-1:focus + label,
101
.inputfile-1.has-focus + label,
102
.inputfile-1 + label:hover {
103
background-color: #722040;
104
}
105

    
106

    
107
/* style 2 */
108

    
109
.inputfile-2 + label {
110
color: #d3394c;
111
border: 2px solid currentColor;
112
}
113

    
114
.inputfile-2:focus + label,
115
.inputfile-2.has-focus + label,
116
.inputfile-2 + label:hover {
117
color: #722040;
118
}
119

    
120

    
121
/* style 3 */
122

    
123
.inputfile-3 + label {
124
color: #d3394c;
125
}
126

    
127
.inputfile-3:focus + label,
128
.inputfile-3.has-focus + label,
129
.inputfile-3 + label:hover {
130
color: #722040;
131
}
132

    
133

    
134
/* style 4 */
135

    
136
.inputfile-4 + label {
137
color: #d3394c;
138
}
139

    
140
.inputfile-4:focus + label,
141
.inputfile-4.has-focus + label,
142
.inputfile-4 + label:hover {
143
color: #722040;
144
}
145

    
146
.inputfile-4 + label figure {
147
width: 100px;
148
height: 100px;
149
border-radius: 50%;
150
background-color: #d3394c;
151
display: block;
152
padding: 20px;
153
margin: 0 auto 10px;
154
}
155

    
156
.inputfile-4:focus + label figure,
157
.inputfile-4.has-focus + label figure,
158
.inputfile-4 + label:hover figure {
159
background-color: #722040;
160
}
161

    
162
.inputfile-4 + label svg {
163
width: 100%;
164
height: 100%;
165
fill: #f1e5e6;
166
}
167

    
168

    
169
/* style 5 */
170

    
171
.inputfile-5 + label {
172
color: #d3394c;
173
}
174

    
175
.inputfile-5:focus + label,
176
.inputfile-5.has-focus + label,
177
.inputfile-5 + label:hover {
178
color: #722040;
179
}
180

    
181
.inputfile-5 + label figure {
182
width: 100px;
183
height: 135px;
184
background-color: #d3394c;
185
display: block;
186
position: relative;
187
padding: 30px;
188
margin: 0 auto 10px;
189
}
190

    
191
.inputfile-5:focus + label figure,
192
.inputfile-5.has-focus + label figure,
193
.inputfile-5 + label:hover figure {
194
background-color: #722040;
195
}
196

    
197
.inputfile-5 + label figure::before,
198
.inputfile-5 + label figure::after {
199
width: 0;
200
height: 0;
201
content: '';
202
position: absolute;
203
top: 0;
204
right: 0;
205
}
206

    
207
.inputfile-5 + label figure::before {
208
border-top: 20px solid #dfc8ca;
209
border-left: 20px solid transparent;
210
}
211

    
212
.inputfile-5 + label figure::after {
213
border-bottom: 20px solid #722040;
214
border-right: 20px solid transparent;
215
}
216

    
217
.inputfile-5:focus + label figure::after,
218
.inputfile-5.has-focus + label figure::after,
219
.inputfile-5 + label:hover figure::after {
220
border-bottom-color: #d3394c;
221
}
222

    
223
.inputfile-5 + label svg {
224
width: 100%;
225
height: 100%;
226
fill: #f1e5e6;
227
}
228

    
229

    
230
/* style 6 */
231

    
232
.inputfile-6 + label {
233
color: #d3394c;
234
}
235

    
236
.inputfile-6 + label {
237
border: 1px solid #d3394c;
238
background-color: #f1e5e6;
239
padding: 0;
240
}
241

    
242
.inputfile-6:focus + label,
243
.inputfile-6.has-focus + label,
244
.inputfile-6 + label:hover {
245
border-color: #722040;
246
}
247

    
248
.inputfile-6 + label span,
249
.inputfile-6 + label strong {
250
padding: 0.625rem 1.25rem;
251
font-weight: normal;
252
font-size: 0.925em;
253
/* 10px 20px */
254
}
255

    
256
.inputfile-6 + label span {
257
width: 200px;
258
min-height: 2em;
259
display: inline-block;
260
text-overflow: ellipsis;
261
white-space: nowrap;
262
overflow: hidden;
263
vertical-align: top;
264
}
265

    
266
.inputfile-6 + label strong {
267
height: 100%;
268
color: #f1e5e6;
269
background-color: #d3394c;
270
display: inline-block;
271
}
272

    
273
.inputfile-6:focus + label strong,
274
.inputfile-6.has-focus + label strong,
275
.inputfile-6 + label:hover strong {
276
background-color: #722040;
277
}
278

    
279
@media screen and (max-width: 50em) {
280
.inputfile-6 + label strong {
281
display: block;
282
}
283
}
(2-2/6)