:root { color-scheme: light dark; --site-bg: #fff; --menu-bg: var(--menu-bg) --text-color: #000; --link-color: var(--text-color); --article-bg: ##fcfcfc; --article-border-color: #f3f1f1; --article-shadow-color: rgba(0,0,0,0.42); --h2-color: var(--text-color); --blockquote-border-color: #d2d2d2; --blockquote-color: ##666666; --pre-bg: #f0f0f0; --font-size: 1.2em; --h1-size: 1.2em; --header-font-size: 0.9em; --site-font: monospace; --header-font: arial; } @media (prefers-color-scheme: dark) { :root { --site-bg: #000; --text-color: #abb1b1; --article-bg: #141818; --article-border-color: var(--article-bg); --article-shadow-color: var(--site-bg); --pre-bg: #1b2121; } } /* ----------- Entire site */ body { font-family: var(--site-font); padding: 0; font-size: var(--font-size); background-color: var(--site-bg); color: var(--text-color); max-width: 800px; margin: auto; } header { width: 100%; text-align: center; } main, footer { width: 100%; max-width: 95%; margin-left: auto; margin-right: auto; } img { max-width: 99%; width: auto; height: auto; } a { text-decoration: none; color: var(--link-color); } a:hover { text-decoration: underline; } /* ----------- Site header */ header { font-family: var(--header-font); font-size: var(--header-font-size); } h1 { font-size: var(--h1-size); margin: 0; padding-bottom: 5px; padding-top: 10px; } #top-nav #main-nav { padding-bottom: 5px; } #top-nav { } #top-nav a { margin-right: 5px; } /* ---------- Main */ main { margin-top: 30px; } /* ----------- Taxmomy list */ .taxonomy a { text-decoration: none; } .taxonomy li { list-style: none; } .taxonomy ul { padding: 0; } /* ----------- Articles / Posts */ article { margin-bottom: 20px; padding: 5px; line-height: 1.32em; } article p { text-align: justify; } article a { text-decoration: underline; } h3 { text-align: left; border: 0; border-bottom-width: 1px; border-style: solid; font-size: inherit; } a h2{ text-decoration: none; } h2 { text-align: left; padding: 0; margin: 0; color: var(--h2-color); font-size: 1.5em; line-height: 35px; } blockquote { border: 0; border-left: 3px; border-style: solid; border-color: var(--blockquote-border-color); margin-left: 15px; padding-left: 15px; color: var(--blockquote-color); } pre { width: 93%; padding-bottom: 5px; white-space: pre-wrap; padding: 11px; background-color: var(--pre-bg); word-break: keep-all; } pre code { max-width: 100%; word-break: break-all;x } /* ----------- Articles images */ article figure { text-align: center; margin: 0; max-width: 100%; font-size: 0.8em; } img.float-right { float: right; display: inline; margin-left: 10px; } img.center { max-width: 100%; height: auto; } /* ----------- Articles adjustement navigation */ .next-link { float: right; } /* ----------- Footer */ footer { text-align: center; padding: 10px 0 10px 0; } /* ---------- Footnotes */ a[href^="#fn:"], a[href^="#fnref:"] { text-decoration: none; } a[href^="#fn:"]:before{ content: '[' } a[href^="#fn:"]:after{ content: ']' } .footnotes p { margin: 3px; } .footnotes hr { display: none } .footnotes::before { content: "References"; border: 0; border-bottom-width: 1px; border-style: solid; font-weight: bold; display: block;; }