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: #2a2f35; --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); } /* Vote (right of title) with solid focus/hover */ .build-voting-area { grid-area: vote; justify-self: end; margin: 0; } .build-voting-area a, .build-voting-area button, .build-voting-area input[type="button"], .build-voting-area input[type="submit"] { display: inline-flex; align-items: center; gap: .45rem; padding: .48rem .75rem; min-height: 36px; font-size: .92rem; line-height: 1; border-radius: 10px; border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent); background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 18%, transparent), color-mix(in oklab, var(--accent) 10%, transparent)); color: #ffd9be; cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease; } @media (hover:hover) { .build-voting-area a:hover, .build-voting-area button:hover, .build-voting-area input[type="button"]:hover, .build-voting-area input[type="submit"]:hover { transform: translateY(-1px); border-color: var(--accent); box-shadow: 0 6px 16px color-mix(in oklab, var(--accent) 35%, transparent); background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 28%, transparent), color-mix(in oklab, var(--accent) 16%, transparent)); } } .build-voting-area a:focus-visible, .build-voting-area button:focus-visible, .build-voting-area input[type="button"]:focus-visible, .build-voting-area input[type="submit"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }