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