fa4d395d32f55e8c76cc8a1c33f9ef2f0d88ecec
[yuu.git] / src / main.css
1 @font-face {
2 font-family: 'Fira Sans';
3 font-style: normal;
4 font-weight: 300;
5 src: local('Fira Sans OT Light'), local('Fira Sans Light'), url(FiraSans-Light.woff) format('woff');
6 }
7
8 @font-face {
9 font-family: 'Fira Sans';
10 font-style: italic;
11 font-weight: 300;
12 src: local('Fira Sans OT Light Italic'), local('Fira Sans Light Italic'), url(FiraSans-LightItalic.woff) format('woff');
13 }
14
15 @font-face {
16 font-family: 'Fira Sans';
17 font-style: normal;
18 font-weight: 400;
19 src: local('Fira Sans OT'), local('Fira Sans'), url(FiraSans-Regular.woff) format('woff');
20 }
21
22 @font-face {
23 font-family: 'Fira Sans';
24 font-style: normal;
25 font-weight: 700;
26 src: local('Fira Sans OT Bold'), local('Fira Sans Bold'), url(FiraSans-Bold.woff) format('woff');
27 }
28
29 @font-face {
30 font-family: 'Fira Sans';
31 font-style: italic;
32 font-weight: 400;
33 src: local('Fira Sans OT Italic'), local('Fira Sans Italic'), url(FiraSans-Italic.woff) format('woff');
34 }
35
36 @font-face {
37 font-family: 'Fira Sans';
38 font-style: italic;
39 font-weight: 700;
40 src: local('Fira Sans OT Bold Italic'), local('Fira Sans Bold Italic'), url(FiraSans-BoldItalic.woff) format('woff');
41 }
42
43 @font-face {
44 font-family: 'Fira Mono';
45 font-style: normal;
46 font-weight: 400;
47 src: local('Fira Mono OT'), local('Fira Mono'), url(FiraMono-Regular.woff) format('woff');
48 }
49
50 @font-face {
51 font-family: 'Fira Mono';
52 font-style: normal;
53 font-weight: 700;
54 src: local('Fira Mono OT Bold'), local('Fira Mono Bold'), url(FiraMono-Bold.woff) format('woff');
55 }
56
57 * {
58 padding: 0;
59 margin: 0;
60 font-weight: normal;
61 text-decoration: none;
62 }
63
64 header * {
65 outline: none;
66 }
67
68 strong { font-weight: bold; }
69 em { font-style: italic; }
70
71 a:link, [onclick] {
72 text-decoration: underline;
73 cursor: pointer;
74 }
75
76 html {
77 font-family: "Fira Sans", sans-serif;
78 font-size: 16px;
79 background-color: rgb(226, 192, 242);
80 background-image: linear-gradient(rgb(226, 192, 242), rgb(244, 199, 199) 100%);
81 background-attachment: fixed;
82 padding: 0 1em;
83 height: 100%;
84 background-repeat: no-repeat;
85 }
86
87 body {
88 border-top: solid rgb(206, 132, 242) 0.75em;
89 border-bottom: solid rgb(244, 126, 126) 0.75em;
90 border-radius: 2em;
91 margin: 0.25em auto;
92 color: black;
93 background-color: white;
94 max-width: 56em;
95 padding: 0 1em;
96 }
97
98 header {
99 border-top: solid rgb(206, 132, 242) 0.5em;
100 border-bottom: solid rgb(244, 126, 126) 0.5em;
101 border-radius: 2em;
102 height: 6em;
103 transition: border-color 0.5s;
104 white-space: nowrap;
105 text-align: right;
106 margin: 0 -1em;
107 margin-top: -0.75em;
108 background-color: white;
109 }
110
111 header img {
112 float: left;
113 height: 100%;
114 width: auto;
115 }
116
117 header h1 {
118 font-size: 3em;
119 font-weight: normal;
120 margin-right: 0.25em;
121 display: inline-block;
122 height: 100%;
123 line-height: 2em;
124 }
125
126 header:hover {
127 border-top-color: rgb(244, 126, 126);
128 border-bottom-color: rgb(206, 132, 242);
129 }
130
131 img.logo {
132 -webkit-transition: -webkit-transform 1.5s;
133 transition: transform 1.5s;
134 -webkit-transition-delay: 0.5s;
135 transition-delay: 0.5s;
136 -webkit-transition-timing-function: cubic-bezier(0.4, 0.2, 0.5, 1.3);
137 transition-timing-function: cubic-bezier(0.4, 0.2, 0.5, 1.3);
138 }
139
140 img.logo:hover {
141 -webkit-transform: rotate(360deg);
142 transform: rotate(360deg);
143 }
144
145 h2 {
146 border-top: solid rgb(206, 132, 242) 1px;
147 border-left: solid rgb(206, 132, 242) 1px;
148 border-radius: 1em 0 0 1em;
149 font-size: 1.25em;
150 font-weight: 300;
151 margin-left: -0.67em;
152 margin-right: -0.67em;
153 margin-top: 1.5em;
154 margin-bottom: 0.5em;
155 padding-left: 0.5em;
156 padding-top: 0.125em;
157 }
158
159 h3 {
160 border-top: solid rgb(206, 132, 242) 1px;
161 border-left: solid rgb(206, 132, 242) 1px;
162 border-radius: 1.5em;
163 display: inline-block;
164 font-size: 1.125em;
165 font-weight: 300;
166 margin-bottom: 0;
167 margin-left: -0.445em;
168 padding-left: 0.67em;
169 padding-right: 0.67em;
170 }
171
172 a:link, [onclick] {
173 color: rgb(206, 132, 242);
174 transition: color 0.3s;
175 }
176
177 a:visited {
178 color: rgb(206, 132, 242);
179 }
180
181 a:hover, [onclick]:hover {
182 color: rgb(244, 126, 126);
183 }
184
185 main {
186 display: block;
187 padding: 1em;
188 max-width: 50em;
189 margin: auto;
190 }
191
192 main > *:first-child {
193 margin-top: 0;
194 }
195
196 p, li {
197 line-height: 125%;
198 }
199
200 main > p {
201 max-width: 45em;
202 margin: 1em auto;
203 }
204
205 main > ul {
206 max-width: 40em;
207 margin: 1em auto;
208 }
209
210 main > ul > li {
211 margin: 0.5em auto;
212 }
213
214 hr {
215 margin-top: 0;
216 margin-bottom: 1em;
217 border-bottom: solid rgb(206, 132, 242) 1px;
218 height: 2em;
219 }
220
221 .highlight {
222 border-bottom: solid rgb(206, 132, 242) 0.125em;
223 border-top: solid rgb(206, 132, 242) 0.125em;
224 border-radius: 1em;
225 font-weight: 300;
226 padding: 1em 3em;
227 transition: border-radius 0.3s;
228 box-sizing: border-box;
229 }
230
231 .highlight:hover {
232 border-radius: 3em;
233 }
234
235 .game-preview {
236 padding: 0;
237 text-align: center;
238 width: 100%;
239 max-width: 37em;
240 margin: auto;
241 list-style-type: none;
242 }
243
244 .game-preview > li {
245 position: relative;
246 border: solid rgb(206, 132, 242) 1px;
247 margin-bottom: 1.5em;
248 margin-top: 1em;
249 margin-left: 2.5em;
250 border-left-width: 0;
251 height: 8em;
252 transition: border-radius 0.3s, border-color 0.3s;
253 padding-left: 4em;
254 box-sizing: border-box;
255 border-radius: 0 3em 3em 0;
256 }
257
258 .game-preview > li:nth-child(even) {
259 padding-left: 0;
260 padding-right: 4em;
261 margin-right: 2.5em;
262 margin-left: 0;
263 border-left-width: 1px;
264 border-right-width: 0;
265 border-radius: 3em 0 0 3em;
266 }
267
268 .game-preview > li:hover {
269 border-radius: 0 0.25em 0.25em 0;
270 border-color: rgb(244, 126, 126);
271 }
272
273 .game-preview > li img {
274 border: solid rgb(206, 132, 242) 1px;
275 position: absolute;
276 border-radius: 50%;
277 top: -1px;
278 left: -4em;
279 height: 8em;
280 width: 8em;
281 opacity: 0.75;
282 transition: border-radius 0.3s, border-color 0.3s, opacity 0.3s;
283 box-sizing: border-box;
284 }
285
286 .game-preview > li:nth-child(even) img {
287 left: auto;
288 right: -4em;
289 }
290
291 .game-preview > li:hover img {
292 border-radius: 0;
293 border-color: rgb(244, 126, 126);
294 opacity: 1.0;
295 }
296
297 .game-preview .info {
298 position: relative;
299 height: 100%;
300 }
301
302 .game-preview .info h4 {
303 color: inherit;
304 font-style: italic;
305 padding-left: 0.125em;
306 padding-right: 0.125em;
307 text-decoration: none;
308 text-align: center;
309 box-sizing: border-box;
310 padding-top: 0.25em;
311 font-size: 1.125em;
312 }
313
314 .game-preview li:nth-child(odd) .info h4,
315 .game-preview li:nth-child(odd) .info ul {
316 margin-right: 6.5rem;
317 }
318
319 .game-preview li:nth-child(even) .info h4,
320 .game-preview li:nth-child(even) .info ul {
321 margin-right: 0em;
322 margin-left: 6.5rem;
323 }
324
325 h4 a:link {
326 text-decoration: none;
327 }
328
329 .game-preview .info p {
330 padding: 0.25em;
331 text-align: center;
332 position: absolute;
333 left: 0;
334 right: 0;
335 top: 50%;
336 transform: translateY(-50%);
337 -webkit-transform: translateY(-50%);
338 margin-top: 0.125em;
339 }
340
341 .game-preview .info ul {
342 bottom: 0.25em;
343 font-size: 0.75em;
344 position: absolute;
345 right: 0.125em;
346 left: 0.125em;
347 text-align: center;
348 list-style-type: none;
349 }
350
351 .game-preview .info li {
352 white-space: nowrap;
353 }
354
355 .game-preview .info li a:link {
356 text-decoration: none;
357 font-weight: inherit;
358 }
359
360 .game-preview .info li:before {
361 content: ' ~ ';
362 }
363
364 .game-preview .info li:first-child:before {
365 content: '';
366 }
367
368 .game-preview .info li {
369 display: inline;
370 font-weight: 300;
371 }
372
373 ul.download {
374 border-radius: 1em;
375 border: solid rgb(206, 132, 242) 0.125em;
376 font-weight: 300;
377 padding: 0.5em;
378 margin: 1em auto;
379 transition: border-radius 0.3s, border-color 0.3s;
380 white-space: nowrap;
381 display: table;
382 }
383
384 ul.download:hover {
385 border-radius: 4px;
386 border-color: rgb(244, 126, 126);
387 }
388
389 ul.download li {
390 list-style-type: none;
391 font-size: 1.25em;
392 margin-bottom: 0.8em;
393 text-align: center;
394 }
395
396 ul.download li a {
397 text-decoration: none;
398 }
399
400 ul.download li.sh {
401 margin-bottom: 0;
402 font-size: 0.75em;
403 font-family: "Fira Mono", monospace;
404 text-align: left;
405 }
406
407 ul.download li:last-child {
408 margin-bottom: 0;
409 }
410
411 .sh:before {
412 content: "$ ";
413 }
414
415 input {
416 font-family: inherit;
417 font-size: 1em;
418 }
419
420 .copyright {
421 margin: auto;
422 text-align: justify;
423 width: 75%;
424 font-size: 0.875em;
425 font-weight: 400;
426 }
427
428 .copyright > p {
429 font-size: 0.875em;
430 font-weight: 300;
431 }
432
433 .copyright:before {
434 content: "Copyright ©";
435 }
436
437 #yuu-canvas {
438 margin: 1em auto;
439 width: 100%;
440 height: 20em;
441 position: static;
442 border: solid rgba(206, 132, 242, 0.5) 2px;
443 border-radius: 2em;
444 }
445
446 pre {
447 border-left: solid rgba(206, 132, 242, 0.5) 8px;
448 border-radius: 8px;
449 font-family: "Fira Mono", monospace;
450 overflow: auto;
451 padding-left: 2em;
452 padding: 0.5em;
453 max-width: 40em;
454 margin: auto;
455 transition: background-color 0.3s, border-color 0.3s, border-radius 0.3s;
456 }
457
458 pre:hover {
459 background-color: rgba(206, 132, 242, 0.125);
460 border-color: rgb(206, 132, 242);
461 border-radius: 16px;
462 }
463
464 code {
465 font-family: "Fira Mono", monospace;
466 transition: background-color 0.3s;
467 }
468
469 code:hover {
470 background-color: rgba(206, 132, 242, 0.125);
471 }
472
473 pre code:hover {
474 background-color: transparent;
475 }
476
477 footer {
478 font-weight: 300;
479 text-align: center;
480 font-size: 0.75em;
481 }
482
483 footer a:link {
484 display: inline-block;
485 margin: 0 1em;
486 text-decoration: none;
487 }
488
489 @media (max-width: 767px) {
490 html { font-size: 13px; }
491
492 .optional {
493 display: none;
494 }
495
496 ul.download li.sh:before {
497 content: "";
498 }
499
500 pre {
501 font-size: 0.875em;
502 }
503 }
504
505 @media (max-width: 479px) {
506 html { font-size: 10px; padding: 0 0.5em; }
507 h4 { font-size: 1em; }
508 }
509
510 body {
511 background-color: white;
512 overflow: auto;
513 }
514
515 .yuu-toast {
516 background-color: transparent;
517 border: solid rgba(206, 132, 242, 0.5) 2px;
518 color: inherit;
519 }
520
521 .yuu-overlay {
522 background-color: transparent;
523 border: solid rgb(244, 126, 126) 2px;
524 color: inherit;
525 position: static;
526 transform: none;
527 }