MediaWiki:Vector.css

From QME Wiki
Revision as of 22:55, 9 July 2025 by Admin (talk | contribs)
Jump to navigation Jump to search

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.
/* ========================================================= */
/* Vector 2022 Dark Mode - Custom Skin Overrides             */
/* ========================================================= */

/* ------------------------------ */
/* 1. Base Page & Backgrounds */
/* ------------------------------ */

body,
#mw-head-base,
#mw-page-base {
    background-color: #1a1a1a !important;
    color: #e0e0e0 !important;
}

/* ------------------------------ */
/* Body Background - Set top gradient image */
/* ------------------------------ */

body {
    background-image: url('images/top-gradient.png'); /* adjust path as needed */
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
}

/* ------------------------------ */
/* 2. Links */
/* ------------------------------ */

a {
    color: #7aa06e !important;
}
a:visited {
    color: #cccccc !important;
}
a:hover {
    color: #a3be8c !important;
}
a.new {
    color: #ffff00 !important;
}

/* ------------------------------ */
/* 3. Content Area */
/* ------------------------------ */

#content,
.vector-body {
    background-color: #2a2a2a !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}

#content h1, #content h2, #content h3,
#content h4, #content h5, #content h6 {
    color: #f0f0f0 !important;
}

#content p, #content ul, #content ol,
#content li, #content dl, #content dd,
#content dt, #content div {
    color: #e0e0e0 !important;
}

#content a, .vector-body a {
    color: #7aa06e !important;
}
#content a:visited {
    color: #cccccc !important;
}
#content a:hover {
    color: #a3be8c !important;
}

/* ------------------------------ */
/* 3.a Custom bullets inside article content only */
/* ------------------------------ */

.ns-0 #content ul,
.ns-0 #content ol {
    list-style: none;
    padding-left: 1.5em;
}

.ns-0 #content ul li::before {
    content: "•";
    color: #7aa06e;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* ------------------------------ */
/* 4. Sidebar & Navigation Panel */
/* ------------------------------ */

/* Remove solid sidebar background to show top-gradient.png */
#mw-panel,
#mw-panel > div.portal,
#mw-panel .vector-menu-content,
#mw-panel .body {
    background-color: transparent !important;
    border: none !important;
}

#mw-panel {
    color: #e0e0e0 !important;
}

#mw-panel ul,
#mw-panel ol {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

#mw-panel div.portal h3 {
    color: #f0f0f0 !important;
    border-color: #444 !important;
}
#mw-panel div.body ul li a {
    color: #7aa06e !important;
}
#mw-panel div.body ul li a:visited {
    color: #cccccc !important;
}
#mw-panel div.body ul li a:hover {
    color: #a3be8c !important;
    background-color: #3a3a3a !important;
}
#mw-panel div.body ul li {
    color: #e0e0e0 !important;
}
#mw-panel li.mw-list-item a {
    color: #7aa06e !important;
}
#mw-panel li.mw-list-item a:visited {
    color: #cccccc !important;
}
#mw-list-item a:hover {
    color: #a3be8c !important;
    background-color: #3a3a3a !important;
}
#mw-panel li.mw-list-item {
    background-color: transparent !important;
    color: #e0e0e0 !important;
}

/* ------------------------------ */
/* 4.b Top-right user/login menu dropdown with spacing restored */
/* ------------------------------ */

#pt-userpage, #pt-anonuserpage,
#pt-login, #pt-logout, #pt-createaccount,
#pt-anontalk, #pt-mytalk, #pt-preferences,
#pt-watchlist, #pt-mycontris, #pt-globalwatchlist,
#pt-myalerts, #pt-messages {
    list-style: none !important;
    padding: 0.25em 0.5em !important;
    margin: 0.1em 0 !important;
    display: inline-block !important;
}

/* ------------------------------ */
/* 5. Top Tabs (Read/Edit/History) */
/* ------------------------------ */

#p-views ul li {
    background-color: #3a3a3a !important;
    border-color: #444 !important;
    background-image: none !important;
}
#p-views ul li a {
    color: #e0e0e0 !important;
    background-image: none !important;
}
#p-views ul li.selected {
    background-color: #2a2a2a !important;
    border-color: #444 !important;
}
#p-views ul li.selected a {
    color: #f0f0f0 !important;
}
#p-views ul li:not(.selected):hover {
    background-color: #4a4a4a !important;
}
#p-views ul li:not(.selected):hover a {
    color: #ffffff !important;
}

/* Vector 2022 Tabs */
.vector-menu-tabs,
.vector-menu-tabs a,
#mw-head .vector-menu-dropdown .vector-menu-heading {
    background-image: none !important;
    background-color: #3a3a3a !important;
    color: #e0e0e0 !important;
}

/* Fix downward caret in top menu checkbox for "more" */
.vector-menu-checkbox {
    color: #e0e0e0 !important;
    filter: invert(1) !important;
}

/* ------------------------------ */
/* 6. Header & Logo */
/* ------------------------------ */

#mw-head {
    background-color: #1a1a1a !important;
    border-bottom-color: #444 !important;
}
#mw-wiki-logo {
    background-color: transparent !important;
}

/* ------------------------------ */
/* 7. Footer */
/* ------------------------------ */

#footer {
    background-color: #1a1a1a !important;
    color: #e0e0e0 !important;
}
#footer a {
    color: #7aa06e !important;
}
#footer a:visited {
    color: #cccccc !important;
}
#footer a:hover {
    color: #a3be8c !important;
}
#footer li {
    color: #e0e0e0 !important;
}

/* ------------------------------ */
/* 8. Search Input */
/* ------------------------------ */

#searchInput {
    background-color: #ffffff !important;
    color: #333333 !important;
}
#searchInput::placeholder,
#searchInput::-webkit-input-placeholder,
#searchInput::-moz-placeholder,
#searchInput:-ms-input-placeholder,
#searchInput::-ms-input-placeholder {
    color: #666666 !important;
    opacity: 1 !important;
}

/* ------------------------------ */
/* 9. Table of Contents (TOC) */
/* ------------------------------ */

.mw-toc-heading {
    background-color: #3a3a3a !important;
    color: #f0f0f0 !important;
}

/* 9.a TOC Bullet Fix */
#toc ul {
    list-style-type: none !important;
    padding-left: 1.5em !important;
}

/* 9.b Remove custom bullets in TOC */
#toc li::before {
    content: none !important;
    display: none !important;
}

/* 9.c TOC Background + Text Color Fix */
#toc {
    background-color: #2a2a2a !important;
    color: #e0e0e0 !important;
    border: 1px solid #444 !important;
}

/* Remove background shading from TOC title and heading */
.toctitle, 
#mw-toc-heading,
#toc .toctitle {
    background-color: transparent !important;
    color: #f0f0f0 !important;
    border: none !important;
    padding: 0.25em 0.5em !important;
    margin: 0 !important;
    font-size: 1.2em !important;
}

/* Fix TOC numbering color and hover */
#toc .tocnumber {
    color: #7aa06e !important;
}

#toc li a:hover .tocnumber {
    color: #a3be8c !important;
    background-color: transparent !important;
}

/* ------------------------------ */
/* 10. Changes List & Legends */
/* ------------------------------ */

.mw-changeslist,
.mw-changeslist-legend {
    background-color: #2a2a2a !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}
.mw-changeslist-legend .mw-legend {
    color: #e0e0e0 !important;
}

/* ------------------------------ */
/* 11. Editing Interface */
/* ------------------------------ */

#editform,
#wpTextbox1 {
    background-color: #2a2a2a !important;
    color: #e0e0e0 !important;
    border: 1px solid #555 !important;
}

.divEditOptions,
.editOptions {
    background-color: #1a1a1a !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}

.divEditOptions input,
.divEditOptions textarea,
.divEditOptions select {
    background-color: #2a2a2a !important;
    color: #e0e0e0 !important;
    border: 1px solid #555 !important;
}

/* ------------------------------ */
/* Invert pink warning message backgrounds on admin editing source */
/* ------------------------------ */

.cdx-message.cdx-message--block.cdx-message--warning.mw-warning-with-logexcerpt {
    background-color: #661a1a !important; /* Darker reddish background */
    color: #f0f0f0 !important;
    border: 1px solid #993333 !important;
}

.cdx-message.cdx-message--block.cdx-message--warning.mw-warning-with-logexcerpt a {
    color: #f6bcbc !important;
}

.cdx-message.cdx-message--block.cdx-message--warning.mw-warning-with-logexcerpt .cdx-message__icon {
    filter: invert(1);
}

/* ------------------------------ */
/* 12. Tables inversion for mw-confirmaccount-body-0 */
/* ------------------------------ */

table.mw-confirmaccount-body-0 {
    background-color: #2a2a2a !important;
    border: 1px solid #555 !important;
    color: #e0e0e0 !important;
}

table.mw-confirmaccount-body-0 td {
    border: 1px solid #444 !important;
    color: #e0e0e0 !important;
    background-color: transparent !important;
}

table.mw-confirmaccount-body-0 strong {
    color: #a3be8c !important;
}

/* Ensure ::marker list bullets in confirmaccount lists invert */
.mw-confirmaccount-type-0::marker {
    color: #7aa06e !important;
}

/* ------------------------------ */
/* 13. Page Title and Header Adjustments */
/* ------------------------------ */

/* Padding and spacing for #firstHeading so it's not obscured */
#firstHeading {
    margin-top: 1.5em !important;
    padding-top: 0.25em !important;
    padding-bottom: 0.25em !important;
    color: #f0f0f0 !important;
}

/* Suppress #firstHeading only on Main Page */
body.page-Main_Page #firstHeading {
    display: none !important;
}

/* ------------------------------ */
/* 14. Small downward caret near "more" menu fix */
/* ------------------------------ */

input.vector-menu-checkbox#p-cactions-checkbox {
    filter: invert(1) !important;
    color: #e0e0e0 !important;
}

/* ------------------------------ */
/* 15. Remove background shading in TOC title and header */
/* (already handled in #9) */

/* ------------------------------ */
/* End of vector.css */
/* ========================================================= */
By using this site, you agree to the Terms of Use. © 1996–2025 The Quincy Examiner / MTB. All rights reserved.