MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* | /* ===================== | ||
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(1), | ||
#skin-client-prefs-skin-theme .citizen-client-prefs-radio:nth-child(2) { | #skin-client-prefs-skin-theme .citizen-client-prefs-radio:nth-child(2) { | ||
display: none !important; | display: none !important; | ||
} | } | ||
#skin-client-prefs-skin-theme form { | |||
#skin-client-prefs-skin-theme form { | |||
display: flex !important; | display: flex !important; | ||
flex-direction: column !important; | flex-direction: column !important; | ||
gap: 8px !important; | gap: 8px !important; | ||
} | } | ||
#skin-client-prefs-citizen-feature-pure-black { | #skin-client-prefs-citizen-feature-pure-black { | ||
margin-top: 10px; | margin-top: 10px; | ||
| Line 19: | Line 17: | ||
} | } | ||
/* DARK MODE | /* ===================== | ||
DARK MODE COLORS | |||
===================== */ | |||
:root.skin-theme-clientpref-night { | :root.skin-theme-clientpref-night { | ||
--color-surface-0: rgb(3, 7, 30); | |||
--color-surface-0: rgb(3, 7, 30); | --color-surface-1: #0a0e24; | ||
--color-surface-1: #0a0e24; | --color-surface-2: #141831; | ||
--color-surface-2: #141831; | |||
--color-progressive-oklch__l: 65.55%; | --color-progressive-oklch__l: 65.55%; | ||
--color-progressive-oklch__c: 0.211; | --color-progressive-oklch__c: 0.211; | ||
--color-progressive-oklch__h: 41.5; | --color-progressive-oklch__h: 41.5; | ||
--color-emphasized: #ffffff; | --color-emphasized: #ffffff; | ||
--color-base: #f2f2f2; | --color-base: #f2f2f2; | ||
} | } | ||
/* | /* ===================== | ||
HEADER | |||
===================== */ | |||
.mw-header { | .mw-header { | ||
background: linear-gradient(45deg, rgb(220, 47, 2) 0%, rgb(232, 93, 4) 50%, rgb(250, 163, 7) 100%) !important; | 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 { | |||
.mw-header .cdx-button, .mw-header .citizen-header-links a { | |||
color: white !important; | color: white !important; | ||
} | } | ||
/* ===================== | |||
DRAWER | |||
===================== */ | |||
#citizen-drawer__card, | |||
.citizen-drawer__card { | |||
#citizen-drawer__card | |||
background: rgb(3, 7, 30) !important; | background: rgb(3, 7, 30) !important; | ||
backdrop-filter: none !important; | |||
} | } | ||
.citizen-drawer__logo .mw-logo-icon { | .citizen-drawer__logo .mw-logo-icon { | ||
display: none !important; | display: none !important; | ||
} | } | ||
.citizen-drawer__siteinfo .mw-logo-wordmark { | .citizen-drawer__siteinfo .mw-logo-wordmark { | ||
display: none !important; | |||
} | } | ||
.citizen-drawer__logo::before { | .citizen-drawer__logo::before { | ||
content: ""; | content: ""; | ||
display: block; | display: block; | ||
width: 80px; | width: 80px; | ||
height: 80px; | height: 80px; | ||
background: url('/resources/assets/PyreWikiBanner.png') no-repeat center; | background: url('/resources/assets/PyreWikiBanner.png') no-repeat center; | ||
background-size: contain; | background-size: contain; | ||
} | } | ||
.citizen-drawer__siteinfo::after { | .citizen-drawer__siteinfo::after { | ||
content: "Pyre Wiki"; | content: "Pyre Wiki"; | ||
| Line 92: | Line 74: | ||
} | } | ||
/* | /* ===================== | ||
MAIN PAGE | |||
===================== */ | |||
.pyre-hero { | .pyre-hero { | ||
background: var(--color-surface-1, #0a0e24); | background: var(--color-surface-1, #0a0e24); | ||
| Line 138: | Line 85: | ||
text-align: center; | text-align: center; | ||
} | } | ||
.pyre-hero p { | .pyre-hero p { | ||
color: var(--color-subtle, #72777d); | color: var(--color-subtle, #72777d); | ||
margin-bottom: 16px; | margin-bottom: 16px; | ||
} | } | ||
.pyre-welcome-links { | .pyre-welcome-links { | ||
display: flex; | display: flex; | ||
| Line 152: | Line 97: | ||
text-align: center; | text-align: center; | ||
} | } | ||
.pyre-grid { | .pyre-grid { | ||
display: grid; | display: grid; | ||
| Line 158: | Line 102: | ||
gap: 16px; | gap: 16px; | ||
margin-bottom: 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 { | .pyre-card { | ||
border: 1px solid var(--border-color-base, #a2a9b1); | border: 1px solid var(--border-color-base, #a2a9b1); | ||
| Line 165: | Line 125: | ||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
.pyre-card-header { | .pyre-card-header { | ||
background: var(--color-surface-2, #141831); | background: var(--color-surface-2, #141831); | ||
| Line 174: | Line 133: | ||
border-radius: 8px 8px 0 0; | border-radius: 8px 8px 0 0; | ||
} | } | ||
.pyre-card-body { | .pyre-card-body { | ||
padding: 15px; | padding: 15px; | ||
line-height: 2; | line-height: 2; | ||
} | } | ||
.pyre-card-body-columns { | .pyre-card-body-columns { | ||
padding: 15px; | padding: 15px; | ||
| Line 186: | Line 143: | ||
} | } | ||
/* ===================== | |||
TERM HIGHLIGHT | |||
===================== */ | |||
.pyre-term { | |||
cursor: pointer; | |||
.pyre- | |||
} | } | ||
Revision as of 14:26, 19 March 2026
/* =====================
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;
}