MediaWiki:Timeless.css: Difference between revisions

From Access Tech Central
No edit summary
No edit summary
Line 1: Line 1:
/* All CSS here will be loaded for users of the Timeless skin */
/* TIMELESS FULL DARK MODE */


/* High-Contrast Dark Theme for Timeless */
/* 1. Global Background (The Canvas) */
:root {
html, body, #mw-content-container {
     --background-color-base: #000000 !important; /* Pure black for maximum contrast */
     background-color: #000000 !important;
     --color-base: #FFFFFF !important;           /* Pure white text */
    color: #ffffff !important;
     --color-primary: #FFFF00 !important;         /* Bright yellow links (High visibility) */
}
 
/* 2. Sidebars (Left and Right) */
#mw-site-navigation, #mw-related-navigation {
    background-color: #1a1a1a !important; /* Slightly lighter than black to see depth */
    border: none !important;
}
 
/* 3. The Main Content Area */
#content {
     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 */
}
}


body, #content {
/* 4. The Top Header Bar */
#mw-header-container {
     background-color: #000000 !important;
     background-color: #000000 !important;
     color: #FFFFFF !important;
     border-bottom: 2px solid #FFFF00 !important; /* Yellow accessibility line */
     font-size: 1.3rem !important;     /* Larger text for accessibility */
}
     line-height: 1.8 !important;       /* Better spacing for screen readers */
 
/* 5. Navigation Links in Sidebars */
.sidebar-chunk, .mw-portlet {
     background-color: transparent !important;
     color: #ffffff !important;
}
}


/* Make links pop against the black */
.sidebar-chunk a, .mw-portlet a {
a { color: #00FFFF !important; }      /* Cyan links */
    color: #00FFFF !important; /* Cyan for high-contrast links */
a:visited { color: #FF00FF !important; } /* Magenta visited links */
}


/* Ensure the search bar and buttons are visible */
/* 6. Fix for white text on white backgrounds in buttons */
input, button {
input, button, .mw-ui-button {
     background-color: #222 !important;
     background-color: #333 !important;
     color: #FFF !important;
     color: #fff !important;
     border: 2px solid #FFFF00 !important;
     border: 1px solid #FFFF00 !important;
}
}

Revision as of 06:32, 20 February 2026

/* TIMELESS FULL DARK MODE */

/* 1. Global Background (The Canvas) */
html, body, #mw-content-container {
    background-color: #000000 !important;
    color: #ffffff !important;
}

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

/* 3. The Main Content Area */
#content {
    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 */
#mw-header-container {
    background-color: #000000 !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;
}

.sidebar-chunk a, .mw-portlet a {
    color: #00FFFF !important; /* Cyan for high-contrast links */
}

/* 6. Fix for white text on white backgrounds in buttons */
input, button, .mw-ui-button {
    background-color: #333 !important;
    color: #fff !important;
    border: 1px solid #FFFF00 !important;
}