MediaWiki:Timeless.css: Difference between revisions

From Access Tech Central
No edit summary
No edit summary
Line 1: Line 1:
/* TIMELESS FULL DARK MODE */
/* 1. Global Page Reset - Forces the very bottom and back of the grid to black */
 
html, body, #mw-content-container, #mw-header-container, #mw-footer-container {
/* 1. Global Background (The Canvas) */
html, body, #mw-content-container {
     background-color: #000000 !important;
     background-color: #000000 !important;
     color: #ffffff !important;
     color: #ffffff !important;
}
}


/* 2. Sidebars (Left and Right) */
/* 2. Target the Left and Right Sidebar Containers specifically */
#mw-site-navigation, #mw-related-navigation {
#mw-site-navigation, #mw-related-navigation {
     background-color: #1a1a1a !important; /* Slightly lighter than black to see depth */
     background-color: #000000 !important;
    border: none !important;
}
}


/* 3. The Main Content Area */
/* 3. Target the Navigation 'Chunks' (The white boxes in your screenshot) */
#content {
.sidebar-chunk, .mw-portlet {
     background-color: #121212 !important;
     background-color: #121212 !important; /* Slightly lighter so you can see them */
    border: 1px solid #333333 !important;
     color: #ffffff !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 */
/* 4. Fix the Main Content Area and Header */
#mw-header-container {
#content, .mw-header {
     background-color: #000000 !important;
     background-color: #121212 !important;
    border-bottom: 2px solid #FFFF00 !important; /* Yellow accessibility line */
}
 
/* 5. Navigation Links in Sidebars */
.sidebar-chunk, .mw-portlet {
    background-color: transparent !important;
     color: #ffffff !important;
     color: #ffffff !important;
    border: 1px solid #333333 !important;
}
}


.sidebar-chunk a, .mw-portlet a {
/* 5. Force High-Contrast Colors for Text and Links */
    color: #00FFFF !important; /* Cyan for high-contrast links */
a { color: #00FFFF !important; }      /* Cyan links */
}
a:visited { color: #FF00FF !important; } /* Magenta links */
.mw-body h1, .mw-body h2 { color: #FFFF00 !important; } /* Yellow headings */


/* 6. Fix for white text on white backgrounds in buttons */
/* 6. Hide the "Set $wgLogos" error image */
input, button, .mw-ui-button {
.mw-wiki-logo { display: none !important; }
    background-color: #333 !important;
    color: #fff !important;
    border: 1px solid #FFFF00 !important;
}

Revision as of 06:33, 20 February 2026

/* 1. Global Page Reset - Forces the very bottom and back of the grid to black */
html, body, #mw-content-container, #mw-header-container, #mw-footer-container {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* 2. Target the Left and Right Sidebar Containers specifically */
#mw-site-navigation, #mw-related-navigation {
    background-color: #000000 !important;
}

/* 3. Target the Navigation 'Chunks' (The white boxes in your screenshot) */
.sidebar-chunk, .mw-portlet {
    background-color: #121212 !important; /* Slightly lighter so you can see them */
    border: 1px solid #333333 !important;
    color: #ffffff !important;
}

/* 4. Fix the Main Content Area and Header */
#content, .mw-header {
    background-color: #121212 !important;
    color: #ffffff !important;
    border: 1px solid #333333 !important;
}

/* 5. Force High-Contrast Colors for Text and Links */
a { color: #00FFFF !important; }       /* Cyan links */
a:visited { color: #FF00FF !important; } /* Magenta links */
.mw-body h1, .mw-body h2 { color: #FFFF00 !important; } /* Yellow headings */

/* 6. Hide the "Set $wgLogos" error image */
.mw-wiki-logo { display: none !important; }