Styled infographic link in the header. Styled header in mobile version. Started styli...
[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'; margin-bottom: .5em; }
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 .nav .os a.current,
143 .main p.highlight,
144 .main dt,
145 .troubleshooting dt,
146 strong {
147 font-family: 'Signika Semmibold';
148 color: #4d4d4d;
149 }
150
151 .main > h3 em,
152 .troubleshooting h4,
153 input[type='submit'],
154 input[type='reset'] {
155 font-family: 'Dosis EBold';
156 }
157
158 .step .main p,
159 .step .main ul {
160 font-size: .85em;
161 }
162
163 .nav,
164 #footer,
165 .troubleshooting h4,
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: 1em 0;
271 }
272
273 #header h1 {
274 line-height: 1;
275 }
276
277 #header #infographic {
278 background: #fff;
279 border-radius: 3px;
280 margin-bottom: 0;
281 }
282
283 #header #infographic a {
284 display: block;
285 margin: .5em;
286 }
287
288 #header #infographic a.img-link {
289 padding-top: .5em;
290 }
291
292 #header #infographic img {
293 display: block;
294 width: 100%;
295 }
296
297 #header #infographic a.text-link {
298 padding-bottom: .5em;
299 }
300
301 #header > div > .intro p {
302 margin: 0 0 0.75em;
303 }
304
305 .section-intro {
306 padding-bottom: 1.5em;
307 border-bottom: 1px solid #5f8dd3;
308 margin-bottom: 2em:
309 }
310
311 .section-intro p {
312 margin: 0.5em 3.5em;
313 }
314
315 .section-intro h2,
316 .sidebar h2 {
317 margin: 0 0 .5em;
318 }
319
320 .section-intro h2 {
321 text-align: center;
322 }
323
324 .section-intro h2 em,
325 .sidebar h2 em {
326 color: #94b3e2;
327 }
328
329 .step {
330 padding: .5em 0;
331 }
332
333 .intro p,
334 .main p {
335 margin: 0.5em 0;
336 }
337
338 .main p:first-child { margin: 0 0 0.5em ; }
339
340 .main h3 {
341 margin: 1em 0 0.5em;
342 padding-left:.5em;
343 border-left: 8px solid #ff9b12;
344 }
345
346 .main h3:first-child { margin: 0 0 0.5em; }
347
348 .main > h3 em {
349 color: #94b3e2;
350 display: block;
351 }
352
353 .main,
354 .sidebar {
355 margin: 1em 0 0.5em;
356 }
357
358 .main ul li {
359 margin: .5em 0;
360 }
361
362 /* Images inside .main
363 */
364
365 .main ul.images:before, .main ul.images:after {
366 content: " ";
367 display: table;
368 }
369
370 .main ul.images:after {
371 clear: both;
372 }
373
374 .main ul.images {
375 padding: 0.5em 0;
376 }
377
378 .main ul.images li {
379 display: inline-block;
380 float: left;
381 width: 47%;
382 margin: 0 1.5%;
383 }
384
385 .main ul.images li > img {
386 width: 100%;
387 height: auto;
388 }
389
390
391 /* Troubleshooting panel
392 */
393
394 .troubleshooting {
395 margin-top: .8em;
396 }
397
398 .troubleshooting > h4 {
399 display: inline-block;
400 cursor: pointer;
401 letter-spacing: 2px;
402 padding: .25em .5em;
403 color: #2f5faa;
404 opacity: .5;
405 border: 1px solid #5f8dd3;
406 border-radius: 3px;
407 }
408
409 .troubleshooting > h4:hover,
410 .troubleshooting > h4.expanded {
411 opacity: 1;
412 }
413
414 .troubleshooting > h4.expanded {
415 border-bottom: 0;
416 border-radius: 3px 3px 0 0;
417 }
418
419
420 .troubleshooting > h4:after {
421 content:' â–¾';
422 display: inline-block;
423 line-height: 1;
424 padding: 0 0.2em;
425 vertical-align: top;
426 }
427
428 .troubleshooting > h4.expanded:after {
429 content:' â–´';
430 display: inline-block;
431 line-height: 1;
432 padding: 0 0.2em;
433 vertical-align: top;
434 }
435
436 .troubleshooting dl {
437 display: none;
438 padding: .5em;
439 border: 1px solid #5f8dd3;
440 border-radius: 0 3px 3px;
441 }
442
443 .main dt,
444 .troubleshooting dt {
445 margin-top: 1em;
446 }
447
448 .main dt:first-child,
449 .troubleshooting dt:first-child {
450 margin-top: 0;
451 }
452
453 .troubleshooting dt.feedback,
454 .troubleshooting dd.feedback {
455 display: inline-block;
456 }
457
458 /* Form elements: newsletter + pgp pathfinder
459 */
460
461 input {
462 -webkit-transition: all 0.1s linear;
463 -moz-transition: all 0.1s linear;
464 -o-transition: all 0.1s linear;
465 transition: all 0.1s linear;
466 }
467
468 input[type='text'],
469 input[type='submit'],
470 input[type='reset'] {
471 line-height: 1;
472 vertical-align: bottom;
473 }
474
475 input[type='text'] {
476 border: none;
477 border-radius: 3px;
478 border: .1em solid #5f8dd3;
479 padding: .2em .65em;
480 background: #fff;
481 color: #666;
482 }
483
484 input[type='text']:focus,
485 input[type='text']:hover {
486 border-color: #2f5faa;
487 outline: none;
488 color: #333333;
489 }
490
491 input[type='submit'],
492 input[type='reset'] {
493 border: none;
494 cursor: pointer;
495 text-transform: uppercase;
496 letter-spacing: 2px;
497 color: #fff;
498 padding: .5em 1em;
499 border-radius: 3px;
500 background-color: #5f8dd3;
501 }
502
503 input[type='submit']:focus,
504 input[type='submit']:hover,
505 input[type='reset']:focus,
506 input[type='reset']:hover {
507 background-color: #2f5faa;
508 outline: none;
509 }
510
511 /* FSF Introduction, before the header + Newsletter form
512 */
513
514 #fsf-intro h3,
515 #fsf-intro p {
516 margin-bottom: 1em;
517 }
518
519 .newsletter input[type='text'],
520 .newsletter input[type='submit'] {
521 font-size: .75em;
522 }
523
524 .newsletter input[type='text'] {
525 height: 3em;
526 width: 16em;
527 padding: .2em .65em;
528 }
529
530 .newsletter input[type='submit'] {
531 height: 3.1em;
532 padding: .5em 1em;
533 margin-left: 5px;
534 background-color: #5f8dd3;
535 }
536
537 #fsf-intro .newsletter form + p {
538 margin: .25em 0 0;
539 font-size:
540 }
541
542 /* PGP pathfinder
543 */
544
545 #pgp-pathfinder {
546 background: #fff;
547 border: 1px solid #94b3e2;
548 border-radius: 3px;
549 }
550
551 #pgp-pathfinder form {
552 margin: 1em;
553 }
554
555 #pgp-pathfinder strong {
556 display: inline-block;
557 width: 4em;
558 }
559
560 #pgp-pathfinder input {
561 font-size: .75em;
562 }
563
564 #pgp-pathfinder input[type='text'] {
565 height: 3em;
566 width: 22em;
567 padding: .2em .65em;
568 }
569
570 #pgp-pathfinder input[type='submit'],
571 #pgp-pathfinder input[type='reset'] {
572 padding: .5em 1em;
573 margin-left: 5px;
574 background-color: #5f8dd3;
575 }
576
577 #pgp-pathfinder .buttons {
578 margin-left: 4em;
579 }
580
581 /* Footer
582 */
583
584 #footer h4 {
585 margin-bottom: .75em;
586 }
587
588
589 /* ==========================================================================
590 Media Queries
591 ========================================================================== */
592
593 @media only screen and (min-width: 400px) {
594
595 #header #fsf-intro {
596 margin-bottom: 1em;
597 padding-bottom: 1em;
598 border-bottom: 1px solid #ff9b12;
599 }
600
601 }
602
603 @media only screen and (min-width: 400px) and (max-width: 599px) {
604
605 .row > div,
606 .nav > div,
607 #header > div {
608 width: 92%;
609 margin: 0 auto;
610 }
611
612 #header .intro {
613 font-size: 1em;
614 }
615
616 #header #infographic {
617 margin-bottom: 1.5em;
618 }
619
620 #header #infographic a.img-link {
621 height: 200px;
622 overflow: hidden;
623 }
624
625 .section-intro p {
626 margin: 0.5em 0;
627 }
628
629 }
630
631
632 @media only screen and (min-width: 600px) {}
633
634 @media only screen and (min-width: 600px) and (max-width: 899px) {
635
636 #header .intro {
637 float: right;
638 width: 100%;
639 margin-right: 02.22%;
640 }
641
642 #header #fsf-intro {
643 float: left;
644 width: 100%;
645 padding-left: 02.22%;
646 border-left: 8px solid #ff9b12;
647 }
648
649 }
650
651 @media only screen and (min-width: 900px) {
652
653 .row > div,
654 .nav > div,
655 #header > div {
656 width: 86%;
657 }
658
659 .nav > div {
660 overflow: hidden;
661 position: relative;
662 padding: 0.35em 0 0;
663 }
664
665 .nav ul.os {
666 display: inline-block;
667 margin: 0 2em 0 0;
668 }
669
670 .nav ul.lang {
671 display: inline-block;
672 margin: 0 0 0 0.5em;
673 float: right;
674 }
675
676 #header h1 {
677 font-size: 6em;
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 .row .sidebar img {
720 width: 100%;
721 }
722
723 }
724
725