fixed margins and sizes
[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 small {
166 font-size: 0.75em;
167 }
168
169 .troubleshooting dl {
170 font-size: 0.85em;
171 }
172
173 #header #fsf-intro {
174 font-size: .7em;
175 }
176
177
178
179 /* Colours
180 */
181
182 body {
183 background: #f4eed7;
184 }
185
186 a,
187 a > img + strong {
188 color: #2f5faa;
189 text-decoration: none;
190 }
191
192 a:hover, a:focus,
193 a:hover > img + strong,
194 a:focus > img + strong {
195 color: #0e3878;
196 }
197
198 /* Guide Sections Background */
199 /* Blue*/
200 #section1,
201 #section3,
202 #section5,
203 #footer { background: #dcdfe5; }
204
205
206 /* Yellow */
207 #section2,
208 #section4,
209 #section6 { background: #f4eed7; }
210
211
212 /* Layout
213 */
214
215 .row:before, .row:after {
216 content: " ";
217 display: table;
218 }
219
220 *, *:before, *:after {
221 -moz-box-sizing: border-box;
222 }
223
224 .row:after {
225 clear: both;
226 }
227
228 .row {
229 margin: 0;
230 padding: 2em 0;
231 }
232
233 .row > div {
234 width: 96%;
235 margin: 0 auto;
236 padding: .5em 0;
237 }
238
239 .nav > div {
240 width: 96%;
241 margin: 0 auto;
242 }
243
244 .nav li {
245 text-transform: uppercase;
246 display: inline-block;
247 }
248
249 .nav li a {
250 display: block;
251 padding: .5em;
252 }
253
254 /* Header
255 */
256
257 #header > div {
258 width: 96%;
259 clear: both;
260 margin: 0 auto;
261 padding: 0 0 1em;
262 }
263
264 #header h1 {
265 line-height: 1;
266 }
267
268 #header ul.os {
269 line-height: 1;
270 margin: .5em 0 2em;
271 padding: 0 0 .25em;
272 border-bottom: 1px solid #94b3e2;
273 }
274
275 #header ul.os li {
276 text-transform: uppercase;
277 display: inline-block;
278 }
279
280 #header ul.os li a {
281 display: block;
282 padding: .25em;
283 }
284
285 #header ul.os .share {
286 padding: .25em 0 .25em 4em;
287 }
288
289 #header #infographic {
290 float: left;
291 display: block;
292 background: #fff;
293 border-radius: 3px;
294 margin: 0 1em .5em 0;
295 padding: .5em;
296 width: 250px;
297 }
298
299
300 #header #infographic img {
301 display: inline-block;
302 width: 100%;
303 }
304
305 #header > div > .intro p {
306 margin: 0 0 0.75em;
307 }
308
309 .section-intro {
310 padding-bottom: 1.5em;
311 border-bottom: 1px solid #5f8dd3;
312 margin-bottom: 2em;
313 }
314
315 .section-intro p {
316 margin: 0.5em 3.5em;
317 }
318
319 .section-intro h2,
320 .sidebar h2 {
321 margin: 0 0 .5em;
322 }
323
324 .section-intro h2 {
325 text-align: center;
326 }
327
328 .section-intro h2 em,
329 .sidebar h2 em {
330 color: #94b3e2;
331 }
332
333 .step {
334 padding: .5em 0;
335 }
336
337 .intro p,
338 .main p {
339 margin: 0.5em 0;
340 }
341
342 .main p:first-child { margin: 0 0 0.5em ; }
343
344 .main p.notes {
345 color: #999;
346 }
347
348 .main h3 {
349 margin: 1em 0 0.5em;
350 padding-left:.5em;
351 border-left: 8px solid #ff9b12;
352 }
353
354 .main h3:first-child { margin: 0 0 0.5em; }
355
356 .main > h3 em {
357 color: #94b3e2;
358 display: block;
359 }
360
361 .main,
362 .sidebar {
363 margin: 1em 0 0.5em;
364 }
365
366 .main ul li {
367 margin: .5em 0;
368 }
369
370 /* Images inside .main
371 */
372
373 .main ul.images:before, .main ul.images:after {
374 content: " ";
375 display: table;
376 }
377
378 .main ul.images:after {
379 clear: both;
380 }
381
382 .main ul.images {
383 padding: 0.5em 0;
384 }
385
386
387 /* Troubleshooting panel
388 */
389
390 .troubleshooting {
391 margin-top: .8em;
392 }
393
394 .troubleshooting > h4 {
395 display: inline-block;
396 cursor: pointer;
397 letter-spacing: 2px;
398 padding: .25em .5em;
399 color: #2f5faa;
400 opacity: .5;
401 border: 1px solid #5f8dd3;
402 border-radius: 3px;
403 }
404
405 .troubleshooting > h4:hover,
406 .troubleshooting > h4.expanded {
407 opacity: 1;
408 }
409
410 .troubleshooting > h4.expanded {
411 border-bottom: 0;
412 border-radius: 3px 3px 0 0;
413 }
414
415
416 .troubleshooting > h4:after {
417 content:' â–¾';
418 display: inline-block;
419 line-height: 1;
420 padding: 0 0.2em;
421 vertical-align: top;
422 }
423
424 .troubleshooting > h4.expanded:after {
425 content:' â–´';
426 display: inline-block;
427 line-height: 1;
428 padding: 0 0.2em;
429 vertical-align: top;
430 }
431
432 .troubleshooting dl {
433 display: none;
434 padding: .5em;
435 border: 1px solid #5f8dd3;
436 border-radius: 0 3px 3px;
437 }
438
439 .main dt,
440 .troubleshooting dt {
441 margin-top: 1em;
442 }
443
444 .main dt:first-child,
445 .troubleshooting dt:first-child {
446 margin-top: 0;
447 }
448
449 .troubleshooting dt.feedback,
450 .troubleshooting dd.feedback {
451 display: inline-block;
452 }
453
454 /* Form elements: newsletter + pgp pathfinder
455 */
456
457 input {
458 -webkit-transition: all 0.1s linear;
459 -moz-transition: all 0.1s linear;
460 -o-transition: all 0.1s linear;
461 transition: all 0.1s linear;
462 }
463
464 input[type='text'],
465 input[type='submit'],
466 input[type='reset'] {
467 line-height: 1;
468 vertical-align: bottom;
469 }
470
471 input[type='text'] {
472 border: none;
473 border-radius: 3px;
474 border: .1em solid #5f8dd3;
475 padding: .2em .65em;
476 background: #fff;
477 color: #666;
478 }
479
480 input[type='text']:focus,
481 input[type='text']:hover {
482 border-color: #2f5faa;
483 outline: none;
484 color: #333333;
485 }
486
487 input[type='submit'],
488 input[type='reset'] {
489 border: none;
490 cursor: pointer;
491 text-transform: uppercase;
492 letter-spacing: 2px;
493 color: #fff;
494 padding: .5em 1em;
495 border-radius: 3px;
496 background-color: #5f8dd3;
497 }
498
499 input[type='submit']:focus,
500 input[type='submit']:hover,
501 input[type='reset']:focus,
502 input[type='reset']:hover {
503 background-color: #2f5faa;
504 outline: none;
505 }
506
507 /* FSF Introduction, before the header + Newsletter form
508 */
509
510 #fsf-intro h3,
511 #fsf-intro p {
512 margin-bottom: 1em;
513 }
514
515 #fsf-intro h3 a {
516 display: block;
517 max-width: 283px;
518 }
519
520 #fsf-intro h3 img {
521 width: 100%;
522 }
523
524 .newsletter input[type='text'],
525 .newsletter input[type='submit'] {
526 font-size: .75em;
527 }
528
529 .newsletter input[type='text'] {
530 height: 3em;
531 width: 16em;
532 padding: .2em .65em;
533 margin-bottom: .5em;
534 }
535
536 .newsletter input[type='submit'] {
537 height: 3.1em;
538 padding: .5em 1em;
539 margin-left: 5px;
540 background-color: #5f8dd3;
541 margin-bottom: .5em;
542 }
543
544 #fsf-intro .newsletter form + p {
545 margin: .25em 0 0;
546 }
547
548 /* PGP pathfinder
549 */
550
551 #pgp-pathfinder {
552 background: #fff;
553 border: 1px solid #94b3e2;
554 border-radius: 3px;
555 }
556
557 #pgp-pathfinder form {
558 margin: 1em;
559 }
560
561 #pgp-pathfinder strong {
562 display: inline-block;
563 width: 4em;
564 }
565
566 #pgp-pathfinder input {
567 font-size: .75em;
568 }
569
570 #pgp-pathfinder input[type='text'] {
571 height: 3em;
572 width: 22em;
573 padding: .2em .65em;
574 }
575
576 #pgp-pathfinder input[type='submit'],
577 #pgp-pathfinder input[type='reset'] {
578 padding: .5em 1em;
579 margin-left: 5px;
580 background-color: #5f8dd3;
581 }
582
583 #pgp-pathfinder .buttons {
584 margin-left: 4em;
585 }
586
587 /* Footer
588 */
589
590 #footer h4 {
591 margin-bottom: .75em;
592 }
593
594 #footer .credits {
595 border-top: 1px solid #94b3e2;
596 margin-top: 1em;
597 padding-top: .5em;
598 }
599
600 #footer #copyright p {
601 margin-bottom: .5em;
602 }
603
604 /* Infographics page
605 */
606
607 .centered > * {
608 text-align: center;
609 }
610
611 .centered h3 {
612 border-bottom: 1px solid #94b3e2;
613 margin: .65em 0;
614 padding: 0 0 .65em;
615 }
616
617 .centered p {
618 margin: .65em 0;
619 }
620
621
622
623 /* ==========================================================================
624 Media Queries
625 ========================================================================== */
626
627 @media only screen and (min-width: 400px) {
628
629 }
630
631 @media only screen and (min-width: 400px) and (max-width: 599px) {
632
633 .row > div,
634 .nav > div,
635 #header > div {
636 width: 92%;
637 margin: 0 auto;
638 }
639
640 #header ul.os .share {
641 display: block;
642 padding: .25em 0;
643 }
644
645 #header #fsf-intro {
646 margin-bottom: 1em;
647 padding-bottom: 1em;
648 border-bottom: 1px solid #ff9b12;
649 }
650
651 .section-intro p {
652 margin: 0.5em 0;
653 }
654
655 }
656
657
658 @media only screen and (min-width: 600px) {}
659
660 @media only screen and (min-width: 600px) and (max-width: 899px) {
661
662 #header .intro {
663 float: right;
664 width: 100%;
665 }
666
667 #header #fsf-intro {
668 float: left;
669 width: 100%;
670 padding-left: 0;
671 border-left: 0;
672 margin-bottom: 1em;
673 padding-bottom: 1em;
674 border-bottom: 1px solid #ff9b12;
675 }
676
677 }
678
679 @media only screen and (min-width: 900px) {
680
681 .row > div,
682 .nav > div,
683 #header > div {
684 width: 86%;
685 }
686
687 .nav > div {
688 overflow: hidden;
689 position: relative;
690 padding: 0.35em 0 0;
691 }
692
693 .nav ul.lang {
694 margin: 0 0 0 0.5em;
695 }
696
697 #header h1 {
698 font-size: 6em;
699 text-align: center;
700 }
701
702 #header ul.os {
703 text-align: center;
704 }
705
706 #header .intro {
707 float: left;
708 width: 66%;
709 margin-right: 1.72%;
710 }
711
712 #header #fsf-intro {
713 float: right;
714 width: 29.52%;
715 padding-left: 1.72%;
716 border-left: 8px solid #ff9b12;
717 }
718
719 .row > div,
720 #header > div,
721 .row > div .section-intro,
722 .row > div .step,
723 #footer > div {
724 overflow: hidden;
725 }
726
727 .row .sidebar { /* 3 columns 125px + 20px margins*/
728 float: left;
729 clear: left;
730 width: 34.05%;
731 }
732
733 .row .main { /* 5 columns 125px + 100px margins*/
734 float: right;
735 width: 62.5%;
736 margin-left: 1.72%;
737 }
738
739 .sidebar ul.images li {
740 display: inline-block;
741 float: left;
742 width: 47%;
743 margin: 0 3% 1em 0;
744 }
745
746 .sidebar ul.images li:nth-child(n) {
747 margin: 0 0 0 3%;
748 }
749
750 .sidebar ul.images li:nth-child(2n+1) {
751 clear: left;
752 margin: 0 3% 1em 0;
753 }
754
755 .sidebar ul.images li > img {
756 width: 100%;
757 height: auto;
758 }
759
760 .row .sidebar > p > img {
761 width: 80%;
762 height: auto;
763 }
764
765
766
767 }
768
769