MediaWiki:Vector.css: Difference between revisions

From QME Wiki
Jump to navigation Jump to search
No edit summary
Tag: Manual revert
No edit summary
Line 22: Line 22:
}
}
a:visited {
a:visited {
     color: #cccccc !important;
     color: #446644 !important;
}
}
a:hover {
a:hover {
Line 57: Line 57:
}
}
#content a:visited {
#content a:visited {
     color: #cccccc !important;
     color: #446644 !important;
}
}
#content a:hover {
#content a:hover {
Line 110: Line 110:
}
}
#mw-panel div.body ul li a:visited {
#mw-panel div.body ul li a:visited {
     color: #cccccc !important;
     color: #446644 !important;
}
}
#mw-panel div.body ul li a:hover {
#mw-panel div.body ul li a:hover {
Line 123: Line 123:
}
}
#mw-panel li.mw-list-item a:visited {
#mw-panel li.mw-list-item a:visited {
     color: #cccccc !important;
     color: #446644 !important;
}
}
#mw-list-item a:hover {
#mw-list-item a:hover {
Line 218: Line 218:
}
}
#footer a:visited {
#footer a:visited {
     color: #cccccc !important;
     color: #446644 !important;
}
}
#footer a:hover {
#footer a:hover {
Line 253: Line 253:
}
}


/* 9.a TOC Bullet Fix */
#toc ul {
#toc ul {
     list-style-type: none !important;
     list-style-type: none !important;
Line 259: Line 258:
}
}


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


/* 9.c TOC Background + Text Color Fix */
#toc {
#toc {
     background-color: #2a2a2a !important;
     background-color: #2a2a2a !important;
Line 273: Line 270:


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


/* 9.d TOC Heading Fix */
#mw-toc-heading {
#mw-toc-heading {
     background-color: transparent !important; /* Removed background shading */
     background-color: transparent !important;
     color: #f0f0f0 !important;
     color: #f0f0f0 !important;
     padding: 0.25em 0.5em !important;
     padding: 0.25em 0.5em !important;
Line 287: Line 283:
}
}


/* TOC Numbering Color Fix (normal and hover) */
#toc .tocnumber {
#toc .tocnumber {
     color: #7aa06e !important;
     color: #7aa06e !important;
Line 419: Line 414:


.cdx-message--warning.mw-warning-with-logexcerpt {
.cdx-message--warning.mw-warning-with-logexcerpt {
     background-color: #a94442 !important; /* Darker red shade */
     background-color: #a94442 !important;
     color: #f8f8f8 !important;
     color: #f8f8f8 !important;
     border: 1px solid #731f1f !important;
     border: 1px solid #731f1f !important;
Line 433: Line 428:
/* ------------------------------ */
/* ------------------------------ */


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


/* Show #firstHeading with margin and padding adjustments on all other pages */
body:not(.page-Main_Page) #firstHeading {
body:not(.page-Main_Page) #firstHeading {
     display: block !important;
     display: block !important;
Line 447: Line 440:
}
}


/* Body padding to prevent header overlap */
body {
body {
     padding-top: 3.5em !important;
     padding-top: 3.5em !important;
Line 456: Line 448:
/* ------------------------------ */
/* ------------------------------ */


/* Additional fixes to #p-cactions carrot */
input.vector-menu-checkbox#p-cactions-checkbox {
input.vector-menu-checkbox#p-cactions-checkbox {
     color: #e0e0e0 !important;
     color: #e0e0e0 !important;
}
}


/* Remove background shading for TOC title and heading */
.toctitle,
.toctitle,
#mw-toc-heading {
#mw-toc-heading {
Line 468: Line 458:
}
}


/* Ensure TOC numbers visible on dark background */
.tocnumber {
.tocnumber {
     color: #7aa06e !important;
     color: #7aa06e !important;
Line 477: Line 466:
}
}


/* Remove TOC bullets */
#toc li::before {
#toc li::before {
     content: none !important;
     content: none !important;
Line 483: Line 471:
}
}


/* Remove TOC shading inside content */
.toctitle {
.toctitle {
     background: none !important;
     background: none !important;

Revision as of 21:06, 10 July 2025

/* ========================================================= */
/* 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: #7aa06e !important;
}
a:visited {
    color: #446644 !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: #446644 !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 */
/* ------------------------------ */

#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: #7aa06e !important;
}
#mw-panel div.body ul li a:visited {
    color: #446644 !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: #446644 !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;
}

/* 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: #7aa06e !important;
}
#footer a:visited {
    color: #446644 !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;
}

#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: #7aa06e !important;
}
#toc li:hover .tocnumber {
    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: #000 !important;
}

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

.oo-ui-labelElement-label {
    color: #333 !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: #7aa06e !important;
}

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

.cdx-message--warning.mw-warning-with-logexcerpt {
    background-color: #a94442 !important;
    color: #f8f8f8 !important;
    border: 1px solid #731f1f !important;
    padding: 1em !important;
}

.cdx-message--warning.mw-warning-with-logexcerpt .cdx-message__icon {
    fill: #f8f8f8 !important;
}

/* ------------------------------ */
/* 19. Page Heading #firstHeading adjustments */
/* ------------------------------ */

body.page-Main_Page #firstHeading {
    display: none !important;
}

body:not(.page-Main_Page) #firstHeading {
    display: block !important;
    margin-top: 1.5em !important;
    padding-top: 0 !important;
    position: relative;
    z-index: 10;
}

body {
    padding-top: 3.5em !important;
}

/* ------------------------------ */
/* 20. Misc Adjustments */
/* ------------------------------ */

input.vector-menu-checkbox#p-cactions-checkbox {
    color: #e0e0e0 !important;
}

.toctitle,
#mw-toc-heading {
    background: none !important;
    color: #f0f0f0 !important;
}

.tocnumber {
    color: #7aa06e !important;
}
.tocnumber:hover,
li:hover .tocnumber {
    color: #a3be8c !important;
}

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

.toctitle {
    background: none !important;
}

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