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.
/* =====================
THEME TOGGLES
===================== */
#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;
}
#skin-client-prefs-skin-theme form {
display: flex !important;
flex-direction: column !important;
gap: 8px !important;
}
#skin-client-prefs-citizen-feature-pure-black {
margin-top: 10px;
border-top: 1px solid var(--border-color-base);
padding-top: 10px;
}
/* =====================
DARK MODE COLORS
===================== */
:root.skin-theme-clientpref-night {
--color-surface-0: rgb(3, 7, 30);
--color-surface-1: #0a0e24;
--color-surface-2: #141831;
--color-progressive-oklch__l: 65.55%;
--color-progressive-oklch__c: 0.211;
--color-progressive-oklch__h: 41.5;
--color-emphasized: #ffffff;
--color-base: #f2f2f2;
}
/* =====================
HEADER
===================== */
.mw-header {
background: linear-gradient(45deg, rgb(220, 47, 2) 0%, rgb(232, 93, 4) 50%, rgb(250, 163, 7) 100%) !important;
}
.mw-header .cdx-button,
.mw-header .citizen-header-links a {
color: white !important;
}
/* =====================
DRAWER
===================== */
#citizen-drawer__card,
.citizen-drawer__card {
background: rgb(3, 7, 30) !important;
backdrop-filter: none !important;
}
.citizen-drawer__logo .mw-logo-icon {
display: none !important;
}
.citizen-drawer__siteinfo .mw-logo-wordmark {
display: none !important;
}
.citizen-drawer__logo::before {
content: "";
display: block;
width: 80px;
height: 80px;
background: url('/resources/assets/PyreWikiBanner.png') no-repeat center;
background-size: contain;
}
.citizen-drawer__siteinfo::after {
content: "Pyre Wiki";
color: #ffffff;
font-size: 1.4rem;
font-weight: 900;
text-transform: uppercase;
display: block;
margin-top: 5px;
}
/* =====================
MAIN PAGE
===================== */
.pyre-hero {
background: var(--color-surface-1, #0a0e24);
border: 1px solid var(--border-color-base, #a2a9b1);
padding: 30px 20px;
border-radius: 8px;
margin-bottom: 24px;
text-align: center;
}
.pyre-hero p {
color: var(--color-subtle, #72777d);
margin-bottom: 16px;
}
.pyre-welcome-links {
display: flex;
justify-content: center;
align-items: center;
gap: 16px;
flex-wrap: wrap;
text-align: center;
}
.pyre-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 16px;
margin-bottom: 16px;
}
.pyre-community {
border: 1px solid var(--border-color-base, #a2a9b1);
border-radius: 8px;
overflow: hidden;
margin-bottom: 16px;
}
.pyre-community-body {
display: flex;
gap: 24px;
flex-wrap: wrap;
align-items: center;
padding: 15px;
}
/* =====================
SHARED CARD COMPONENT
===================== */
.pyre-card {
border: 1px solid var(--border-color-base, #a2a9b1);
border-radius: 8px;
overflow: hidden;
}
.pyre-card-header {
background: var(--color-surface-2, #141831);
color: var(--color-base, #f2f2f2);
padding: 10px 15px;
border-bottom: 1px solid var(--border-color-base, #a2a9b1);
font-weight: bold;
border-radius: 8px 8px 0 0;
}
.pyre-card-body {
padding: 15px;
line-height: 2;
}
.pyre-card-body-columns {
padding: 15px;
columns: 2;
line-height: 2;
}
/* =====================
TERM HIGHLIGHT
===================== */
.pyre-term {
cursor: pointer;
}