X-Git-Url: https://nos-oignons.net/gitweb/website.git/blobdiff_plain/a60dc1d46b36955a5981981c8b8badd83eb5b202..bc8bd5934535b593acff949320f25a03d33ec517:/local.css?ds=inline diff --git a/local.css b/local.css index 27c5c01..53b5b54 100644 --- a/local.css +++ b/local.css @@ -31,16 +31,32 @@ src: local('Inconsolata'), local('Inconsolata-Regular'), url(assets/Inconsolata/Inconsolata.otf) format('opentype'); } +/* http://www.paulirish.com/2012/box-sizing-border-box-ftw/ */ +/* apply a natural box layout model to all elements, but allowing components to change */ html { - overflow: auto; + box-sizing: border-box; +} +*, *:before, *:after { + box-sizing: inherit; +} + +img, +table { + max-width: 100%; + height: auto; +} + + +html { + /*overflow: auto;*/ } body { margin: 0; padding: 0; font-family: "Open Sans", sans-serif; - color: #b3b3b3; - background: url(assets/tile.png) fixed; + color: #111; + background: #fff url(assets/tile.png) fixed; } code, @@ -57,306 +73,328 @@ thead td { text-decoration: underline; } -.page { - overflow: hidden; - max-width: 54em; - margin: 0 auto 0 auto; - box-shadow: 0 0 0.6em 0 #333366; - background: #f5f5f5; -} -/* {{{ .pageheader */ -.pageheader { - position: fixed; - width: 54em; /* same as .page:max-width */ - height: 100px; - padding: 0; - background: white url(assets/filet.png) no-repeat 99% 90px; - box-shadow: 0 10px 15px 0px white; - z-index: 120; -} - -.pageheader .header { - font-size: 120%; - margin-left: 394px; +.body-wrapper { + max-width: 70em; + margin: 0 auto 0 auto; + box-shadow: 0 0 0.2em 0 #333366; + background: white; } - -.pageheader .header > span { - display: block; - height: 100px; - padding-top: 22px; +@media screen and (min-width: 45em) { + .menu, + .main { + display: table-cell; + vertical-align: top; + } + .menu { + width: 20%; + max-width: 15em; + min-width: 11em; + } + .main { + } } -.pageheader .parentlinks { - display: block; -} -.pageheader a, -.pageheader .parentlinks a { - color: #ffa430; /* was: #eeeeaa */ - text-decoration: none; +.body-wrapper > header { + padding: 1em 0; + border-bottom: solid 1px #ccc; } - -.pageheader a:hover { - text-decoration: underline; +@media screen and (min-width: 390px) { + .body-wrapper > header { + background: url("assets/filet.png") no-repeat scroll 99% 105px #FFF; + } } -.pageheader .title { - position: absolute; - bottom: 27px; - left: 392px; - font-size: 160%; - color: black; -} -.pageheader .title .translationstatus { - display: none; -} - -.parentlinks > a { +#logo { + display: block; width: 394px; /* same as .pageheader .header:margin-left */ - height: 100px; + height: 104px; + max-width: 100%; background: url(assets/logo-nos-oignons-blanc.png) no-repeat top left; - position: absolute; - left: 0; - top: 0; + background-size: 100%; +} +@media screen and (max-width: 390px) { + #logo { + background-image: url(assets/logo-nos-oignons-blanc-small.png); + background-position: left center; + height: 100px; + } } -.parentlinks > a span { +#logo span { display: none; } -.parentlinks .parentlinksep + a { - width: auto; - height: auto; - background: transparent; - display: inline; - position: static; +/* {{{ .actions */ +.actions { + font-size: 0.8em; + text-align: right; } - -.parentlinks .parentlinksep + a + .parentlinksep + a { - background: url(assets/ariane-sep.png) no-repeat 0% 50%; - padding-left: 20px; +.actions ul { + margin: 0; + padding: 0.5em; + height: auto; + list-style-type: none; } -.parentlinks .parentlinksep + a span { - display: inline; +.breadcrumb, +.breadcrumb a { + text-decoration: none; + color: #b3b3b3; } - -.parentlinks .parentlinksep { - display: none; +.breadcrumb a:first-child {display: none;} +.breadcrumb a:hover { + text-decoration: none; + color: #57075f; } - -/* {{{ .actions */ -.actions { - font-size: 80%; - text-align: right; +.breadcrumb a + a:before { + content:"▸"; + display: inline-block; + vertical-align: top; + margin: -1px 0.5em 0; + color: #b3b3b3; } +.breadcrumb a + a:hover:before {} /* .actions }}} */ /* {{{ #otherlanguages */ +#otherlanguages { + float: right; + font-size: 0.9em; +} +.translationstatus, +.langstatus {display: none;} +@media screen and (max-width: 400px) { +#otherlanguages {float: none;} +} #otherlanguages, -#otherlanguages ul li a { - color: #57075f; - background: white; +#otherlanguages a { + color: #b3b3b3; + /*background: white;*/ +} +#otherlanguages a:hover { + color: #57075f; } +#otherlanguages ul { + padding: 0; + margin: 0; + list-style: none; +} #otherlanguages ul li { - margin-left: 1em; + /*margin-left: 1em;*/ } #otherlanguages .langstatus { - display: none; + /*display: none;*/ } -.pageheader #otherlanguages { - border: none; - position: absolute; - bottom: 1.2em; - right: 0; - z-index: 300; - font-size: 80%; -} -/* #otherlanguages }}} */ -/* .pageheader }}} */ - -#pagebody { - position: relative; - min-height: 756px; - margin: 0 0 0 11.44em; /* same as .sidebar:width */ - padding: 100px 2em 1em 2em; - z-index: 110; + +main { background: white url(assets/background.png) no-repeat bottom center; - color: black; - border-left: solid 1px #ccc; + background-size: 50%; + color: #111; } -/* {{{ .sidebar */ -.sidebar { - position: fixed; - overflow: hidden; - top: 100px; /* same as .header:height */ - width: 11.44em; - margin: 0; - padding: 0; + +.menu { + padding: 1em 0; border: none; - z-index: 200; background: #f5f5f5; - border-top: solid 1px #ccc; - padding-top: 30px; +} +@media screen and (max-width: 45em) { + .menu { + border-bottom: solid 1px #ccc; + } } -.sidebar ul { +.menu ul { margin: 0; } -.sidebar ul { +.menu ul { padding: 0; list-style: none; background: transparent; } -.sidebar li { +.menu li { text-align: left; } -.sidebar ul li .selflink { +.menu ul li .selflink { color: #57075f; font-weight: bold; } -.sidebar ul li > span, -.sidebar ul li > a { +.menu ul li > span, +.menu ul li > a { display: block; padding: 0.3em 0.5em; text-decoration: none; border: 1px solid #f5f5f5; - color: #a756af; - background: transparent; - font-weight: normal; - font-size: 100%; + color: #a756af; + background: transparent; + font-weight: normal; + font-size: 1em; } -.sidebar ul li .selflink:hover { - border-top: 1px dotted #57075f; - border-bottom: 1px dotted #57075f; - background: #eeeeee; + +.menu a:hover { + color: #57075f; + background: #eeeeee; + text-decoration: none; } -.sidebar a:hover { - border-top: 1px dotted #57075f; - border-bottom: 1px dotted #57075f; - color: #57075f; - background: #eeeeee; - text-decoration: none; +.menu select { + margin: 0.5em 2%; + width: 94%; + max-width: 94%; + background: #fff; + border: 1px solid #ccc; + color: #57075F; + font-size: 1.2em; + display: none; } -/* .sidebar }}} */ -/* {{{ #content */ -#content { - padding-top: 1em; - overflow: auto; + +@media screen and (max-width: 45em) { + .js .menu ul {display: none;} + .js .menu select {display: block;} +} + + +main { + padding: 1em; } -#content a { +main a { color: #57075f; text-decoration: underline; } -#content a:hover { +main a:hover { text-decoration: underline; } -#content p { - text-align: justify; +main p { margin: 1em 0 1em 0; } +main li p { + margin-top: 0; +} -#content hr { +main hr { border: none; border-bottom: dotted 2px #bbbbbb; margin: 2em auto; } -#content h1 { - font-size: 180%; +main h1 { + font-size: 1.8em; font-weight: bold; + /*text-shadow: 2px 2px 1px #444;*/ + color: #57075F; +} +main h1.title { + margin-top: 0em; + font-size: 2em; color: #ffa430; - text-shadow: 2px 2px 1px #444; } -#content h2, -#content .header { - font-size: 140%; +main h2 { + /*color: #ffa430*/ + color: #57075F; +} +main h3 { + color: #57075F; +} + +main h2, +main .header { + font-size: 1.4em; font-weight: bold; } -#content h2 + p { +main h2 + p { margin-top: 0.75em; } -#content h3 { - font-size: 120%; +main h3 { + font-size: 1.2em; font-weight: bold; margin-bottom: 0; padding-bottom: 0; } -#content h3 + p { +main h3 + p { margin-top: 0.5em; } +h2 sup, +h3 sup { + font-weight: normal; +} -#content blockquote { +main blockquote { border-left: 2px solid #A756AF; margin: 0.5em 0; padding: 0.5em 0 0.5em 1em; } -#content blockquote p {margin: 0;} -#content blockquote p + p {margin-top: 1em;} +main blockquote p {margin: 0;} +main blockquote p + p {margin-top: 1em;} + -#content table { +main table { border-top: solid 1px #aaa; border-bottom: solid 1px #aaa; border-collapse: collapse; } -#content table th { +main table th { background: #fafafa; padding: 0.1em 0.5em; border-bottom: solid 1px #aaaaaa; color: #555555; } -#content table td { +main table td { padding: 0.1em 0.5em; border-top: solid 1px #ccc; } -#content .header a { +main .header a { text-decoration: none; } -#content .feedlink a { - text-decoration: none; +main .feedlink a { + text-decoration: none; + /*color: #ffa430;*/ } -#content .feedlink { - text-align: right; - margin-top: -2.8em; - min-height: 2.8em; +main .feedlink { + float: right; + text-align: left; + margin-top: -3.5em; +} +@media screen and (max-width: 400px) { + main .feedlink { + float: none; + margin-top: -2em; + margin-bottom: 2em; + } } -#content .feedlink .feedbutton { - font-size: 80%; - color: #57075f !important; +main .feedlink .feedbutton { + font-size: 0.8em; background: transparent; border: none; } -#content .feedlink .feedbutton:hover { - color: #57075f !important; +main .feedlink .feedbutton:hover { background: transparent; text-decoration: underline; } -#content .footnotes { - font-size: 80%; +main .footnotes { + font-size: 0.8em; } .half-section { @@ -365,7 +403,27 @@ thead td { width: 49.5%; } -/* #content }}} */ +/* main }}} */ + + +.graph { + display: inline-block; + vertical-align: top; + width: 45%; + margin: 1em 1%; + min-width: 20em; + text-align: center; +} + +#bandwidth {text-align: center;} +#bandwidth svg {text-align: left;} + +/* Tor nodes table */ +.tor-nodes {} +.tor-nodes th { + text-align: left; +} + /* Paypal donation forms */ .paypal-donation { @@ -373,6 +431,7 @@ thead td { vertical-align: top; width:45%; padding-right: 4%; + min-width: 20em; } .paypal-donation h4 { margin: 0 0 0.5em 0; @@ -393,7 +452,7 @@ thead td { margin: 2em auto; height: 85px; width: 600px; - background: lightGrey url(assets/progress_bar.png) top left repeat-x; + background: url(assets/progress_bar.png) top left repeat-x; border: 1px solid #ccc; border-bottom: 0; position: relative; @@ -401,12 +460,17 @@ thead td { .progress-bar-wrapper .progress-bar { position: absolute; height: 85px; - background: grey url(assets/progress_bar.png) bottom left repeat-x; + background: url(assets/progress_bar.png) left -85px repeat-x; + z-index: 2; /* animate progress bar */ -webkit-animation: progress-bar 1.5s; -moz-animation: progress-bar 1.5s; animation: progress-bar 1.5s; } + .progress-bar-wrapper .progress-bar-promises { + background-position: left bottom; + z-index: 1; + } /* progress bar animation*/ @-webkit-keyframes progress-bar { 0% { width: 0; } } @@ -424,13 +488,16 @@ thead td { color: #ccc; font-size: 0.9em; } + /* Promises amount */ + .progress-bar-wrapper .progress-bar-promises:after { + } /* Temperature bar */ .progress-bar-wrapper:before { content: " "; display: block; position: absolute; - z-index: 1; + z-index: 3; bottom: -5px; left: -1px; height: 5px; @@ -518,7 +585,7 @@ thead td { .inlinepage .inlineheader .pagedate { margin-top: 0; - font-size: 80%; + font-size: 0.8em; font-style: normal; color: #666; } @@ -527,24 +594,34 @@ thead td { /* {{{ #footer */ #footer { - position: relative; - margin: 0; - padding: 0.5em 0; - text-align: center; - color: white; - background: #57075f; - z-index: 400; + margin: 0; + padding: 0.5em 0; + text-align: center; + color: white; + background: #57075f; + font-size: 0.85em; +} +@media screen and (max-width: 45em) { + #footer { + text-align: left; + padding: 0.5em 1em; + font-size: 0.8em; + } +} +@media screen and (max-width: 480px) { + #footer .pagecopyright span { + display: block; + } } -#footer #pageinfo { - position: relative; - margin: auto; - padding: 0.1em 2em; - border-top: none; +#footer > div { + margin-top: 1em; } + #footer a { color: white; + text-decoration: none; } #footer a:hover { @@ -552,12 +629,12 @@ thead td { } #backlinks { - font-size: 80%; + font-size: 0.8em; margin-top: 0; } #footer #pageinfo div { - font-size: 80%; + font-size: 0.8em; margin-top: 0; margin-bottom: 0; } @@ -565,7 +642,7 @@ thead td { /* {{{ @media print */ @media print { - .sidebar, + .menu, .actions, .feedlink, #backlinks, @@ -608,7 +685,7 @@ thead td { .pageheader a, .pageheader .parentlinks a { - color: black; + color: #111; } .pageheader, @@ -630,14 +707,14 @@ thead td { display: inline; } - #content h1 { - color: black; - text-shadow: none; - border-bottom: solid #ccc 1px; - } + main h1 { + color: #111; + text-shadow: none; + border-bottom: solid #ccc 1px; + } - #content a:link:after, - #content a:visited:after { + main a:link:after, + main a:visited:after { content:" [" attr(href) "] "; }