]> nos-oignons.net Git - website.git/blob - local.css
Meilleur logo pour les écrans inférieurs à 390px
[website.git] / local.css
1 /* vim: set ts=4 sts=4 sw=4 isk+=-,. fen fcl=all fdm=marker fmr={{{,}}} fml=2 : */
2
3 @font-face {
4   font-family: 'Open Sans';
5   font-style: normal;
6   font-weight: 400;
7   src: local('Open Sans'), local('OpenSans'), url(assets/OpenSans/OpenSans.ttf) format('truetype');
8 }
9 @font-face {
10   font-family: 'Open Sans';
11   font-style: normal;
12   font-weight: 700;
13   src: local('Open Sans Bold'), local('OpenSans-Bold'), url(assets/OpenSans/OpenSans-Bold.ttf) format('truetype');
14 }
15 @font-face {
16   font-family: 'Open Sans';
17   font-style: italic;
18   font-weight: 400;
19   src: local('Open Sans Italic'), local('OpenSans-Italic'), url(assets/OpenSans/OpenSans-Italic.ttf) format('truetype');
20 }
21 @font-face {
22   font-family: 'Open Sans';
23   font-style: italic;
24   font-weight: 700;
25   src: local('Open Sans Bold Italic'), local('OpenSans-BoldItalic'), url(assets/OpenSans/OpenSans-BoldItalic.ttf) format('truetype');
26 }
27 @font-face {
28   font-family: 'Inconsolata';
29   font-style: normal;
30   font-weight: 400;
31   src: local('Inconsolata'), local('Inconsolata-Regular'), url(assets/Inconsolata/Inconsolata.otf) format('opentype');
32 }
33
34 /* http://www.paulirish.com/2012/box-sizing-border-box-ftw/ */
35 /* apply a natural box layout model to all elements, but allowing components to change */
36 html {
37   box-sizing: border-box;
38 }
39 *, *:before, *:after {
40   box-sizing: inherit;
41 }
42
43 img,
44 table {
45   max-width: 100%;
46   height: auto;
47 }
48
49
50 html {
51         /*overflow: auto;*/
52 }
53
54 body {
55         margin: 0;
56         padding: 0;
57         font-family: "Open Sans", sans-serif;
58         color: #111;
59         background: #fff url(assets/tile.png) fixed;
60 }
61
62 code,
63 pre {
64         font-family: "Inconsolata", monospace;
65         font-size-adjust: 0.535;
66 }
67
68 dt {
69         font-weight: bold;
70 }
71
72 thead td {
73         text-decoration: underline;
74 }
75
76
77 .body-wrapper {
78         max-width: 70em;
79         margin: 0 auto 0 auto;
80         box-shadow: 0 0 0.2em 0 #333366;
81   background: white;
82 }
83 @media screen and (min-width: 45em) {
84   .menu,
85   .main {
86     display: table-cell;
87     vertical-align: top;
88   }
89   .menu {
90     width: 20%;
91     max-width: 15em;
92     min-width: 11em;
93   }
94   .main {
95   }
96 }
97
98
99 .body-wrapper > header {
100     padding: 1em 0;
101     border-bottom: solid 1px #ccc;
102 }
103 @media screen and (min-width: 390px) {
104   .body-wrapper > header {
105     background: url("assets/filet.png") no-repeat scroll 99% 105px #FFF;
106   }
107 }
108
109
110 #logo {
111     display: block;
112         width: 394px; /* same as .pageheader .header:margin-left */
113         height: 104px;
114   max-width: 100%;
115         background: url(assets/logo-nos-oignons-blanc.png) no-repeat top left;
116   background-size: 100%;
117 }
118 @media screen and (max-width: 390px) {
119   #logo {
120     background-image: url(assets/logo-nos-oignons-blanc-small.png);
121     background-position: left center;
122     height: 100px;
123   }
124 }
125
126 #logo span {
127         display: none;
128 }
129
130 /* {{{ .actions */
131 .actions {
132         font-size: 0.8em;
133         text-align: right;
134 }
135 .actions ul {
136   margin: 0;
137   padding: 0.5em;
138   height: auto;
139   list-style-type: none;
140 }
141
142 .breadcrumb,
143 .breadcrumb  a {
144   text-decoration: none;
145   color: #b3b3b3;
146 }
147 .breadcrumb  a:first-child {display: none;}
148 .breadcrumb a:hover {
149   text-decoration: none;
150   color: #57075f;
151 }
152 .breadcrumb  a + a:before {
153   content:"▸";
154   display: inline-block;
155   vertical-align: top;
156   margin: -1px 0.5em 0;
157   color: #b3b3b3;
158 }
159 .breadcrumb  a + a:hover:before {}
160
161 /* .actions }}} */
162 /* {{{ #otherlanguages */
163 #otherlanguages {
164   float: right;
165   font-size: 0.9em;
166 }
167 .translationstatus,
168 .langstatus {display: none;}
169 @media screen and (max-width: 400px) {
170 #otherlanguages {float: none;}
171 }
172 #otherlanguages,
173 #otherlanguages a {
174         color: #b3b3b3;
175         /*background: white;*/
176 }
177 #otherlanguages a:hover {
178   color: #57075f;
179 }
180
181 #otherlanguages ul {
182   padding: 0;
183   margin: 0;
184   list-style: none;
185 }
186 #otherlanguages ul li {
187         /*margin-left: 1em;*/
188 }
189 #otherlanguages .langstatus {
190         /*display: none;*/
191 }
192
193
194 main {
195         background: white url(assets/background.png) no-repeat bottom center;
196       background-size: 50%;
197         color: #111;
198 }
199
200
201 .menu {
202         padding: 1em 0;
203         border: none;
204         background: #f5f5f5;
205 }
206 @media screen and (max-width: 45em) {
207   .menu {
208         border-bottom: solid 1px #ccc;
209   }
210 }
211
212 .menu ul {
213         margin: 0;
214 }
215
216 .menu ul {
217         padding: 0;
218         list-style: none;
219         background: transparent;
220 }
221
222 .menu li {
223         text-align: left;
224 }
225
226 .menu ul li .selflink {
227         color: #57075f;
228         font-weight: bold;
229 }
230
231 .menu ul li > span,
232 .menu ul li > a {
233         display: block;
234         padding: 0.3em 0.5em;
235         text-decoration: none;
236         border: 1px solid #f5f5f5;
237   color: #a756af;
238   background: transparent;
239   font-weight: normal;
240   font-size: 1em;
241 }
242
243
244 .menu a:hover {
245   color: #57075f;
246   background: #eeeeee;
247   text-decoration: none;
248 }
249
250 .menu select {
251   margin: 0.5em 2%;
252   width: 94%;
253   max-width: 94%;
254   background: #fff;
255   border: 1px solid #ccc;
256         color: #57075F;
257   font-size: 1.2em;
258   display: none;
259 }
260
261 @media screen and (max-width: 45em) {
262   .js .menu ul {display: none;}
263   .js .menu select {display: block;}
264 }
265
266
267 main {
268         padding: 1em;
269 }
270
271 main a {
272         color: #57075f;
273         text-decoration: underline;
274 }
275
276 main a:hover {
277         text-decoration: underline;
278 }
279
280 main p {
281         margin: 1em 0 1em 0;
282 }
283
284 main hr {
285         border: none;
286         border-bottom: dotted 2px #bbbbbb;
287         margin: 2em auto;
288 }
289
290 main h1 {
291         font-size: 1.8em;
292         font-weight: bold;
293   /*text-shadow: 2px 2px 1px #444;*/
294   color: #57075F;
295 }
296 main h1.title {
297   margin-top: 0em;
298   font-size: 2em;
299         color: #ffa430;
300 }
301
302 main h2 {
303   /*color: #ffa430*/
304   color: #57075F;
305 }
306 main h3 {
307   color: #57075F;
308 }
309
310 main h2,
311 main .header {
312         font-size: 1.4em;
313         font-weight: bold;
314 }
315
316 main h2 + p {
317         margin-top: 0.75em;
318 }
319
320 main h3 {
321         font-size: 1.2em;
322         font-weight: bold;
323         margin-bottom: 0;
324         padding-bottom: 0;
325 }
326
327 main h3 + p {
328         margin-top: 0.5em;
329 }
330 h2 sup,
331 h3 sup {
332   font-weight: normal;
333 }
334
335 main blockquote {
336   border-left: 2px solid #A756AF;
337   margin: 0.5em 0;
338   padding: 0.5em 0 0.5em 1em;
339 }
340 main blockquote p {margin: 0;}
341 main blockquote p + p {margin-top: 1em;}
342
343
344 main table {
345         border-top: solid 1px #aaa;
346         border-bottom: solid 1px #aaa;
347         border-collapse: collapse;
348 }
349
350 main table th {
351         background: #fafafa;
352         padding: 0.1em 0.5em;
353         border-bottom: solid 1px #aaaaaa;
354         color: #555555;
355 }
356
357 main table td {
358         padding: 0.1em 0.5em;
359         border-top: solid 1px #ccc;
360 }
361
362 main .header a {
363         text-decoration: none;
364 }
365
366 main .feedlink a {
367   text-decoration: none;
368   /*color: #ffa430;*/
369 }
370
371 main .feedlink {
372   float: right;
373         text-align: left;
374   margin-top: -3.5em;
375 }
376 @media screen and (max-width: 400px) {
377   main .feedlink {
378     float: none;
379     margin-top: -2em;
380     margin-bottom: 2em;
381   }
382 }
383 main .feedlink .feedbutton {
384         font-size: 0.8em;
385         background: transparent;
386         border: none;
387 }
388 main .feedlink .feedbutton:hover {
389         background: transparent;
390         text-decoration: underline;
391 }
392
393 main .footnotes {
394         font-size: 0.8em;
395 }
396
397 .half-section {
398   display: inline-block;
399   vertical-align: top;
400   width: 49.5%;
401 }
402
403 /* main }}} */
404
405
406 .graph {
407   display: inline-block;
408   vertical-align: top;
409   width: 45%;
410   margin: 1em 1%;
411   min-width: 20em;
412   text-align: center;
413 }
414
415 #bandwidth {text-align: center;}
416 #bandwidth svg {text-align: left;}
417
418 /* Tor nodes table */
419 .tor-nodes {}
420 .tor-nodes th {
421   text-align: left;
422 }
423
424
425 /* Paypal donation forms */
426 .paypal-donation {
427         display: inline-block;
428         vertical-align: top;
429         width:45%;
430         padding-right: 4%;
431       min-width: 20em;
432 }
433 .paypal-donation h4 {
434         margin: 0 0 0.5em 0;
435 }
436 .paypal-donation select {
437         display: inline-block;
438         vertical-align: top;
439         margin-right: 1em;
440         min-height:26px;
441 }
442 .paypal-donation .cancel {
443         font-size: small;
444 }
445
446
447 /* Progress bar */
448 .progress-bar-wrapper {
449   margin: 2em auto;
450   height: 85px;
451   width: 600px;
452   background: lightGrey url(assets/progress_bar.png) top left repeat-x;
453   border: 1px solid #ccc;
454   border-bottom: 0;
455   position: relative;
456 }
457   .progress-bar-wrapper .progress-bar {
458     position: absolute;
459     height: 85px;
460     background: grey url(assets/progress_bar.png) left -85px repeat-x;
461     z-index: 2;
462     /* animate progress bar */
463     -webkit-animation: progress-bar 1.5s;
464     -moz-animation: progress-bar 1.5s;
465     animation: progress-bar 1.5s;
466   }
467   .progress-bar-wrapper .progress-bar-promises {
468     background-position: left bottom;
469     z-index: 1;
470   }
471
472   /* progress bar animation*/
473   @-webkit-keyframes progress-bar { 0% { width: 0; } }
474   @-moz-keyframes progress-bar { 0% { width: 0; } }
475   keyframes progress-bar { 0% { width: 0; } }
476
477   /* Current amount */
478   .progress-bar-wrapper .progress-bar:after {
479     content: attr(data-current);
480     display: block;
481     position: absolute;
482     top: -22px;
483     right: 0;
484     background: #fff;
485     color: #ccc;
486     font-size: 0.9em;
487   }
488   /* Promises amount */
489   .progress-bar-wrapper .progress-bar-promises:after {
490   }
491
492   /* Temperature bar */
493   .progress-bar-wrapper:before {
494     content: " ";
495     display: block;
496     position: absolute;
497     z-index: 3;
498     bottom: -5px;
499     left: -1px;
500     height: 5px;
501     width: 100%;
502     border: 1px solid #ccc;
503     border-top: 0;
504     background: -moz-linear-gradient(left, #ff0000 0%, #66ff00 100%); /* FF3.6+ */
505     background: -webkit-gradient(linear, left top, right top, color-stop(0%,#ff0000), color-stop(100%,#66ff00)); /* Chrome,Safari4+ */
506     background: -webkit-linear-gradient(left, #ff0000 0%,#66ff00 100%); /* Chrome10+,Safari5.1+ */
507     background: -o-linear-gradient(left, #ff0000 0%,#66ff00 100%); /* Opera 11.10+ */
508     background: -ms-linear-gradient(left, #ff0000 0%,#66ff00 100%); /* IE10+ */
509     background: linear-gradient(to right, #ff0000 0%,#66ff00 100%); /* W3C */
510     filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff0000', endColorstr='#66ff00',GradientType=1 ); /* IE6-9 */
511   }
512
513   /* Annual budget */
514   .progress-bar-wrapper:after {
515     content: attr(data-total);
516     display: block;
517     position: absolute;
518     top: -22px;
519     right: 0;
520     background: #fff;
521     color: #ccc;
522     font-size: 0.9em;
523   }
524
525
526
527 /* FDN Form */
528 .fdn-form {}
529   .fdn-form select,
530   .fdn-form input {
531     display: inline-block;
532     vertical-align: top;
533     margin-right: 1em;
534     height: 26px;
535   }
536   .fdn-form #custom-amount {
537     display:none;
538     height: 22px;
539   }
540
541
542 /* Paymium Bitcoin */
543 .paymium-btns {padding-left: 0;}
544 .paymium-btns li {
545   list-style: none;
546   display: inline-block;
547   margin: 0 0.5em 0.5em 0;
548 }
549
550 .paymium-btn {
551   display: inline-block;
552   min-width: 10em;
553   padding: 4px 44px 4px 10px;
554   padding-right: 44px;
555   background: #4d7b99 url(assets/paymium_btc.png) right center no-repeat;
556   border-radius: 4px;
557   text-align: center;
558   color: #fff;
559   text-decoration: none;
560   font-weight: bold;
561 }
562 .paymium-btn:hover{
563   background-color:#5081a0;
564   text-decoration: none;
565 }
566 /* override over weighted selector*/
567 #content .paymium-btn {color: #fff;text-decoration: none;}
568 #content .paymium-btn:hover {color: #fff;text-decoration: none;}
569
570
571 /* {{{ .inlinepage */
572
573 .inlinepage {
574         padding: 0;
575         border: none;
576         margin-bottom: 1em;
577 }
578
579 .inlinepage .header {
580         border-bottom: solid #ccc 1px;
581 }
582
583 .inlinepage .inlineheader .pagedate {
584         margin-top: 0;
585         font-size: 0.8em;
586         font-style: normal;
587         color: #666;
588 }
589
590 /* .inlinepage }}} */
591
592 /* {{{ #footer */
593 #footer {
594   margin: 0;
595   padding: 0.5em 0;
596   text-align: center;
597   color: white;
598   background: #57075f;
599   font-size: 0.85em;
600 }
601 @media screen and (max-width: 45em) {
602   #footer {
603     text-align: left;
604     padding: 0.5em 1em;
605     font-size: 0.8em;
606   }
607 }
608 @media screen and (max-width: 480px) {
609   #footer .pagecopyright span {
610     display: block;
611   }
612 }
613
614 #footer > div {
615     margin-top: 1em;
616 }
617
618
619 #footer a {
620         color: white;
621   text-decoration: none;
622 }
623
624 #footer a:hover {
625         text-decoration: underline;
626 }
627
628 #backlinks {
629         font-size: 0.8em;
630         margin-top: 0;
631 }
632
633 #footer #pageinfo div {
634         font-size: 0.8em;
635         margin-top: 0;
636         margin-bottom: 0;
637 }
638 /* #footer }}} */
639
640 /* {{{ @media print */
641 @media print {
642         .menu,
643         .actions,
644         .feedlink,
645         #backlinks,
646         #otherlanguages {
647                 display: none;
648         }
649
650         #footer,
651         #footer #pageinfo,
652         .page,
653         .pageheader,
654         #pagebody {
655             margin: 0;
656             padding: 0;
657             border: none;
658             box-shadow: none;
659         }
660
661         .page,
662         .pageheader {
663                 border-radius: 0;
664         }
665
666         .pageheader {
667                 position: static;
668                 height: auto;
669         }
670
671         .pageheader .header {
672                 margin-left: 0;
673                 padding-top: 2em;
674                 padding-bottom: 1em;
675         }
676
677         .pageheader .header > span,
678         .parentlinks .parentlinksep {
679                 display: inline;
680                 height: auto;
681         }
682
683         .pageheader a,
684         .pageheader .parentlinks a {
685                 color: #111;
686         }
687
688         .pageheader,
689         .parentlinks a,
690         .parentlinks .parentlinksep + a + .parentlinksep + a {
691                 background: none;
692         }
693
694         .pageheader .parentlinks {
695                 display: inline;
696         }
697
698         .pageheader .title,
699         .parentlinks > a {
700                 position: static;
701         }
702
703         .parentlinks > a span {
704                 display: inline;
705         }
706
707   main h1 {
708     color: #111;
709     text-shadow: none;
710     border-bottom: solid #ccc 1px;
711   }
712
713         main a:link:after,
714         main a:visited:after {
715                 content:" [" attr(href) "] ";
716         }
717
718         #footer {
719                 margin-top: 2em;
720                 text-align: left;
721         }
722 }
723 /* @media print }}} */