MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
imported>Migration bot Imported/generated during Bob Deluxe migration |
Use flex button groups for wiki links |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
.bd-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px, | :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: 1.5rem; | |||
overflow: hidden; | |||
} | |||
.bd-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; margin: .25rem 0 .85rem; } | |||
.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, | |||
.bd-editor-links, | |||
.bd-link-list { | |||
display: flex; | |||
flex-wrap: wrap; | |||
gap: .45rem; | |||
align-items: center; | |||
} | |||
.bd-actions a, | |||
.bd-editor-links a, | |||
.bd-link-list a { | |||
display: inline-flex; | |||
align-items: center; | |||
margin: 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-card, | |||
.bd-note, | |||
.bd-page-intro { | |||
border: 1px solid var(--bd-line); | |||
border-radius: 6px; | |||
background: var(--bd-surface); | |||
} | |||
.bd-grid { | |||
display: grid; | |||
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); | |||
gap: 1.5rem; | |||
align-items: start; | |||
margin: 1.5rem 0; | |||
} | |||
.bd-grid-small { grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); } | |||
.bd-section { min-width: 0; padding: 0; } | |||
.bd-section h2 { margin: 0 0 .7rem; } | |||
.bd-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .65rem; align-items: start; } | |||
.bd-song-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } | |||
.bd-card { padding: .65rem; min-height: 0; } | |||
.bd-character-card, | |||
.bd-song-card { display: grid; gap: .65rem; align-items: center; } | |||
.bd-character-card { grid-template-columns: 72px minmax(0, 1fr); min-height: 82px; } | |||
.bd-song-card { grid-template-columns: 56px minmax(0, 1fr); min-height: 62px; } | |||
.bd-character-card img { max-width: 72px; max-height: 96px; object-fit: contain; } | |||
.bd-song-card img { max-width: 56px; max-height: 56px; object-fit: contain; } | |||
.bd-card-title { font-weight: 800; } | |||
.bd-card-sub, | |||
.bd-file-note { font-size: .9em; color: var(--bd-muted); } | |||
.bd-card-sub { display: block; margin-top: .2rem; } | |||
.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, | |||
.bd-editor-links, | |||
.bd-link-list { display: grid; grid-template-columns: 1fr; } | |||
.bd-actions a, | |||
.bd-editor-links a, | |||
.bd-link-list a { display: flex; } | |||
} | |||
Latest revision as of 00:18, 22 May 2026
: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: 1.5rem;
overflow: hidden;
}
.bd-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; margin: .25rem 0 .85rem; }
.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,
.bd-editor-links,
.bd-link-list {
display: flex;
flex-wrap: wrap;
gap: .45rem;
align-items: center;
}
.bd-actions a,
.bd-editor-links a,
.bd-link-list a {
display: inline-flex;
align-items: center;
margin: 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-card,
.bd-note,
.bd-page-intro {
border: 1px solid var(--bd-line);
border-radius: 6px;
background: var(--bd-surface);
}
.bd-grid {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
gap: 1.5rem;
align-items: start;
margin: 1.5rem 0;
}
.bd-grid-small { grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); }
.bd-section { min-width: 0; padding: 0; }
.bd-section h2 { margin: 0 0 .7rem; }
.bd-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .65rem; align-items: start; }
.bd-song-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.bd-card { padding: .65rem; min-height: 0; }
.bd-character-card,
.bd-song-card { display: grid; gap: .65rem; align-items: center; }
.bd-character-card { grid-template-columns: 72px minmax(0, 1fr); min-height: 82px; }
.bd-song-card { grid-template-columns: 56px minmax(0, 1fr); min-height: 62px; }
.bd-character-card img { max-width: 72px; max-height: 96px; object-fit: contain; }
.bd-song-card img { max-width: 56px; max-height: 56px; object-fit: contain; }
.bd-card-title { font-weight: 800; }
.bd-card-sub,
.bd-file-note { font-size: .9em; color: var(--bd-muted); }
.bd-card-sub { display: block; margin-top: .2rem; }
.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,
.bd-editor-links,
.bd-link-list { display: grid; grid-template-columns: 1fr; }
.bd-actions a,
.bd-editor-links a,
.bd-link-list a { display: flex; }
}