MediaWiki:Vector.css

From QME Wiki
Revision as of 16:52, 14 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;
}

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

a {
    color: #88cc88 !important; /* brighter green */
}
a:visited {
    color: #2e8b57 !important; /* dark green */
}
a:hover {
    color: #a3be8c !important; /* lighter green */
}
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: #88cc88 !important; /* updated */
}
#content a:visited {
    color: #2e8b57 !important; /* updated */
}
#content a:hover {
    color: #a3be8c !important; /* same */
}

/* ------------------------------ */
/* 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: #88cc88; /* updated bullet color */
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

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

#mw-panel {
    background-color: #1a1a1a !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}

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

#mw-panel div.portal {
    background-color: #1a1a1a !important;
    border-color: #444 !important;
}
#mw-panel div.portal h3 {
    color: #f0f0f0 !important;
    border-color: #444 !important;
}
#mw-panel div.body ul li a {
    color: #88cc88 !important; /* updated */
}
#mw-panel div.body ul li a:visited {
    color: #2e8b57 !important; /* updated */
}
#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: #88cc88 !important; /* updated */
}
#mw-panel li.mw-list-item a:visited {
    color: #2e8b57 !important; /* updated */
}
#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;
}

/* === DONATE LINK: Make Donate & Support link permanently yellow === */
#mw-panel a[href="https://buymeacoffee.com/QuincyExaminer"] {
    color: #ffff00 !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;
}

/* Fix top menu "More" checkbox label (carrot) color */
#p-cactions-label {
    color: #e0e0e0 !important;
}

#p-cactions-label::after {
    color: #e0e0e0 !important; /* The downward carrot */
}

/* ------------------------------ */
/* 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;
}

/* ------------------------------ */
/* 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: #88cc88 !important; /* updated */
}
#footer a:visited {
    color: #2e8b57 !important; /* updated */
}
#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;
}

#toc ul {
    list-style-type: none !important;
    padding-left: 1.5em !important;
}

#toc li::before {
    content: none !important;
    display: none !important;
}

#toc {
    background-color: #2a2a2a !important;
    color: #e0e0e0 !important;
    border: 1px solid #444 !important;
}

#toc .toctitle {
    background-color: transparent !important;
    color: #e0e0e0 !important;
    border: none !important;
}

#mw-toc-heading {
    background-color: transparent !important;
    color: #f0f0f0 !important;
    padding: 0.25em 0.5em !important;
    margin: 0 !important;
    font-size: 1.2em !important;
}

#toc .tocnumber {
    color: #88cc88 !important;
}
#toc li:hover .tocnumber {
    color: #a3be8c !important;
}

/* TOC toggle link ("[hide]" / "[show]") color override */
#toc .toctoggle,
#toc .toctoggle a,
.toctoggle,
.toctoggle a {
    color: #88cc88 !important;
    text-decoration: none !important;
}

#toc .toctoggle a:hover,
.toctoggle a:hover {
    color: #a3be8c !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;
}

/* ------------------------------ */
/* 12. Custom Blocks (Optional) */
/* ------------------------------ */

.qme-column {
    background-color: #2a2a2a !important;
    color: #e0e0e0 !important;
    border: 1px solid #83FCDB !important;
    padding: 1em;
}

.qme-heading {
    background-color: #3a3a3a !important;
    color: #f0f0f0 !important;
    border: 1px solid #444 !important;
}

/* ------------------------------ */
/* 13. MediaWiki Image Caption Fix */
/* ------------------------------ */

.thumbcaption {
    color: #2e8b57 !important; /* updated from black to dark green */
}

/* ------------------------------ */
/* 14. Code Blocks (pre, code, .mw-code) */
/* ------------------------------ */

pre,
code,
tt,
kbd,
samp,
.mw-code {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
    border: 1px solid #555 !important;
    padding: 0.5em !important;
}

/* ------------------------------ */
/* 15. OOUI Form Field Label Fix (Updated to White) */
/* ------------------------------ */

.oo-ui-labelElement-label {
    color: #ffffff !important;
}

.oo-ui-fieldsetLayout-header,
.oo-ui-fieldLayout-header label {
    color: #ffffff !important;
}

/* ------------------------------ */
/* 16. Special Pages: Remove extra bullets from search profile tabs */
/* ------------------------------ */

.mw-search-profile-tabs .search-types ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ------------------------------ */
/* 17. Confirm Account Tables Inverted Colors */
/* ------------------------------ */

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

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

.mw-confirmaccount-type-0::marker {
    color: #88cc88 !important; /* updated */
}

/* ------------------------------ */
/* 18. Warning Message Blocks (Admin Edit Warnings) */
/* ------------------------------ */

.cdx-message--warning.mw-warning-with-logexcerpt {
    background-color: #3a3a3a !important;
    color: #ffff00 !important;
    border-color: #999900 !important;
}

/* ============================== */
/* END Vector 2022 Dark Mode Custom */
/* ============================== */

/* Fix Ace Editor line number colors in gutter */
.ace_gutter {
    background-color: #ffffff !important;  /* keep gutter background white */
    border-right: 1px solid #ccc !important; /* optional separator */
}

.ace_gutter-cell {
    color: #000000 !important;  /* black text for line numbers */
    background-color: transparent !important; /* no override to gutter background */
    user-select: none; /* prevent accidental selection */
}

#mw-panel a[href="https://buymeacoffee.com/QuincyExaminer"] {
    color: #ffff00 !important;
    font-weight: normal !important;       /* keep normal */
    text-decoration: none !important;     /* no underline */
}
/* Admin Warning Box - Dark Mode Friendly */
.mw-editinginterface {
    background-color: #5a1a1a !important;  /* dark red/pink tone */
    color: #ffdddd !important;             /* light red/pink text for contrast */
    border: 1px solid #aa4444 !important; /* matching dark red border */
    padding: 10px !important;
    margin: 1em 0 !important;
    font-weight: bold !important;
    border-radius: 4px !important;
}

.mw-editinginterface strong {
    color: #ff6666 !important; /* brighter warning "Warning:" label */
}
By using this site, you agree to the Terms of Use. © 1996–2025 The Quincy Examiner / MTB. All rights reserved.