MediaWiki:Common.css
MediaWiki interface page
More actions
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
:root {
--bd-yellow: #f5d44c;
--bd-blue: #398ce6;
--bd-red: #c73d36;
--bd-green: #367f5f;
--bd-ink: #16181d;
--bd-muted: #626975;
--bd-line: var(--border-color-base, #a2a9b1);
--bd-surface: var(--color-surface-1, #fff);
--bd-soft: var(--color-surface-2, #f8f9fa);
}
.bd-home { color: var(--color-base, var(--bd-ink)); }
.bd-hero {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
gap: 1.5rem;
align-items: center;
padding: clamp(1rem, 3vw, 2rem);
border-radius: 8px;
background: #171717;
color: #fff;
margin-bottom: 1rem;
overflow: hidden;
}
.bd-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; margin: .25rem 0 .7rem; }
.bd-hero p { font-size: 1.05rem; max-width: 62ch; }
.bd-kicker { text-transform: uppercase; letter-spacing: .06em; font-weight: 800; color: var(--bd-yellow); }
.bd-actions a,
.bd-editor-links a,
.bd-link-list a {
display: inline-block;
margin: .22rem .35rem .22rem 0;
padding: .5rem .7rem;
border-radius: 6px;
background: var(--bd-soft);
border: 1px solid var(--bd-line);
color: var(--color-base, #202122);
text-decoration: none;
font-weight: 700;
}
.bd-hero .bd-actions a { background: #fff; border-color: #fff; color: #111; }
.bd-hero-art { text-align: center; }
.bd-hero-art .thumb,
.bd-card .thumb,
.bd-infobox .thumb { border: 0; background: transparent; margin: 0 auto; }
.bd-hero-art img { max-height: 340px; object-fit: contain; }
.bd-section,
.bd-card,
.bd-note,
.bd-page-intro {
border: 1px solid var(--bd-line);
border-radius: 8px;
background: var(--bd-surface);
}
.bd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.bd-grid-small { grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); }
.bd-section { padding: 1rem; }
.bd-section h2 { margin-top: 0; }
.bd-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; }
.bd-card { padding: .7rem; min-height: 76px; }
.bd-character-card,
.bd-song-card { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: .65rem; align-items: center; }
.bd-song-card { grid-template-columns: 64px minmax(0, 1fr); }
.bd-card-title { font-weight: 800; }
.bd-card-sub,
.bd-file-note { font-size: .9em; color: var(--bd-muted); }
.bd-page-intro,
.bd-note { padding: .75rem 1rem; margin: .75rem 0 1rem; background: var(--bd-soft); }
.bd-quote { border-left: 4px solid var(--bd-yellow); margin: 1rem 0; padding: .65rem 1rem; background: #fff8d5; }
.bd-quote p { font-size: 1.15rem; margin: .1rem 0; }
.bd-quote footer { font-size: .9rem; color: var(--bd-muted); }
.bd-ext-link { display: inline-block; padding: .2rem .45rem; border-radius: 6px; background: var(--bd-soft); text-decoration: none; font-weight: 700; }
.bd-infobox {
float: right;
width: min(330px, 38%);
margin: 0 0 1rem 1rem;
border: 1px solid var(--bd-line);
border-collapse: separate;
border-spacing: 0;
background: var(--bd-surface);
overflow: hidden;
border-radius: 8px;
font-size: .95rem;
}
.bd-song-infobox { width: min(340px, 38%); }
.bd-infobox th,
.bd-infobox td { padding: .55rem .65rem; border-top: 1px solid var(--bd-line); vertical-align: top; }
.bd-infobox tr:first-child th { border-top: 0; padding: .7rem; font-size: 1.1rem; text-align: center; }
.bd-infobox-media { text-align: center; background: var(--bd-soft); }
.bd-infobox-media .gallery { margin: 0 auto; }
.bd-data-table { width: 100%; }
.gallery img,
.bd-card img,
.bd-infobox img { max-width: 100%; height: auto; }
.mw-parser-output audio { max-width: 100%; }
@media (max-width: 900px) {
.bd-hero,
.bd-grid,
.bd-grid-small { grid-template-columns: 1fr; }
.bd-infobox { float: none; width: 100%; margin: .5rem 0 1rem; }
.bd-character-card { grid-template-columns: 64px minmax(0, 1fr); }
}
@media (max-width: 520px) {
.bd-card-grid { grid-template-columns: 1fr; }
.bd-actions a,
.bd-editor-links a,
.bd-link-list a { display: block; margin-right: 0; }
}