forked from mozilla/gameon
/
home.css
277 lines (273 loc) · 7.04 KB
/
home.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
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
@-webkit-keyframes float {
from { background-position: 0 95%; }
50% { background-position: 0 105%; }
to { background-position: 0 95%; }
}
@-webkit-keyframes shadow {
from { -webkit-transform: scale(0.85,0.85) }
50% { -webkit-transform: none; }
to { -webkit-transform: scale(0.85,0.85) }
}
@-moz-keyframes float {
from { background-position: 0 95%; }
50% { background-position: 0 105%; }
to { background-position: 0 95%; }
}
@-moz-keyframes shadow {
from { -moz-transform: scale(0.85,0.85) }
50% { -moz-transform: none; }
to { -moz-transform: scale(0.85,0.85) }
}
@keyframes float {
from { background-position: 0 95%; }
50% { background-position: 0 105%; }
to { background-position: 0 95%; }
}
@keyframes shadow {
from { transform: scale(0.85,0.85) }
50% { transform: none; }
to { transform: scale(0.85,0.85) }
}
.big-picture {
background: #000a14; /* Old browsers */
background: -moz-linear-gradient(left, #000a14 0%, #00283a 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, right top, color-stop(0%,#000a14), color-stop(100%,#00283a)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(left, #000a14 0%,#00283a 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(left, #000a14 0%,#00283a 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(left, #000a14 0%,#00283a 100%); /* IE10+ */
background: linear-gradient(to right, #000a14 0%,#00283a 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#000a14', endColorstr='#00283a',GradientType=1 ); /* IE6-9 */
color: #fff;
}
div[role=main] .big-picture .busta {
padding: 2em 30px 2em 360px;
background: url('/static/base/img/home/big-picture.png') 0 100% no-repeat;
position: relative;
-webkit-animation: float 3s infinite;
-moz-animation: float 3s infinite;
animation: float 3s infinite;
}
.big-picture .busta > i {
content: "";
width: 305px;
height: 115px;
position: absolute;
left: 0;
bottom: 0;
background: url('/static/base/img/home/big-picture-shadow.png') 50% 100% no-repeat;
background-size: cover;
-webkit-transform-origin: 50% 100%;
-moz-transform-origin: 50% 100%;
transform-origin: 50% 100%;
-webkit-animation: shadow 3s infinite;
-moz-animation: shadow 3s infinite;
animation: shadow 3s infinite;
}
.big-picture .shout {
margin: 0.6em 0;
}
.build {
padding: 1em;
}
.build ul {
overflow: hidden;
padding-left: 0;
margin-left: -2%;
list-style-type: none;
}
.build li {
float: left;
width: 23%;
margin-left: 2%;
padding-top: 150px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
position: relative;
}
.build li:before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 140px;
background: #ebebeb 50% 50% no-repeat;
border-radius: 4px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
border: 1px inset rgba(255,255,255,0.5);
display: block;
}
.build li.make:before {
background-image: url('/static/base/img/home/panel-make.png');
}
.build li.invent:before {
background-image: url('/static/base/img/home/panel-invent.png');
}
.build li.win:before {
background-image: url('/static/base/img/home/panel-win.png');
}
.build li.market:before {
background-image: url('/static/base/img/home/panel-market.png');
}
.participate {
background: #37d09e;
font-size: 13px;
position: relative;
}
.participate::before {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 15px;
background: -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,0.33)), to(rgba(0,0,0,0)));
background: -webkit-linear-gradient(top, rgba(0,0,0,0.33), rgba(0,0,0,0));
background: -moz-linear-gradient(top, rgba(0,0,0,0.33), rgba(0,0,0,0));
background: linear-gradient(top, rgba(0,0,0,0.33), rgba(0,0,0,0));
}
.participate .busta {
padding: 100px 5em 0;
background: url('/static/base/img/home/participate.png') 100% 0 no-repeat;
}
.participate .exclaim {
color: #37d09e;
margin-top: 0;
}
.participate .wrapper {
display: table;
border-spacing: 20px;
margin-bottom: 12em;
height: 100%;
}
.participate article {
width: 50%;
display: table-cell;
position: relative;
height: 100%;
}
.participate article ul {
margin: 0;
}
.participate article p {
margin: 1em 0 0;
}
.participate article li {
margin: 1em 0 0;
padding: 0 0 0 34px;
}
.participate article .inner {
display: table;
height: 100%;
border-spacing: 0;
position: relative;
padding: 40px;
background: rgba(00, 40, 58, 0.8);
border-radius: 16px 16px 0 0;
color: #FFF;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.participate .vevent {
padding-bottom: 0.5em;
margin-bottom: 0.5em;
}
.participate .vevent h4 {
margin: 0.5em 0 0;
}
.participate .vevent p {
margin: 0;
}
.participate article footer {
padding: 30px 40px;
border-radius: 0 0 16px 16px;
background: #00283a;
position: absolute;
top: 100%;
left: 0;
width: 100%;
min-height: 3.5em;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.participate .submit_now footer {
padding-left: 100px;
background-image: url('/static/base/img/css/clock.png');
background-repeat: no-repeat;
background-position: 30px 30px;
}
/* so that the bottom section merges with the footer */
#home div[role=main] {
padding-bottom: 0;
}
#home .site-footer {
margin-top: 0;
}
@media all and (max-width: 800px) {
div[role=main] .big-picture .busta {
background-image: none;
-webkit-animation: none;
-moz-animation: none;
animation: none;
padding: 2em 30px;
}
.big-picture .busta > i {
display: none;
-webkit-animation: none;
-moz-animation: none;
animation: none;
}
.participate .busta {
padding: 2em 0 0;
background: none;
}
}
@media all and (max-width: 640px) {
.build {
padding-left: 1em;
padding-right: 1em;
}
.build ul {
width: auto;
margin: 0 auto;
position: relative;
left: -10px;
}
.build li {
margin-bottom: 20px;
width: auto;
float: none;
padding: 5px 5px 5px 110px;
min-height: 100px;
}
.build li:before {
height: 100px;
width: 100px;
}
.participate .busta {
padding: 1.5em 1.5em 0;
}
.participate .wrapper {
display: block;
margin-bottom: 0;
}
.participate article {
width: auto;
margin: 0 0 1.5em;
display: block;
}
.participate article .inner {
display: block;
border-radius: 16px;
}
.participate article footer {
position: static;
margin: 40px -40px -40px;
width: auto;
min-height: 0;
}
}