|
|
| Line 150: |
Line 150: |
| font-weight: 900; | | font-weight: 900; |
| text-decoration: none; | | text-decoration: none; |
| display:flex; | | display:flex |
| align-items:center;
| |
| justify-content:center;
| |
| }
| |
| .a11y-help:focus-visible{
| |
| outline: 3px solid var(--a11y-focus);
| |
| outline-offset: 2px;
| |
| }
| |
| | |
| /* Buttons */
| |
| .a11y-row{
| |
| display:flex;
| |
| gap: 8px;
| |
| flex-wrap: wrap;
| |
| margin-bottom: 10px;
| |
| }
| |
| .a11y-btn{
| |
| border: 1px solid #D1D5DB;
| |
| background:#fff;
| |
| color:#111827;
| |
| padding: 8px 10px;
| |
| border-radius: 999px;
| |
| font-size: 14px;
| |
| font-weight: 800;
| |
| cursor: pointer;
| |
| }
| |
| .a11y-btn[aria-pressed="true"]{
| |
| background:#111827;
| |
| color:#fff;
| |
| }
| |
| .a11y-btn:focus-visible{
| |
| outline: 3px solid var(--a11y-focus);
| |
| outline-offset: 2px;
| |
| }
| |
| | |
| .a11y-hint{
| |
| font-size: 13px;
| |
| color: var(--a11y-fg);
| |
| line-height: 1.4;
| |
| }
| |
| | |
| /* Screen reader only */
| |
| .a11y-sr{
| |
| position:absolute;
| |
| width:1px;
| |
| height:1px;
| |
| overflow:hidden;
| |
| clip:rect(0,0,0,0);
| |
| }
| |
| | |
| /* =========================================================
| |
| Feature classes
| |
| ========================================================= */
| |
| | |
| /* ------------------------------
| |
| High contrast (black/yellow/blue)
| |
| ------------------------------ */
| |
| body.a11y-contrast{
| |
| background:#000 !important;
| |
| color:#FFD400 !important;
| |
| | |
| --a11y-bg: #000;
| |
| --a11y-border: rgba(255,212,0,.7);
| |
| --a11y-fg: #FFD400;
| |
| --a11y-focus: #FFD400;
| |
| --a11y-link-underline: #36C;
| |
| }
| |
| | |
| body.a11y-contrast a,
| |
| body.a11y-contrast a:visited{
| |
| color:#FFD400 !important;
| |
| }
| |
| | |
| /* Headings */
| |
| body.a11y-contrast h1,
| |
| body.a11y-contrast h2,
| |
| body.a11y-contrast h3,
| |
| body.a11y-contrast h4,
| |
| body.a11y-contrast h5,
| |
| body.a11y-contrast h6{
| |
| color:#FFD400 !important;
| |
| border-color:#FFD400 !important;
| |
| }
| |
| | |
| /* Main containers (Timeless needs explicit coverage) */
| |
| body.a11y-contrast #mw-wrapper,
| |
| body.a11y-contrast #mw-content-container,
| |
| body.a11y-contrast #mw-content,
| |
| body.a11y-contrast .mw-body,
| |
| body.a11y-contrast .mw-parser-output{
| |
| background:#000 !important;
| |
| color:#FFD400 !important;
| |
| }
| |
| | |
| /* Sidebars / tools */
| |
| body.a11y-contrast #site-navigation,
| |
| body.a11y-contrast #site-tools,
| |
| body.a11y-contrast #page-tools,
| |
| body.a11y-contrast .mw-portlet,
| |
| body.a11y-contrast .mw-portlet-body{
| |
| background:#000 !important;
| |
| color:#FFD400 !important;
| |
| border-color: rgba(255,212,0,.7) !important;
| |
| }
| |
| | |
| /* Ensure links inside toolboxes */
| |
| body.a11y-contrast #site-navigation a,
| |
| body.a11y-contrast #site-tools a,
| |
| body.a11y-contrast #page-tools a{
| |
| color:#FFD400 !important;
| |
| }
| |
| | |
| /* A11y UI in contrast */
| |
| body.a11y-contrast .a11y-panel,
| |
| body.a11y-contrast .a11y-toggle{
| |
| background:#000 !important;
| |
| }
| |
| body.a11y-contrast .a11y-btn{
| |
| background:#000 !important;
| |
| color:#FFD400 !important;
| |
| border:2px solid rgba(255,212,0,.85) !important;
| |
| }
| |
| | |
| /* ------------------------------
| |
| Underline links
| |
| ------------------------------ */
| |
| /* Underline links – MediaWiki-style */
| |
| body.a11y-underline-links a{
| |
| text-decoration: none !important;
| |
| border-bottom: 2px solid var(--a11y-link-underline);
| |
| padding-bottom: 0.05em;
| |
| }
| |
| /* In contrast mode you currently want blue (#36c) */
| |
| body.a11y-underline-links.a11y-contrast a{
| |
| border-bottom-color: #36C !important;
| |
| }
| |
| | |
| /* ------------------------------
| |
| Text spacing
| |
| ------------------------------ */
| |
| body.a11y-spacing-plus{
| |
| line-height: 1.8 !important;
| |
| letter-spacing: 0.06em !important;
| |
| word-spacing: 0.16em !important;
| |
| }
| |
| body.a11y-spacing-minus{
| |
| line-height: 1.45 !important;
| |
| letter-spacing: 0.01em !important;
| |
| word-spacing: 0.02em !important;
| |
| }
| |
| | |
| /* ------------------------------
| |
| Large cursors (wiki-hosted)
| |
| ------------------------------ */
| |
| body.a11y-cursor-white,
| |
| body.a11y-cursor-white *{
| |
| cursor: url("/index.php/Special:FilePath/large-arrow-white-64.png") 8 8, auto !important;
| |
| }
| |
| body.a11y-cursor-yellow,
| |
| body.a11y-cursor-yellow *{
| |
| cursor: url("/index.php/Special:FilePath/large-arrow-yellow-64.png") 8 8, auto !important;
| |
| }
| |
| | |
| /* ------------------------------
| |
| Reading ruler
| |
| ------------------------------ */
| |
| #a11y-ruler{
| |
| position: fixed;
| |
| left: 0;
| |
| top: 0;
| |
| height: 22px;
| |
| width: 100vw;
| |
| z-index: 9999;
| |
| pointer-events: none;
| |
| | |
| background: linear-gradient(
| |
| to bottom,
| |
| #FFD400 0%,
| |
| #FFD400 40%,
| |
| #000000 40%,
| |
| #000000 60%,
| |
| #FFD400 60%,
| |
| #FFD400 100%
| |
| );
| |
| }
| |
| #a11y-ruler[hidden]{ display:none !important; }
| |
| | |
| /* =========================================================
| |
| MediaWiki: extra HIGH CONTRAST coverage (Timeless + Vector)
| |
| Add at END of Gadget CSS so it wins.
| |
| ========================================================= */
| |
| | |
| /* TOC (Timeless/Vector both use variants) */
| |
| body.a11y-contrast #toc,
| |
| body.a11y-contrast .toc,
| |
| body.a11y-contrast #toc * ,
| |
| body.a11y-contrast .toc *{
| |
| background: #000 !important;
| |
| color: #FFD400 !important;
| |
| border-color: rgba(255, 212, 0, 0.75) !important;
| |
| }
| |
| | |
| /* Category links area */
| |
| body.a11y-contrast .mw-normal-catlinks,
| |
| body.a11y-contrast .mw-normal-catlinks *,
| |
| body.a11y-contrast .catlinks,
| |
| body.a11y-contrast .catlinks *{
| |
| background: #000 !important;
| |
| color: #FFD400 !important;
| |
| border-color: rgba(255, 212, 0, 0.75) !important;
| |
| }
| |
| | |
| /* Wikitables (and common table elements that retain dark text) */
| |
| body.a11y-contrast table,
| |
| body.a11y-contrast table *,
| |
| body.a11y-contrast .wikitable,
| |
| body.a11y-contrast .wikitable *,
| |
| body.a11y-contrast .mw-datatable,
| |
| body.a11y-contrast .mw-datatable *{
| |
| background: #000 !important;
| |
| color: #FFD400 !important;
| |
| border-color: rgba(255, 212, 0, 0.75) !important;
| |
| }
| |
| | |
| /* Table headers sometimes have their own background */
| |
| body.a11y-contrast .wikitable th,
| |
| body.a11y-contrast table th{
| |
| background: #000 !important;
| |
| color: #FFD400 !important;
| |
| }
| |
| | |
| /* Figures/captions */
| |
| body.a11y-contrast figure,
| |
| body.a11y-contrast figure *,
| |
| body.a11y-contrast .mw-halign-center,
| |
| body.a11y-contrast .mw-halign-centre,
| |
| body.a11y-contrast .mw-halign-center *,
| |
| body.a11y-contrast .mw-halign-centre *{
| |
| background: #000 !important;
| |
| color: #FFD400 !important;
| |
| }
| |
| | |
| /* Thumb frames / image captions */
| |
| body.a11y-contrast .thumb,
| |
| body.a11y-contrast .thumb *,
| |
| body.a11y-contrast .thumbinner,
| |
| body.a11y-contrast .thumbinner *,
| |
| body.a11y-contrast .thumbcaption,
| |
| body.a11y-contrast .thumbcaption *{
| |
| background: #000 !important;
| |
| color: #FFD400 !important;
| |
| border-color: rgba(255, 212, 0, 0.75) !important;
| |
| }
| |
| | |
| /* Code-like blocks */
| |
| body.a11y-contrast pre,
| |
| body.a11y-contrast pre *,
| |
| body.a11y-contrast code,
| |
| body.a11y-contrast code *{
| |
| background: #000 !important;
| |
| color: #FFD400 !important;
| |
| border-color: rgba(255, 212, 0, 0.75) !important;
| |
| }
| |
| | |
| /* Safety: ensure visited links don’t revert */
| |
| body.a11y-contrast a:visited,
| |
| body.a11y-contrast .mw-parser-output a:visited{
| |
| color: #FFD400 !important;
| |
| }
| |
| | |
| /* =========================================================
| |
| HIGH CONTRAST: Footer (Vector + Timeless)
| |
| ========================================================= */
| |
| body.a11y-contrast #mw-footer,
| |
| body.a11y-contrast #mw-footer-container{
| |
| background: #000 !important;
| |
| color: #FFD400 !important;
| |
| background-image: none !important;
| |
| border-top: 10px solid #FFD400 !important;
| |
| }
| |
| body.a11y-contrast #footer-list,
| |
| body.a11y-contrast #footer-list *,
| |
| body.a11y-contrast #footer-icons,
| |
| body.a11y-contrast #footer-icons *{
| |
| background: #000 !important;
| |
| color: #FFD400 !important;
| |
| }
| |
| body.a11y-contrast #mw-footer a,
| |
| body.a11y-contrast #mw-footer a:visited{
| |
| color: #FFD400 !important;
| |
| text-decoration-color: #FFD400 !important;
| |
| }
| |
| body.a11y-contrast #mw-footer .mw-portlet,
| |
| body.a11y-contrast #mw-footer .mw-portlet-body{
| |
| background: #000 !important;
| |
| color: #FFD400 !important;
| |
| border-color: rgba(255, 212, 0, 0.75) !important;
| |
| }
| |
| body.a11y-contrast #mw-footer hr{
| |
| border-color: #FFD400 !important;
| |
| }
| |
| | |
| /* =========================================================
| |
| Underline links: ensure TOC wins over table border-color rules
| |
| ========================================================= */
| |
| body.a11y-underline-links #toc a,
| |
| body.a11y-underline-links .toc a{
| |
| border-bottom-color: var(--a11y-link-underline) !important;
| |
| }
| |
| body.a11y-underline-links.a11y-contrast #toc a,
| |
| body.a11y-underline-links.a11y-contrast .toc a{
| |
| border-bottom-color: #36C !important;
| |
| }
| |
| | |
| /* =========================================================
| |
| HIGH CONTRAST: Header + search + user tools
| |
| ========================================================= */
| |
| | |
| /* Make header + content containers black (your enhancement #3) */
| |
| body.a11y-contrast #mw-header-container,
| |
| body.a11y-contrast #mw-content-container{
| |
| background: #000 !important;
| |
| background-image: none !important;
| |
| }
| |
| | |
| /* Timeless header containers */
| |
| body.a11y-contrast #mw-header,
| |
| body.a11y-contrast #mw-header-container .ts-inner,
| |
| body.a11y-contrast #mw-header-container .mw-body,
| |
| body.a11y-contrast #mw-header-container .mw-portlet,
| |
| body.a11y-contrast #mw-header-container .mw-portlet-body{
| |
| background: #000 !important;
| |
| color: #FFD400 !important;
| |
| background-image: none !important;
| |
| border-color: #FFD400 !important;
| |
| }
| |
| | |
| /* Title: force yellow (Timeless has burgundy rule) */
| |
| body.a11y-contrast.skin-timeless #p-logo-text #p-banner,
| |
| body.a11y-contrast.skin-timeless #p-banner.mw-wiki-title,
| |
| body.a11y-contrast.skin-timeless #p-logo-text .mw-wiki-title{
| |
| color: #FFD400 !important;
| |
| }
| |
| | |
| /* Strapline */
| |
| body.a11y-contrast #bhc-strapline,
| |
| body.a11y-contrast .bhc-strapline{
| |
| color: #FFD400 !important;
| |
| }
| |
| | |
| /* Search box (input + button) — force yellow on black */
| |
| body.a11y-contrast #p-search,
| |
| body.a11y-contrast #simpleSearch{
| |
| background: #000 !important;
| |
| color: #FFD400 !important;
| |
| }
| |
| | |
| body.a11y-contrast #searchInput,
| |
| body.a11y-contrast #p-search #searchInput,
| |
| body.a11y-contrast #p-search input[type="search"]{
| |
| background: #000 !important;
| |
| color: #FFD400 !important;
| |
| caret-color: #FFD400 !important;
| |
| border: 2px solid #FFD400 !important;
| |
| box-shadow: none !important;
| |
| }
| |
| body.a11y-contrast #searchInput::placeholder{
| |
| color: rgba(255,212,0,0.75) !important;
| |
| }
| |
| | |
| /* Search submit button */
| |
| body.a11y-contrast input#mw-searchButton,
| |
| body.a11y-contrast input#searchButton,
| |
| body.a11y-contrast #mw-searchButton{
| |
| background-color: #000 !important;
| |
| border: 2px solid rgba(255,212,0,.85) !important;
| |
| filter: none !important;
| |
| }
| |
| | |
| /* Search suggestions dropdown (DOM-created) */
| |
| body.a11y-contrast .suggestions,
| |
| body.a11y-contrast .suggestions-results,
| |
| body.a11y-contrast .suggestions-special,
| |
| body.a11y-contrast .suggestions a,
| |
| body.a11y-contrast .suggestions-result,
| |
| body.a11y-contrast .mw-searchSuggest,
| |
| body.a11y-contrast .mw-searchSuggest *{
| |
| background: #000 !important;
| |
| color: #FFD400 !important;
| |
| border-color: rgba(255,212,0,.85) !important;
| |
| }
| |
| body.a11y-contrast .suggestions a:visited{
| |
| color: #FFD400 !important;
| |
| }
| |
| body.a11y-contrast .suggestions-result-current,
| |
| body.a11y-contrast .suggestions a:hover{
| |
| background: #111 !important;
| |
| }
| |
| | |
| /* Vector search tabs area */
| |
| body.a11y-contrast #mw-search-profile-tabs,
| |
| body.a11y-contrast #mw-search-profile-tabs *{
| |
| background: #000 !important;
| |
| color: #FFD400 !important;
| |
| border-color: rgba(255,212,0,.85) !important;
| |
| }
| |
| | |
| /* User tools dropdown text — ensure yellow everywhere (your #2.2) */
| |
| body.a11y-contrast #user-tools,
| |
| body.a11y-contrast #user-tools *,
| |
| body.a11y-contrast #personal,
| |
| body.a11y-contrast #personal *{
| |
| background: #000 !important;
| |
| color: #FFD400 !important;
| |
| border-color: rgba(255,212,0,.85) !important;
| |
| }
| |
| | |
| body.a11y-contrast #personal .dropdown,
| |
| body.a11y-contrast #personal-inner.dropdown,
| |
| body.a11y-contrast #personal .mw-portlet-body,
| |
| body.a11y-contrast #personal .mw-portlet-body *,
| |
| body.a11y-contrast #personal-inner.dropdown *{
| |
| background: #000 !important;
| |
| color: #FFD400 !important;
| |
| border: 2px solid rgba(255,212,0,.85) !important;
| |
| }
| |
| | |
| /* Keep any header links yellow (incl visited) */
| |
| body.a11y-contrast #mw-header a,
| |
| body.a11y-contrast #mw-header a:visited,
| |
| body.a11y-contrast #mw-head a,
| |
| body.a11y-contrast #mw-head a:visited{
| |
| color: #FFD400 !important;
| |
| }
| |
| | |
| /* =========================================================
| |
| EMERGENCY: ensure the accessibility toggle is visible
| |
| (keep at VERY END)
| |
| ========================================================= */
| |
| #a11y-toggle.a11y-toggle{
| |
| position: fixed !important;
| |
| right: 16px !important;
| |
| bottom: 16px !important;
| |
| | |
| display: inline-flex !important;
| |
| visibility: visible !important;
| |
| opacity: 1 !important;
| |
| | |
| z-index: 2147483647 !important;
| |
| pointer-events: auto !important;
| |
| | |
| transform: none !important;
| |
| }
| |
| #a11y-toggle.a11y-toggle svg{
| |
| display: block !important;
| |
| visibility: visible !important;
| |
| opacity: 1 !important;
| |
| }
| |