MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 34: | Line 34: | ||
:root { | :root { | ||
--accent-colour: #724E2C; | --accent-colour: #724E2C; | ||
--accent-dark: #3D220C; | |||
} | } | ||
Line 40: | Line 41: | ||
font-family: OpenSans, "Noto Sans", sans-serif; | font-family: OpenSans, "Noto Sans", sans-serif; | ||
font-size: 1.1rem; | font-size: 1.1rem; | ||
} | |||
h1, h2 { | |||
border-bottom: 1px solid var(--accent-dark); | |||
} | |||
h1, h2, h3, h4, h5, h6 { | |||
color: var(--accent-dark); | |||
} | } | ||
Line 86: | Line 95: | ||
font-weight: bold; | font-weight: bold; | ||
border: 1px solid var(--accent-colour); | border: 1px solid var(--accent-colour); | ||
color: var(--accent-dark); | |||
} | } | ||
Revision as of 23:51, 21 June 2024
/*
IGNORE THE ‘CSS ERRORS’.
Those are just because this editor doesn’t understand that
browsers nowadays *do* in fact support CSS nesting...
*/
/* Fonts. */
@font-face {
font-family: OpenSans;
src: local("Open Sans"), local("Open-Sans"), url("https://gambianholiday.nguh.org/w/images/2/2f/Open-sans.regular.woff") format("woff");
}
@font-face {
font-family: OpenSans;
font-style: italic;
src: local("Open Sans Italic"), local("Open-Sans-Italic"), url("https://gambianholiday.nguh.org/w/images/d/df/Open-sans.italic.woff") format("woff");
}
@font-face {
font-family: OpenSans;
font-weight: bold;
src: local("Open Sans Bold"), local("Open-Sans-Bold"), url("https://gambianholiday.nguh.org/w/images/8/87/Open-sans.bold.woff") format("woff");
}
@font-face {
font-family: OpenSans;
font-style: italic;
font-weight bold;
src: local("Open Sans Bold Italic"), local("Open-Sans-Bold-Italic"), url("https://gambianholiday.nguh.org/w/images/9/9f/Open-sans.bold-italic.woff") format("woff");
}
/* Variables. */
:root {
--accent-colour: #724E2C;
--accent-dark: #3D220C;
}
/* Global settings. */
body {
font-family: OpenSans, "Noto Sans", sans-serif;
font-size: 1.1rem;
}
h1, h2 {
border-bottom: 1px solid var(--accent-dark);
}
h1, h2, h3, h4, h5, h6 {
color: var(--accent-dark);
}
/* This contains the formatting for infoboxes. */
div.template-infobox {
display: flex;
flex-direction: column;
width: 22em;
float: right;
clear: right;
border: 1px solid var(--accent-colour);
padding: 0;
margin-left: 1rem;
/* Title. */
& > p {
margin: 0;
text-align: center;
font-size: 1.2rem;
font-weight: bold;
width: 100%;
height: 2rem;
line-height: 2rem;
background: var(--accent-colour);
color: white;
}
/* Image. */
& img {
display: block;
margin: 0;
width: 22em;
height: auto;
object-fit: contain;
}
/* Table (e.g. 'name: ...'). */
& table {
border-collapse: collapse;
border-style: hidden;
}
& tr { border: 1px solid var(--accent-colour); }
& td:first-child {
width: 5rem;
font-weight: bold;
border: 1px solid var(--accent-colour);
color: var(--accent-dark);
}
& td {
padding: .25rem;
align-content: baseline;
}
}