Difference between revisions of "MediaWiki:Common.css"
Jump to navigation
Jump to search
(change color as variable) |
|||
Line 20: | Line 20: | ||
font-weight: 600; | font-weight: 600; | ||
letter-spacing: 0.03em; | letter-spacing: 0.03em; | ||
+ | margin-bottom: var(--line-height); | ||
} | } | ||
Line 44: | Line 45: | ||
p + p { | p + p { | ||
margin: 0em 0 0em 0; | margin: 0em 0 0em 0; | ||
− | text-indent: | + | text-indent: 44pt; |
} | } | ||
li { | li { | ||
Line 79: | Line 80: | ||
--font-size: 1.75em; | --font-size: 1.75em; | ||
--line-height: 1.3em; | --line-height: 1.3em; | ||
+ | --main-color: blue; | ||
} | } | ||
h2, .mw-body-content h2 { | h2, .mw-body-content h2 { | ||
Line 84: | Line 86: | ||
font-size: 8em; | font-size: 8em; | ||
line-height: calc(1.5 * var(--line-height)); | line-height: calc(1.5 * var(--line-height)); | ||
− | color: | + | color: var(--main-color); |
margin-top: 0; | margin-top: 0; | ||
margin-bottom: 0; | margin-bottom: 0; | ||
} | } | ||
.mw-body, .mw-body-content { | .mw-body, .mw-body-content { | ||
− | color: | + | color: var(--main-color); |
} | } | ||
#mw-head { | #mw-head { | ||
− | background: | + | background: var(--main-color); |
color: white !important; | color: white !important; | ||
} | } | ||
Line 99: | Line 101: | ||
} | } | ||
#mw-panel { | #mw-panel { | ||
− | background-color: | + | background-color: var(--main-color);; |
width: 15em; | width: 15em; | ||
} | } |
Revision as of 16:01, 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'); 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); } 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; } a { font-family: "Poppins"; font-size: 0.87em; 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 { margin: 2.8em 0px 0 35.6em; 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.55em; 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; } @media screen { :root { --font-size: 1.75em; --line-height: 1.3em; --main-color: blue; } h2, .mw-body-content h2 { font-family: 'ribes black'; font-size: 8em; line-height: calc(1.5 * var(--line-height)); color: var(--main-color); margin-top: 0; margin-bottom: 0; } .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; } .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; } }