MediaWiki:Timeless.css
From Access Tech Central
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)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/* 1. UNIVERSAL FORCE - Targets every single element regardless of ID */
*,
*::before,
*::after {
background-color: #111111 !important;
background-image: none !important;
color: #ffffff !important;
border-color: #99c4c4 !important;
}
/* 2. RE-ESTABLISH YOUR PREFERENCES - Prevents the universal rule from breaking your gray search and content boxes */
#content {
background-color: #333333 !important;
}
#searchInput {
background-color: #333333 !important;
}
/* 3. Keep your links and headers readable */
a { color: #00ffff !important; }
a:visited { color: #FF00FF !important; }
h1, h2, h3, h4 {
font-weight: bold;
color: #fff698 !important; }
/* 2. BIG FONT & SPACING - Global Text Increase */
html, body, p, div, li, span, a {
font-size: 1.1rem !important; /* Larger text for easier reading */
line-height: 1.6 !important; /* Better spacing for screen readers */
}
svg,
.mw-ui-icon,
.oo-ui-iconElement-icon, {
filter: invert(1) brightness(2) !important;
background-color: transparent !important; /* Prevents a black box around the white icon */
}
/* 1. THE ICON RESCUE - Targets all possible icon types in Timeless */
.mw-ui-icon,
.oo-ui-iconElement-icon,
.mw-editsection-visualeditor,
.mw-ui-button::before,
span[class^="mw-ui-icon-"],
span[class*=" mw-ui-icon-"],
.indicator,
#ca-watch a::before,
#ca-unwatch a::before,
.vector-menu-content-list .mw-list-item a::before {
filter: invert(1) brightness(2) !important; /* Flips black icons to bright white */
background-color: transparent !important; /* Prevents the black background from hiding the icon */
background-size: contain !important;
display: inline-block !important;
visibility: visible !important;
opacity: 1 !important;
}
/* 2. MAKE THEM LARGER - For better visibility and touch/click area */
.mw-ui-icon,
.oo-ui-iconElement-icon {
width: 32px !important;
height: 32px !important;
min-width: 32px !important;
}
/* 3. FIX FOR BUTTONS - Ensures the "Edit" and "History" labels stay white */
.oo-ui-labelElement-label {
color: #ffffff !important;
font-weight: bold !important;
}