Styling ul.imageswq
[enc-static.git] / css / main.css
1 /* Eric Meyer's Reset CSS */
2 html, body, div, span, applet, object, iframe,
3 h1, h2, h3, h4, h5, h6, p, blockquote, pre,
4 a, abbr, acronym, address, big, cite, code,
5 del, dfn, em, img, ins, kbd, q, s, samp,
6 small, strike, strong, sub, sup, tt, var,
7 b, u, i, center,
8 dl, dt, dd, ol, ul, li,
9 fieldset, form, label, legend,
10 table, caption, tbody, tfoot, thead, tr, th, td,
11 article, aside, canvas, details, embed,
12 figure, figcaption, footer, header, hgroup,
13 menu, nav, output, ruby, section, summary, main,
14 time, mark, audio, video {
15 margin: 0;
16 padding: 0;
17 border: 0;
18 font-size: 100%;
19 font: inherit;
20 vertical-align: baseline;
21 }
22
23 body {
24 line-height: 1;
25 }
26
27 ol, ul {
28 list-style: none;
29 }
30
31 blockquote, q {
32 quotes: none;
33 }
34
35 blockquote:before, blockquote:after,
36 q:before, q:after {
37 content: '';
38 content: none;
39 }
40
41 table {
42 border-collapse: collapse;
43 border-spacing: 0;
44 }
45
46 /*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */
47
48 html,
49 button,
50 input,
51 select,
52 textarea {
53 color: #222;
54 }
55
56 html {
57 font-size: 1em;
58 line-height: 1.4;
59 }
60
61 ::-moz-selection {
62 background: #b3d4fc;
63 text-shadow: none;
64 }
65
66 hr {
67 display: block;
68 height: 1px;
69 border: 0;
70 border-top: 1px solid #ccc;
71 margin: 1em 0;
72 padding: 0;
73 }
74
75 audio,
76 canvas,
77 img,
78 video {
79 vertical-align: middle;
80 }
81
82 fieldset {
83 border: 0;
84 margin: 0;
85 padding: 0;
86 }
87
88 textarea {
89 resize: vertical;
90 }
91
92
93 /* ==========================================================================
94 Author's custom styles
95 ========================================================================== */
96
97 /* Typography
98 */
99
100
101 @font-face {
102 font-family: 'Dosis';
103 src: local('Dosis'), url('../fonts/Dosis/Dosis-ExtraLight.ttf') format('truetype');
104 }
105
106 @font-face {
107 font-family: 'Dosis EBold';
108 src: local('Dosis EBold'), url('../fonts/Dosis/Dosis-ExtraBold.ttf') format('truetype');
109 }
110
111
112 @font-face {
113 font-family: 'Signika Light';
114 src: local('Signika Light'), url('../fonts/Signika/Signika-Light.ttf') format('truetype');
115 }
116
117 @font-face {
118 font-family: 'Signika Semmibold';
119 src: local('Signika Semmibold'), url('../fonts/Signika/Signika-Semibold.ttf') format('truetype');
120 }
121
122
123 body {
124 font-family: 'Signika Light', 'DejaVu Sans', Arial, sans-serif;
125 font-size: 1.25em;
126 line-height: 1.4;
127 }
128
129 h1 { font-size: 2.75em; font-family: 'Dosis'; }
130 h2 { font-size: 2.75em; font-family: 'Dosis'; }
131 h3 { font-size: 1.625em; font-family: 'Dosis'; }
132 h4 { font-size: 1.375em; font-family: 'Dosis EBold'; color: #4d4d4d; }
133 h5 { font-size: 1.25em; font-family: 'Dosis EBold'; color: #4d4d4d; }
134 h6 { font-size: 1.125em; font-family: 'Dosis EBold'; color: #4d4d4d; }
135
136 h1, h2, h3, h4, h5, h6 {
137 line-height: 1.2;
138 text-transform: uppercase;
139 letter-spacing: 1px;
140 }
141
142 ul.os a.current,
143 .main dt,
144 .troubleshooting dt,
145 strong {
146 font-family: 'Signika Semmibold';
147 color: #4d4d4d;
148 }
149
150 .main > h3 em,
151 .troubleshooting h4,
152 input[type='submit'],
153 input[type='reset'] {
154 font-family: 'Dosis EBold';
155 }
156
157 .step .main p,
158 .step .main ul {
159 font-size: .85em;
160 }
161
162 .nav,
163 #footer,
164 .troubleshooting h4,
165 .main p.highlight,
166 small {
167 font-size: 0.75em;
168 }
169
170 .troubleshooting dl {
171 font-size: 0.85em;
172 }
173
174 #header .intro {
175 font-size: 1.1em;
176 }
177
178 #header .intro > #infographic {
179 font-size: .75em;
180 }
181
182 #header #fsf-intro {
183 font-size: .7em;
184 }
185
186
187
188 /* Colours
189 */
190
191 body {
192 background: #f4eed7;
193 }
194
195 a,
196 a > img + strong {
197 color: #2f5faa;
198 text-decoration: none;
199 }
200
201 a:hover, a:focus,
202 a:hover > img + strong,
203 a:focus > img + strong {
204 color: #0e3878;
205 }
206
207 /* Guide Sections Background */
208 /* Blue*/
209 #section1,
210 #section3,
211 #section5,
212 #footer { background: #dcdfe5; }
213
214
215 /* Yellow */
216 #section2,
217 #section4,
218 #section6 { background: #f4eed7; }
219
220
221 /* Layout
222 */
223
224 .row:before, .row:after {
225 content: " ";
226 display: table;
227 }
228
229 *, *:before, *:after {
230 -moz-box-sizing: border-box;
231 }
232
233 .row:after {
234 clear: both;
235 }
236
237 .row {
238 margin: 0;
239 padding: 2em 0;
240 }
241
242 .row > div {
243 width: 96%;
244 margin: 0 auto;
245 padding: .5em 0;
246 }
247
248 .nav > div {
249 width: 96%;
250 margin: 0 auto;
251 }
252
253 .nav li {
254 text-transform: uppercase;
255 display: inline-block;
256 }
257
258 .nav li a {
259 display: block;
260 padding: .5em;
261 }
262
263 /* Header
264 */
265
266 #header > div {
267 width: 96%;
268 clear: both;
269 margin: 0 auto;
270 padding: 0 0 1em;
271 }
272
273 #header h1 {
274 line-height: 1;
275 }
276
277 #header ul.os {
278 line-height: 1;
279 margin: .5em 0 2em;
280 padding: 0 0 .25em;
281 border-bottom: 1px solid #94b3e2;
282 }
283
284 #header ul.os li {
285 text-transform: uppercase;
286 display: inline-block;
287 }
288
289 #header ul.os li a {
290 display: block;
291 padding: .25em;
292 }
293
294 #header #infographic {
295 background: #fff;
296 border-radius: 3px;
297 margin-bottom: 0;
298 }
299
300 #header #infographic a {
301 display: block;
302 margin: .5em;
303 }
304
305 #header #infographic img {
306 display: block;
307 width: 100%;
308 }
309
310 #header > div > .intro p {
311 margin: 0 0 0.75em;
312 }
313
314 .section-intro {
315 padding-bottom: 1.5em;
316 border-bottom: 1px solid #5f8dd3;
317 margin-bottom: 2em;
318 }
319
320 .section-intro p {
321 margin: 0.5em 3.5em;
322 }
323
324 .section-intro h2,
325 .sidebar h2 {
326 margin: 0 0 .5em;
327 }
328
329 .section-intro h2 {
330 text-align: center;
331 }
332
333 .section-intro h2 em,
334 .sidebar h2 em {
335 color: #94b3e2;
336 }
337
338 .step {
339 padding: .5em 0;
340 }
341
342 .intro p,
343 .main p {
344 margin: 0.5em 0;
345 }
346
347 .main p:first-child { margin: 0 0 0.5em ; }
348
349 .main h3 {
350 margin: 1em 0 0.5em;
351 padding-left:.5em;
352 border-left: 8px solid #ff9b12;
353 }
354
355 .main h3:first-child { margin: 0 0 0.5em; }
356
357 .main > h3 em {
358 color: #94b3e2;
359 display: block;
360 }
361
362 .main,
363 .sidebar {
364 margin: 1em 0 0.5em;
365 }
366
367 .main ul li {
368 margin: .5em 0;
369 }
370
371 /* Images inside .main
372 */
373
374 .main ul.images:before, .main ul.images:after {
375 content: " ";
376 display: table;
377 }
378
379 .main ul.images:after {
380 clear: both;
381 }
382
383 .main ul.images {
384 padding: 0.5em 0;
385 }
386
387
388 /* Troubleshooting panel
389 */
390
391 .troubleshooting {
392 margin-top: .8em;
393 }
394
395 .troubleshooting > h4 {
396 display: inline-block;
397 cursor: pointer;
398 letter-spacing: 2px;
399 padding: .25em .5em;
400 color: #2f5faa;
401 opacity: .5;
402 border: 1px solid #5f8dd3;
403 border-radius: 3px;
404 }
405
406 .troubleshooting > h4:hover,
407 .troubleshooting > h4.expanded {
408 opacity: 1;
409 }
410
411 .troubleshooting > h4.expanded {
412 border-bottom: 0;
413 border-radius: 3px 3px 0 0;
414 }
415
416
417 .troubleshooting > h4:after {
418 content:' â–¾';
419 display: inline-block;
420 line-height: 1;
421 padding: 0 0.2em;
422 vertical-align: top;
423 }
424
425 .troubleshooting > h4.expanded:after {
426 content:' â–´';
427 display: inline-block;
428 line-height: 1;
429 padding: 0 0.2em;
430 vertical-align: top;
431 }
432
433 .troubleshooting dl {
434 display: none;
435 padding: .5em;
436 border: 1px solid #5f8dd3;
437 border-radius: 0 3px 3px;
438 }
439
440 .main dt,
441 .troubleshooting dt {
442 margin-top: 1em;
443 }
444
445 .main dt:first-child,
446 .troubleshooting dt:first-child {
447 margin-top: 0;
448 }
449
450 .troubleshooting dt.feedback,
451 .troubleshooting dd.feedback {
452 display: inline-block;
453 }
454
455 /* Form elements: newsletter + pgp pathfinder
456 */
457
458 input {
459 -webkit-transition: all 0.1s linear;
460 -moz-transition: all 0.1s linear;
461 -o-transition: all 0.1s linear;
462 transition: all 0.1s linear;
463 }
464
465 input[type='text'],
466 input[type='submit'],
467 input[type='reset'] {
468 line-height: 1;
469 vertical-align: bottom;
470 }
471
472 input[type='text'] {
473 border: none;
474 border-radius: 3px;
475 border: .1em solid #5f8dd3;
476 padding: .2em .65em;
477 background: #fff;
478 color: #666;
479 }
480
481 input[type='text']:focus,
482 input[type='text']:hover {
483 border-color: #2f5faa;
484 outline: none;
485 color: #333333;
486 }
487
488 input[type='submit'],
489 input[type='reset'] {
490 border: none;
491 cursor: pointer;
492 text-transform: uppercase;
493 letter-spacing: 2px;
494 color: #fff;
495 padding: .5em 1em;
496 border-radius: 3px;
497 background-color: #5f8dd3;
498 }
499
500 input[type='submit']:focus,
501 input[type='submit']:hover,
502 input[type='reset']:focus,
503 input[type='reset']:hover {
504 background-color: #2f5faa;
505 outline: none;
506 }
507
508 /* FSF Introduction, before the header + Newsletter form
509 */
510
511 #fsf-intro h3,
512 #fsf-intro p {
513 margin-bottom: 1em;
514 }
515
516 .newsletter input[type='text'],
517 .newsletter input[type='submit'] {
518 font-size: .75em;
519 }
520
521 .newsletter input[type='text'] {
522 height: 3em;
523 width: 16em;
524 padding: .2em .65em;
525 }
526
527 .newsletter input[type='submit'] {
528 height: 3.1em;
529 padding: .5em 1em;
530 margin-left: 5px;
531 background-color: #5f8dd3;
532 }
533
534 #fsf-intro .newsletter form + p {
535 margin: .25em 0 0;
536 }
537
538 /* PGP pathfinder
539 */
540
541 #pgp-pathfinder {
542 background: #fff;
543 border: 1px solid #94b3e2;
544 border-radius: 3px;
545 }
546
547 #pgp-pathfinder form {
548 margin: 1em;
549 }
550
551 #pgp-pathfinder strong {
552 display: inline-block;
553 width: 4em;
554 }
555
556 #pgp-pathfinder input {
557 font-size: .75em;
558 }
559
560 #pgp-pathfinder input[type='text'] {
561 height: 3em;
562 width: 22em;
563 padding: .2em .65em;
564 }
565
566 #pgp-pathfinder input[type='submit'],
567 #pgp-pathfinder input[type='reset'] {
568 padding: .5em 1em;
569 margin-left: 5px;
570 background-color: #5f8dd3;
571 }
572
573 #pgp-pathfinder .buttons {
574 margin-left: 4em;
575 }
576
577 /* Footer
578 */
579
580 #footer h4 {
581 margin-bottom: .75em;
582 }
583
584 #footer .credits {
585 border-top: 1px solid #94b3e2;
586 margin-top: 1em;
587 padding-top: .5em;
588 }
589
590
591 /* ==========================================================================
592 Media Queries
593 ========================================================================== */
594
595 @media only screen and (min-width: 400px) {
596
597 }
598
599 @media only screen and (min-width: 400px) and (max-width: 599px) {
600
601 .row > div,
602 .nav > div,
603 #header > div {
604 width: 92%;
605 margin: 0 auto;
606 }
607
608 #header #fsf-intro {
609 margin-bottom: 1em;
610 padding-bottom: 1em;
611 border-bottom: 1px solid #ff9b12;
612 }
613
614 #header .intro {
615 font-size: 1em;
616 }
617
618 #header #infographic {
619 margin-bottom: 1.5em;
620 }
621
622 #header #infographic a {
623 height: 200px;
624 overflow: hidden;
625 }
626
627 .section-intro p {
628 margin: 0.5em 0;
629 }
630
631 }
632
633
634 @media only screen and (min-width: 600px) {}
635
636 @media only screen and (min-width: 600px) and (max-width: 899px) {
637
638 #header .intro {
639 float: right;
640 width: 100%;
641 margin-right: 02.22%;
642 }
643
644 #header #fsf-intro {
645 float: left;
646 width: 100%;
647 padding-left: 02.22%;
648 border-left: 8px solid #ff9b12;
649 }
650
651 }
652
653 @media only screen and (min-width: 900px) {
654
655 .row > div,
656 .nav > div,
657 #header > div {
658 width: 86%;
659 }
660
661 .nav > div {
662 overflow: hidden;
663 position: relative;
664 padding: 0.35em 0 0;
665 }
666
667 .nav ul.lang {
668 margin: 0 0 0 0.5em;
669 }
670
671 #header h1 {
672 font-size: 6em;
673 text-align: center;
674 }
675
676 #header ul.os {
677 text-align: center;
678 }
679
680 #header .intro {
681 float: left;
682 width: 68.75%;
683 margin-right: 1.72%;
684 }
685
686 #header #infographic {
687 float: left;
688 width: 30.58%;
689 margin-right: 1.72%;
690 }
691
692 #header #fsf-intro {
693 float: right;
694 width: 29.52%;
695 padding-left: 1.72%;
696 border-left: 8px solid #ff9b12;
697 }
698
699 .row > div,
700 #header > div,
701 .row > div .section-intro,
702 .row > div .step,
703 #footer > div {
704 overflow: hidden;
705 }
706
707 .row .sidebar { /* 3 columns 125px + 20px margins*/
708 float: left;
709 clear: left;
710 width: 34.05%;
711 }
712
713 .row .main { /* 5 columns 125px + 100px margins*/
714 float: right;
715 width: 62.5%;
716 margin-left: 1.72%;
717 }
718
719 .sidebar ul.images li {
720 display: inline-block;
721 float: left;
722 width: 47%;
723 margin: 0 3% 1em 0;
724 }
725
726 .sidebar ul.images li:nth-child(n) {
727 margin: 0 0 0 3%;
728 }
729
730 .sidebar ul.images li:nth-child(2n+1) {
731 clear: left;
732 margin: 0 3% 1em 0;
733 }
734
735 .sidebar ul.images li > img {
736 width: 100%;
737 height: auto;
738 }
739
740 .row .sidebar > p > img {
741 width: 80%;
742 height: auto;
743 }
744
745
746
747 }
748
749