MediaWiki:Common.css
Appearance
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 {
--mb-card-bg: rgba(12, 16, 28, .92);
--mb-card-border: rgba(255, 255, 255, .08);
--mb-card-blur: 8px;
--mb-card-radius: 12px;
--mb-card-shadow: 0 14px 36px rgba(0, 0, 0, .35);
--mb-side-bg: var(--mb-card-bg);
--mb-side-border: var(--mb-card-border);
--mb-side-blur: var(--mb-card-blur);
--mb-side-radius: 14px;
--mb-side-shadow: 0 12px 28px rgba(0, 0, 0, .35);
--mb-side-heading: #ffd47f;
--mb-overlay-bg: rgba(14, 18, 30, .92);
--mb-overlay-border: rgba(255, 255, 255, .10);
--mb-text: #e9edf4;
--mb-text-weak: #c8ced8;
--mb-pill-hover: rgba(255, 255, 255, .10);
}
html,
body { min-height: 100%; }
@supports (background-image: image-set(url("x.avif") type("image/avif"))) {
body {
background:
linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .55)),
image-set(
url(/resources/assets/megabonk-bg.avif) type("image/avif"),
url(/resources/assets/megabonk-bg.webp) type("image/webp"),
url(/resources/assets/megabonk-bg.jpg) type("image/jpeg")
) center/cover fixed no-repeat !important;
color: var(--mb-text-weak);
}
}
@supports not (background-image: image-set(url("x.avif") type("image/avif"))) {
body {
background:
linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .55)),
url(/resources/assets/megabonk-bg.jpg) center/cover fixed no-repeat !important;
color: var(--mb-text-weak);
}
}
a { color: #ffbe32; }
a:hover { color: #ffd47f; }
a:visited { color: #d7a431; }
a:active { color: #ffc555; }
.wikitable,
.infobox,
.mbox-small,
.navbox {
background: rgba(20, 24, 36, .78);
border-color: rgba(255, 255, 255, .08);
color: var(--mb-text);
}
.wikitable th, .wikitable td { border-color: rgba(255, 255, 255, .10); }
.mw-file-element {
background: transparent !important;
box-shadow: none !important;
border: 0 !important;
}
/* Vector skin cleanups */
.skin-vector-2022 .mw-content-container,
.skin-vector-2022 .vector-main-content,
.skin-vector-2022 .vector-header,
.skin-vector-2022 .vector-sticky-header,
.skin-vector-2022 .vector-sticky-header .vector-header-container,
.skin-vector-2022 .vector-page-titlebar,
.skin-vector-2022 .mw-workspace-container,
.skin-vector-2022 .mw-page-container,
.skin-vector-2022 .vector-tabs,
.skin-vector-2022 .vector-tabs .vector-tab-link,
.skin-vector-2022 .vector-page-titlebar .vector-page-titlebar-toc,
.skin-vector-2022 .mw-body .vector-body-before-content {
background: transparent !important;
border: 0 !important;
box-shadow: none !important;
}
.skin-vector-2022 .mw-body {
background: var(--mb-card-bg);
border: 1px solid var(--mb-card-border);
border-radius: var(--mb-card-radius);
box-shadow: var(--mb-card-shadow);
padding: 20px;
backdrop-filter: blur(var(--mb-card-blur)) saturate(115%);
-webkit-backdrop-filter: blur(var(--mb-card-blur)) saturate(115%);
color: var(--mb-text);
background-clip: padding-box;
}
.skin-vector-2022 #mw-panel,
.skin-vector-2022 #vector-page-tools {
background: var(--mb-side-bg) !important;
border: 1px solid var(--mb-side-border) !important;
border-radius: var(--mb-side-radius) !important;
box-shadow: var(--mb-side-shadow) !important;
backdrop-filter: blur(var(--mb-side-blur)) saturate(115%) !important;
-webkit-backdrop-filter: blur(var(--mb-side-blur)) saturate(115%) !important;
color: var(--mb-text);
}
.skin-vector-2022 .vector-toc {
background: var(--mb-side-bg) !important;
border: 1px solid var(--mb-side-border) !important;
border-radius: var(--mb-side-radius) !important;
box-shadow: 0 4px 12px rgba(0,0,0,.25) !important;
backdrop-filter: blur(var(--mb-side-blur)) saturate(115%) !important;
-webkit-backdrop-filter: blur(var(--mb-side-blur)) saturate(115%) !important;
color: var(--mb-text);
}
.skin-vector-2022 #mw-panel { padding: 12px !important; margin: 8px 10px !important; }
.skin-vector-2022 #mw-panel .vector-menu,
.skin-vector-2022 #mw-panel .vector-menu-portal,
.skin-vector-2022 #mw-panel .vector-menu-content { background: transparent !important; }
.skin-vector-2022 #mw-panel .vector-menu-heading,
.skin-vector-2022 #vector-page-tools .vector-menu-heading {
color: var(--mb-side-heading) !important;
font-weight: 700;
text-transform: uppercase;
font-size: .85rem;
border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
}
.mb-hero-block {
text-align: center;
margin: 30px auto;
padding: 20px 30px;
max-width: 900px;
border-radius: 16px;
background: rgba(12, 16, 28, .45);
border: 1px solid rgba(255, 255, 255, .08);
backdrop-filter: blur(10px) saturate(115%);
-webkit-backdrop-filter: blur(10px) saturate(115%);
}
/* =================================================================== */
/* ============== MEGABONK WIKI BUILDS =============================== */
/* =================================================================== */
.build-layout-container {
--accent: #f97316;
--border: rgba(255,255,255,.12);
--text: #f1f1f1;
--text-muted: #9ca3af;
}
.build-layout-container {
background: #121316;
border: 1px solid var(--border);
border-radius: 12px;
padding: 16px;
margin-bottom: 1.2rem;
color: var(--text);
}
/* center col */
.build-col-center {
display: grid;
grid-template-columns: 1fr auto;
grid-template-areas:
"title vote"
"author author";
align-items: center;
column-gap: .75rem;
}
/* title, author */
.build-title {
grid-area: title;
font-size: 1.6rem;
font-weight: 800;
color: var(--accent);
}
.build-author {
grid-area: author;
font-size: .9rem;
color: var(--text-muted);
}
/* ================== SIMPLE SINGLE-PILL VOTE ================== */
.build-voting-area {
grid-area: vote;
justify-self: end;
display: inline-flex;
align-items: center;
gap: 4px;
padding: 3px 8px;
border-radius: 6px;
border: 1px solid var(--accent);
background: transparent;
color: var(--accent);
font-size: .8rem;
line-height: 1;
white-space: nowrap;
}
.build-voting-area .vote-action,
.build-voting-area .vote-box {
display: inline-flex;
align-items: center;
margin: 0;
padding: 0;
background: none;
border: none;
}
.build-voting-area .vote-action { order: 1; }
.build-voting-area .vote-box { order: 2; }
.build-voting-area .vote-vote-link {
display: inline-flex;
align-items: center;
gap: 3px;
color: currentColor !important;
text-decoration: none !important;
font-weight: 600;
font-size: .8rem;
cursor: pointer;
}
.build-voting-area .vote-vote-link::before {
content: "▲";
font-size: .7rem;
transform: translateY(-1px);
opacity: .9;
}
.build-voting-area .vote-number {
font-weight: 600;
font-size: .8rem;
color: currentColor;
}
/* hover */
@media (hover:hover) {
.build-voting-area:hover {
border-color: #ff8c3c;
color: #ff8c3c;
}
}