MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary Tag: Reverted |
No edit summary |
||
| (16 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
/* ===== FULL BACKGROUND IMAGE ===== */ | |||
body::before { | |||
content: ""; | |||
position: fixed; | |||
inset: 0; | |||
background: url("/wiki/images/hubspawn.png") center center / cover no-repeat; | |||
z-index: -1; | |||
} | |||
/* ===== TRANSPARENT OUTER LAYERS ===== */ | |||
body, | |||
.mw-page-container, | |||
.mw-body, | |||
.citizen-page-container, | |||
.citizen-body-container { | |||
background: transparent !important; | |||
} | |||
/* ===== HEADER / SIDEBAR / DRAWER ===== */ | |||
.citizen-header, | |||
.citizen-drawer, | |||
.citizen-sidebar, | |||
#mw-panel, | |||
#footer { | |||
background: rgba(15, 18, 22, 0.82) !important; | |||
backdrop-filter: blur(6px); | |||
} | |||
/* ===== MAIN CONTENT PANEL ===== */ | |||
.mw-body-content { | .mw-body-content { | ||
background: | background: rgba(20, 24, 30, 0.82) !important; | ||
backdrop-filter: blur(10px); | |||
border-radius: 12px !important; | border-radius: 12px !important; | ||
padding: 20px !important; | padding: 20px !important; | ||
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35) !important; | |||
color: #eaeaea !important; | |||
} | |||
/* ===== READABLE CONTENT TEXT ===== */ | |||
.mw-body-content, | |||
.mw-body-content p, | |||
.mw-body-content li, | |||
.mw-body-content td, | |||
.mw-body-content th, | |||
.mw-body-content span, | |||
.mw-body-content div, | |||
.mw-body-content label { | |||
color: #eaeaea !important; | |||
} | |||
/* ===== HEADINGS ===== */ | |||
.mw-body-content h1, | |||
.mw-body-content h2, | |||
.mw-body-content h3, | |||
#firstHeading, | |||
.mw-page-title-main { | |||
color: #f0320b !important; | |||
} | |||
/* ===== LINKS ===== */ | |||
.mw-body-content a { | |||
color: #f03b02 !important; | |||
} | |||
.mw-body-content a:hover { | |||
color: #ff6a3d !important; | |||
} | |||
/* ===== SIDEBAR / HEADER TEXT ===== */ | |||
.citizen-header, | |||
.citizen-drawer, | |||
.citizen-sidebar, | |||
#mw-panel { | |||
color: #f4e7c2 !important; | |||
} | |||
/* keep non-link text yellow ONLY */ | |||
.citizen-sidebar span:not(a span), | |||
.citizen-drawer span:not(a span), | |||
#mw-panel span:not(a span) { | |||
color: #f4e7c2 !important; | |||
} | |||
/* ===== FORCE SIDEBAR LINKS (FINAL OVERRIDE) ===== */ | |||
.citizen-sidebar a, | |||
.citizen-drawer a, | |||
#mw-panel a { | |||
color: #f03b02 !important; | |||
} | |||
.citizen-sidebar a span, | |||
.citizen-drawer a span, | |||
#mw-panel a span { | |||
color: #f03b02 !important; | |||
} | |||
.citizen-sidebar a:hover, | |||
.citizen-drawer a:hover, | |||
#mw-panel a:hover { | |||
color: #ff6a3d !important; | |||
} | |||
/* ===== EDITOR / FORM FIELDS ===== */ | |||
textarea, | |||
input, | |||
select, | |||
.mw-input, | |||
.oo-ui-inputWidget-input, | |||
.oo-ui-textInputWidget-input, | |||
.oo-ui-dropdownWidget-handle, | |||
.oo-ui-tagMultiselectWidget-handle, | |||
.ve-ui-mwSaveDialog, | |||
.ve-ui-overlay, | |||
.ve-ce-documentNode, | |||
.ve-init-mw-desktopArticleTarget-toolbar, | |||
.wikieditor-toolbar, | |||
.editOptions, | |||
.mw-editform #wpTextbox1 { | |||
background: rgba(255, 255, 255, 0.96) !important; | |||
color: #222 !important; | |||
} | |||
/* ===== PLACEHOLDER / HELP / INSTRUCTION TEXT ===== */ | |||
textarea::placeholder, | |||
input::placeholder, | |||
.oo-ui-labelElement-label, | |||
.oo-ui-fieldLayout-help, | |||
.mw-message-box, | |||
.editCheckboxes, | |||
.editOptions, | |||
#wpSummaryLabel, | |||
.mw-summary-preview, | |||
.comment, | |||
.hint, | |||
small { | |||
color: #444 !important; | |||
} | |||
/* ===== EDITOR BORDERS ===== */ | |||
textarea, | |||
input, | |||
select, | |||
.oo-ui-inputWidget-input, | |||
.oo-ui-textInputWidget-input, | |||
.mw-editform #wpTextbox1 { | |||
border: 1px solid rgba(240, 50, 11, 0.35) !important; | |||
border-radius: 8px !important; | |||
} | |||
/* ===== TOOLBAR TEXT ===== */ | |||
.wikieditor-toolbar *, | |||
.ve-ui-toolbar *, | |||
.oo-ui-toolbar *, | |||
.mw-editsection, | |||
.mw-editform label { | |||
color: #222 !important; | |||
} | |||
/* ===== RIGHT-SIDE CONTENTS PANEL FIX ===== */ | |||
#mw-panel-toc, | |||
.mw-table-of-contents-container, | |||
#toc, | |||
.toctitle, | |||
.toc, | |||
.tocfloat, | |||
.citizen-toc { | |||
background: rgba(20, 24, 30, 0.92) !important; | |||
color: #f4e7c2 !important; | |||
border: 1px solid rgba(240, 59, 2, 0.22) !important; | |||
border-radius: 12px !important; | |||
backdrop-filter: blur(8px); | |||
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important; | |||
} | |||
/* contents title */ | |||
#mw-panel-toc .sidebar-chapter, | |||
#mw-panel-toc .toc-title, | |||
#mw-panel-toc .toctitle, | |||
.citizen-toc__title, | |||
.toc .toctitle { | |||
color: #f4e7c2 !important; | |||
font-weight: 700 !important; | |||
} | |||
/* contents links */ | |||
#mw-panel-toc a, | |||
#mw-panel-toc a span, | |||
.citizen-toc a, | |||
.citizen-toc a span, | |||
.toc a, | |||
.toc a span, | |||
.mw-table-of-contents-container a, | |||
.mw-table-of-contents-container a span { | |||
color: #f4e7c2 !important; | |||
} | |||
/* hover state */ | |||
#mw-panel-toc a:hover, | |||
#mw-panel-toc a:hover span, | |||
.citizen-toc a:hover, | |||
.citizen-toc a:hover span, | |||
.toc a:hover, | |||
.toc a:hover span, | |||
.mw-table-of-contents-container a:hover, | |||
.mw-table-of-contents-container a:hover span { | |||
color: #ffb066 !important; | |||
} | |||
/* active/current section link */ | |||
#mw-panel-toc .is-active > a, | |||
#mw-panel-toc .is-active > a span, | |||
#mw-panel-toc .toclevel-1.active > a, | |||
.citizen-toc .is-active > a, | |||
.citizen-toc .is-active > a span { | |||
color: #f03b02 !important; | |||
font-weight: 700 !important; | |||
} | |||
/* blue vertical line */ | |||
#mw-panel-toc li::before, | |||
.citizen-toc li::before { | |||
border-color: rgba(240, 59, 2, 0.45) !important; | |||
} | } | ||
Latest revision as of 15:30, 6 April 2026
/* ===== FULL BACKGROUND IMAGE ===== */
body::before {
content: "";
position: fixed;
inset: 0;
background: url("/wiki/images/hubspawn.png") center center / cover no-repeat;
z-index: -1;
}
/* ===== TRANSPARENT OUTER LAYERS ===== */
body,
.mw-page-container,
.mw-body,
.citizen-page-container,
.citizen-body-container {
background: transparent !important;
}
/* ===== HEADER / SIDEBAR / DRAWER ===== */
.citizen-header,
.citizen-drawer,
.citizen-sidebar,
#mw-panel,
#footer {
background: rgba(15, 18, 22, 0.82) !important;
backdrop-filter: blur(6px);
}
/* ===== MAIN CONTENT PANEL ===== */
.mw-body-content {
background: rgba(20, 24, 30, 0.82) !important;
backdrop-filter: blur(10px);
border-radius: 12px !important;
padding: 20px !important;
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35) !important;
color: #eaeaea !important;
}
/* ===== READABLE CONTENT TEXT ===== */
.mw-body-content,
.mw-body-content p,
.mw-body-content li,
.mw-body-content td,
.mw-body-content th,
.mw-body-content span,
.mw-body-content div,
.mw-body-content label {
color: #eaeaea !important;
}
/* ===== HEADINGS ===== */
.mw-body-content h1,
.mw-body-content h2,
.mw-body-content h3,
#firstHeading,
.mw-page-title-main {
color: #f0320b !important;
}
/* ===== LINKS ===== */
.mw-body-content a {
color: #f03b02 !important;
}
.mw-body-content a:hover {
color: #ff6a3d !important;
}
/* ===== SIDEBAR / HEADER TEXT ===== */
.citizen-header,
.citizen-drawer,
.citizen-sidebar,
#mw-panel {
color: #f4e7c2 !important;
}
/* keep non-link text yellow ONLY */
.citizen-sidebar span:not(a span),
.citizen-drawer span:not(a span),
#mw-panel span:not(a span) {
color: #f4e7c2 !important;
}
/* ===== FORCE SIDEBAR LINKS (FINAL OVERRIDE) ===== */
.citizen-sidebar a,
.citizen-drawer a,
#mw-panel a {
color: #f03b02 !important;
}
.citizen-sidebar a span,
.citizen-drawer a span,
#mw-panel a span {
color: #f03b02 !important;
}
.citizen-sidebar a:hover,
.citizen-drawer a:hover,
#mw-panel a:hover {
color: #ff6a3d !important;
}
/* ===== EDITOR / FORM FIELDS ===== */
textarea,
input,
select,
.mw-input,
.oo-ui-inputWidget-input,
.oo-ui-textInputWidget-input,
.oo-ui-dropdownWidget-handle,
.oo-ui-tagMultiselectWidget-handle,
.ve-ui-mwSaveDialog,
.ve-ui-overlay,
.ve-ce-documentNode,
.ve-init-mw-desktopArticleTarget-toolbar,
.wikieditor-toolbar,
.editOptions,
.mw-editform #wpTextbox1 {
background: rgba(255, 255, 255, 0.96) !important;
color: #222 !important;
}
/* ===== PLACEHOLDER / HELP / INSTRUCTION TEXT ===== */
textarea::placeholder,
input::placeholder,
.oo-ui-labelElement-label,
.oo-ui-fieldLayout-help,
.mw-message-box,
.editCheckboxes,
.editOptions,
#wpSummaryLabel,
.mw-summary-preview,
.comment,
.hint,
small {
color: #444 !important;
}
/* ===== EDITOR BORDERS ===== */
textarea,
input,
select,
.oo-ui-inputWidget-input,
.oo-ui-textInputWidget-input,
.mw-editform #wpTextbox1 {
border: 1px solid rgba(240, 50, 11, 0.35) !important;
border-radius: 8px !important;
}
/* ===== TOOLBAR TEXT ===== */
.wikieditor-toolbar *,
.ve-ui-toolbar *,
.oo-ui-toolbar *,
.mw-editsection,
.mw-editform label {
color: #222 !important;
}
/* ===== RIGHT-SIDE CONTENTS PANEL FIX ===== */
#mw-panel-toc,
.mw-table-of-contents-container,
#toc,
.toctitle,
.toc,
.tocfloat,
.citizen-toc {
background: rgba(20, 24, 30, 0.92) !important;
color: #f4e7c2 !important;
border: 1px solid rgba(240, 59, 2, 0.22) !important;
border-radius: 12px !important;
backdrop-filter: blur(8px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}
/* contents title */
#mw-panel-toc .sidebar-chapter,
#mw-panel-toc .toc-title,
#mw-panel-toc .toctitle,
.citizen-toc__title,
.toc .toctitle {
color: #f4e7c2 !important;
font-weight: 700 !important;
}
/* contents links */
#mw-panel-toc a,
#mw-panel-toc a span,
.citizen-toc a,
.citizen-toc a span,
.toc a,
.toc a span,
.mw-table-of-contents-container a,
.mw-table-of-contents-container a span {
color: #f4e7c2 !important;
}
/* hover state */
#mw-panel-toc a:hover,
#mw-panel-toc a:hover span,
.citizen-toc a:hover,
.citizen-toc a:hover span,
.toc a:hover,
.toc a:hover span,
.mw-table-of-contents-container a:hover,
.mw-table-of-contents-container a:hover span {
color: #ffb066 !important;
}
/* active/current section link */
#mw-panel-toc .is-active > a,
#mw-panel-toc .is-active > a span,
#mw-panel-toc .toclevel-1.active > a,
.citizen-toc .is-active > a,
.citizen-toc .is-active > a span {
color: #f03b02 !important;
font-weight: 700 !important;
}
/* blue vertical line */
#mw-panel-toc li::before,
.citizen-toc li::before {
border-color: rgba(240, 59, 2, 0.45) !important;
}