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.
/* Usually: 1=Day, 2=Night, 3=OS. This hides 1 and 3 */
#skin-client-prefs-skin-theme .citizen-client-prefs-radio:nth-child(1),
#skin-client-prefs-skin-theme .citizen-client-prefs-radio:nth-child(2) {
display: none !important;
}
/* 2. Force the remaining options (Night/Pure Black) to stack or center */
#skin-client-prefs-skin-theme form {
display: flex !important;
flex-direction: column !important;
gap: 8px !important;
}
/* 3. Ensure the 'Pure Black' toggle (if enabled) also stays visible below 'Night' */
#skin-client-prefs-citizen-feature-pure-black {
margin-top: 10px;
border-top: 1px solid var(--border-color-base);
padding-top: 10px;
}
/* DARK MODE: Your Deep Black-Blue branding */
:root.skin-theme-clientpref-night {
/* Your specific rgb(3, 7, 30) Background */
--color-surface-0: rgb(3, 7, 30);
--color-surface-1: #0a0e24; /* Slightly lighter shade for cards/boxes */
--color-surface-2: #141831; /* For inputs/search bars */
/* Fire Accent: Based on your rgb(232, 93, 4) */
--color-progressive-oklch__l: 65.55%;
--color-progressive-oklch__c: 0.211;
--color-progressive-oklch__h: 41.5;
--color-emphasized: #ffffff;
--color-base: #f2f2f2;
}
/* APPLY YOUR GRADIENT: This applies your specific fire gradient to the top header bar */
.mw-header {
background: linear-gradient(45deg, rgb(220, 47, 2) 0%, rgb(232, 93, 4) 50%, rgb(250, 163, 7) 100%) !important;
}
/* Fix text color on the gradient header so it stays readable */
.mw-header .cdx-button, .mw-header .citizen-header-links a {
color: white !important;
}
/* Target the drawer card specifically */
#citizen-drawer__card {
/* Your deep black-blue: rgb(3, 7, 30) */
background: rgb(3, 7, 30) !important;
}
/* 1. Inside the drawer, hide the white flame icon */
.citizen-drawer__logo .mw-logo-icon {
display: none !important;
}
.citizen-drawer__siteinfo .mw-logo-wordmark {
display: none !important;
}
/* 2. Replace it with your Banner image */
.citizen-drawer__logo::before {
content: "";
display: block;
width: 80px; /* Adjust width to fit your banner */
height: 80px; /* Adjust height to fit your banner */
background: url('/resources/assets/PyreWikiBanner.png') no-repeat center;
background-size: contain;
}
/* 3. Inject the "Pyre Wiki" text next to the new banner */
.citizen-drawer__siteinfo::after {
content: "Pyre Wiki";
color: #ffffff;
font-size: 1.4rem;
font-weight: 900;
text-transform: uppercase;
display: block;
margin-top: 5px;
}
/* 4. Fix the drawer background color to your deep blue */
.citizen-drawer__card {
background: rgb(3, 7, 30) !important;
backdrop-filter: none !important;
}
/* Fix card header backgrounds to respect dark theme */
.pyre-card-header {
background: var(--color-surface-2, #141831) !important;
color: var(--color-base, #f2f2f2) !important;
padding: 10px 15px;
border-bottom: 1px solid var(--border-color-base, #a2a9b1);
font-weight: bold;
border-radius: 8px 8px 0 0;
}
/* Fix welcome banner link alignment */
.pyre-welcome-links {
display: flex !important;
justify-content: center !important;
align-items: center !important;
gap: 16px !important;
flex-wrap: wrap !important;
text-align: center !important;
}
/* Fix community section alignment */
.pyre-community-row {
display: flex !important;
gap: 24px !important;
flex-wrap: wrap !important;
align-items: center !important;
padding: 15px !important;
}