MediaWiki:Timeless.css: Difference between revisions

From Access Tech Central
No edit summary
No edit summary
 
(66 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* TIMELESS FULL DARK MODE */
/* 1. UNIVERSAL FORCE - Targets every single element regardless of ID */
 
*,  
/* 1. Global Background (The Canvas) */
*::before,  
html, body, #mw-content-container {
*::after {
     background-color: #000000 !important;
     background-color: #111111 !important;
    background-image: none !important;
     color: #ffffff !important;
     color: #ffffff !important;
    border-color: #99c4c4 !important;
}
}


/* 2. Sidebars (Left and Right) */
/* 2. RE-ESTABLISH YOUR PREFERENCES - Prevents the universal rule from breaking your gray search and content boxes */
#mw-site-navigation, #mw-related-navigation {
#content {
     background-color: #1a1a1a !important; /* Slightly lighter than black to see depth */
     background-color: #333333 !important;
    border: none !important;
}
}


/* 3. The Main Content Area */
#searchInput {
#content {
     background-color: #333333 !important;
     background-color: #121212 !important;
    color: #ffffff !important;
    border: 1px solid #333333 !important;
    max-width: 1300px !important; /* Wider as requested */
    line-height: 1.8 !important;  /* Better for screen readers */
}
}


/* 4. The Top Header Bar */
/* 3. Keep your links and headers readable */
#mw-header-container {
a { color: #00ffff !important; }
     background-color: #000000 !important;
a:visited { color: #FF00FF !important; }
     border-bottom: 2px solid #FFFF00 !important; /* Yellow accessibility line */
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 */
}
}


/* 5. Navigation Links in Sidebars */
.sidebar-chunk, .mw-portlet {
    background-color: transparent !important;
    color: #ffffff !important;
}


.sidebar-chunk a, .mw-portlet a {
 
     color: #00FFFF !important; /* Cyan for high-contrast links */
 
 
 
/* 1. Target both the class and ID correctly */
.searchButton, #searchButton {
     background-color: #333333 !important; /* Dark gray to match your field */
    border: 1px solid #FFFF00 !important; /* Yellow border for accessibility */
    min-width: 45px !important;            /* Makes the button a larger target */
    cursor: pointer;
}
}


/* 6. Fix for white text on white backgrounds in buttons */
/* 2. This is the magic part that turns the black icon white */
input, button, .mw-ui-button {
.searchButton, #searchButton {
     background-color: #333 !important;
     filter: invert(1) brightness(2) !important;
    color: #fff !important;
    border: 1px solid #FFFF00 !important;
}
}

Latest revision as of 08:10, 20 February 2026

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






/* 1. Target both the class and ID correctly */
.searchButton, #searchButton {
    background-color: #333333 !important; /* Dark gray to match your field */
    border: 1px solid #FFFF00 !important; /* Yellow border for accessibility */
    min-width: 45px !important;            /* Makes the button a larger target */
    cursor: pointer;
}

/* 2. This is the magic part that turns the black icon white */
.searchButton, #searchButton {
    filter: invert(1) brightness(2) !important;
}