Difference between revisions of "MediaWiki:Common.css"
Jump to navigation
Jump to search
Line 83: | Line 83: | ||
background-image: none; | background-image: none; | ||
} | } | ||
− | [data-lang="fr"] | + | [data-lang="fr"]::before { |
content: ">"; | content: ">"; | ||
} | } |
Revision as of 16:55, 28 September 2019
@import url('https://fonts.googleapis.com/css?family=Spectral:300,300i,400,400i,500,500i,600,600i&display=swap'); @import url('https://fonts.googleapis.com/css?family=Poppins:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i&display=swap&subset=latin-ext'); body { background-color: var(--main-color); } h1 { display:none } h2, .mw-body-content h2 { font-family: 'ribes black'; font-size: 2em; line-height: calc(2 * var(--line-height)); margin-top: 0; margin-bottom: 0; } h3, .mw-body-content h3 { font-weight: normal; font-family: "Poppins"; font-size: 1.5em; font-weight: 600; letter-spacing: 0.03em; margin-bottom: var(--line-height); } h2, h3, h4, h5, h6 { border-bottom: 0; color: var(--main-color); } p, .mw-body-content p { font-family: 'Spectral',serif; font-size: var(--font-size); max-width: 40em; line-height: var(--line-height); margin: 0 0 0 0; text-rendering: optimizelegibility; } .mw-parser-output a.external, a { font-family: "Poppins"; font-size: 0.8em; letter-spacing: 0.025em; font-weight: 500; } em { font-family: "Poppins"; } p:first-of-type { var(--line-height); } p + p { margin: 0em 0 0em 0; text-indent: 44pt; } li { margin-bottom: 0.8em; } .mw-content-ltr ol, .mw-content-rtl .mw-content-ltr ol, .mw-content-ltr ul, .mw-content-rtl .mw-content-ltr ul { padding: 0; font-family: "Poppins"; font-size: 0.95em; font-weight: 600; letter-spacing: 0.04em; line-height: 1.55em; } sup.reference { font-size: 0.75em; font-weight: 600; letter-spacing: 0.04em; line-height: 0; } #mw-panel .portal .body { background-image: none; } .vectorTabs, .vectorTabs ul, .vectorTabs ul li, .vectorTabs ul li.selected, .vectorTabs span { background-image: none; } [data-lang="fr"]::before { content: ">"; } @media screen { :root { --font-size: 1.75em; --line-height: 1.3em; --main-color: darkblue; --secondary-color: teal; } h2, .mw-body-content h2 { font-family: 'ribes black'; font-size: 8em; color: var(--main-color); line-height: calc(0.6 * var(--line-height)); margin-top: 0; margin-bottom: 0; } a { color: var(--secondary-color); } .mw-parser-output a.external { color: var(--main-color); } .mw-body, .mw-body-content { color: var(--main-color); } #mw-head { background: var(--main-color); color: white !important; } #mw-head a { color: white; } #mw-panel { background-color: var(--main-color);; width: 15em; } #mw-panel .portal h3, #mw-panel .portal .body li a { color:white; } .vectorTabs li.selected a, .vectorTabs li.selected a:visited { color: white; font-weight: bold; } .mw-body, #mw-head-base, #left-navigation, #footer { margin-left: 18em; margin-right: 12em; } .timeline { position:fixed; bottom:0; left:0; right:0; white-space:nowrap } .timeline--entry[data-loading]::before { content:"Loading"; padding:2em } .timeline--entry { display:inline-block; background:brown; border-radius:1em; height:1.5em; width:5px; margin-right:.5em; cursor:pointer; position:relative } .timeline--entry.active, .timeline--entry:hover { background:green } .timeline--entry .timeline--entry--data { display:none } .timeline--entry:hover .timeline--entry--data { transform:rotate(-90deg); transform-origin:top left; display:block; position:absolute; left:0; bottom:1em } .timeline--entry--data { white-space:nowrap } .revisions { max-height:80vh; white-space:nowrap; max-width:100%; overflow-x:auto } .revisions--revision { display:inline-block; height:80vh; width:100%; overflow-y:auto; white-space:normal; margin-right:2em } } @media print { :root { --line-height: 12pt; --font-size: 9pt; --main-color: darkblue; --secondary-color: teal; } .timeline { display:none } .revision:nth-of-type(n+2) { display:none } h2 { border-bottom: none; } p { text-align: left; margin-top: 0; } .mw-parser-output { columns: 2; column-gap: 10mm; } h2 { /* column-span: all; */ } h2 + h3 { margin-top: 0; } img { max-width: 100%; display: none; } [data-section] { page-break-after: always; } sup.reference { line-height: 0.5; /** Just for now to make sure all lines have the same height */ } a { text-decoration: none; border-bottom: none; } }