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.
/* ==========================================================================
BPM Wiki — Citizen Skin + Mobile-First Styles
Uses Citizen / Codex CSS variables for seamless Light & Dark mode support
========================================================================== */
/* Genre Infobox */
.infobox {
float: right;
clear: right;
width: 22em;
max-width: 100%;
margin: 0 0 1.25rem 1.5rem;
padding: 0;
border: 1px solid var(--border-color-base, #c8ccd1);
border-radius: var(--border-radius-medium, 8px);
background-color: var(--color-surface-2, #f8f9fa);
color: var(--color-base, #202122);
border-collapse: separate;
border-spacing: 0;
overflow: hidden;
font-size: 0.875rem;
line-height: 1.45;
}
.infobox-title {
background-color: var(--color-surface-3, #eaecf0);
color: var(--color-emphasized, #101418);
font-size: 1.15em;
font-weight: 700;
text-align: center;
padding: 0.65em 0.85em;
border-bottom: 1px solid var(--border-color-base, #c8ccd1);
}
.infobox th {
text-align: left;
vertical-align: top;
padding: 0.45em 0.65em;
width: 36%;
font-weight: 600;
color: var(--color-emphasized, #101418);
border-top: 1px solid var(--border-color-subtle, #eaecf0);
}
.infobox td {
vertical-align: top;
padding: 0.45em 0.65em;
border-top: 1px solid var(--border-color-subtle, #eaecf0);
overflow-wrap: break-word;
}
/* Compact Audio Track Card */
.audio-card {
max-width: 500px;
width: 100%;
margin: 1rem 0 1.25rem 0;
padding: 0.75rem 0.85rem;
border: 1px solid var(--border-color-base, #c8ccd1);
border-radius: var(--border-radius-medium, 10px);
background-color: var(--color-surface-2, #f8f9fa);
color: var(--color-base, #202122);
box-sizing: border-box;
overflow: hidden;
}
.audio-card-top {
display: flex;
align-items: center;
gap: 0.8rem;
}
.audio-card-cover {
flex: 0 0 64px;
width: 64px;
height: 64px;
border-radius: 6px;
overflow: hidden;
background-color: var(--color-surface-3, #eaecf0);
line-height: 0;
}
.audio-card-cover img {
width: 64px;
height: 64px;
object-fit: cover;
display: block;
border-radius: 6px;
}
.audio-card-info {
flex: 1 1 auto;
min-width: 0;
}
.audio-card-track {
font-weight: 700;
font-size: 0.96rem;
line-height: 1.3;
color: var(--color-emphasized, #101418);
overflow-wrap: break-word;
}
.audio-card-artist {
font-size: 0.88rem;
line-height: 1.35;
color: var(--color-base, #202122);
margin-top: 0.1rem;
overflow-wrap: break-word;
}
.audio-card-meta {
font-size: 0.8rem;
line-height: 1.35;
color: var(--color-subtle, #54595d);
margin-top: 0.15rem;
}
.audio-card-player {
margin-top: 0.6rem;
}
.bpm-audio-player {
display: block;
width: 100%;
height: 36px;
}
/* References List */
.reflist {
font-size: 0.875rem;
column-width: 30em;
column-gap: 2rem;
overflow-wrap: anywhere;
}
.reflist ol.references {
margin-top: 0;
}
.reflist ol.references li {
break-inside: avoid;
margin-bottom: 0.25rem;
}
/* Main Page Genre Grid */
.bpm-hero {
padding: 1.25rem 1.4rem;
margin-bottom: 1.5rem;
border: 1px solid var(--border-color-base, #c8ccd1);
border-radius: var(--border-radius-medium, 10px);
background-color: var(--color-surface-2, #f8f9fa);
}
.bpm-hero-title {
font-size: 1.4rem;
font-weight: 700;
color: var(--color-emphasized, #101418);
margin-bottom: 0.35rem;
}
.bpm-hero-sub {
font-size: 0.95rem;
color: var(--color-subtle, #54595d);
margin: 0;
}
.bpm-home-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 1rem;
margin: 1rem 0 1.5rem 0;
}
.bpm-home-card {
padding: 1rem 1.15rem;
border: 1px solid var(--border-color-base, #c8ccd1);
border-radius: var(--border-radius-medium, 10px);
background-color: var(--color-surface-2, #f8f9fa);
transition: border-color 0.15s ease;
}
.bpm-home-card:hover {
border-color: var(--color-progressive, #3366cc);
}
.bpm-home-card-title {
font-size: 1.1rem;
font-weight: 700;
margin-bottom: 0.3rem;
}
.bpm-home-card-bpm {
display: inline-block;
font-size: 0.78rem;
font-weight: 600;
color: var(--color-subtle, #54595d);
background-color: var(--color-surface-3, #eaecf0);
padding: 0.12rem 0.5rem;
border-radius: 999px;
margin-bottom: 0.5rem;
}
.bpm-home-card-desc {
font-size: 0.88rem;
line-height: 1.45;
color: var(--color-base, #202122);
margin: 0;
}
/* ==========================================================================
Mobile Optimization (tablets & smartphones)
========================================================================== */
@media (max-width: 720px) {
.infobox {
float: none;
width: 100%;
margin: 0 0 1.25rem 0;
font-size: 0.86rem;
}
.audio-card {
max-width: 100%;
padding: 0.65rem 0.75rem;
}
.bpm-audio-player {
height: 40px;
}
.reflist {
column-count: 1;
column-width: auto;
font-size: 0.84rem;
}
}
@media (max-width: 640px) {
/* Un-float article photos on narrow phone screens so text isn't squeezed */
.mw-parser-output figure[typeof~="mw:File/Thumb"].mw-halign-right,
.mw-parser-output figure[typeof~="mw:File/Thumb"].mw-halign-left,
.mw-parser-output .thumb.tright,
.mw-parser-output .thumb.tleft {
float: none !important;
clear: both !important;
margin: 1rem auto !important;
max-width: 100% !important;
width: auto !important;
}
.mw-parser-output figure[typeof~="mw:File/Thumb"] img {
max-width: 100%;
height: auto;
}
.audio-card-cover {
flex: 0 0 56px;
width: 56px;
height: 56px;
}
.audio-card-cover img {
width: 56px;
height: 56px;
}
.bpm-hero {
padding: 1rem;
}
.bpm-home-grid {
grid-template-columns: 1fr;
}
/* Prevent wide galleries from causing horizontal scroll */
ul.gallery.mw-gallery-packed {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 0.5rem;
}
ul.gallery.mw-gallery-packed li.gallerybox {
max-width: 100% !important;
}
}