/* ============================================================ Gitea a11y fixes: V3, V4 — CSS contrast overrides V3 (#547): Footer text contrast — darken to #767676 (4.54:1 on white) V4 (#548): Green inline links — darken to #507020 (4.5:1 on white) Deploy to: custom/public/css/a11y-fixes.css Include in: custom/templates/custom/header.tmpl ============================================================ */ /* V3: Footer text — ensure 4.5:1 contrast ratio */ .footer { color: #767676 !important; } .footer a { color: #5a5a5a !important; } .footer .version, .footer .page-render-time, .footer .ui.divider + div { color: #767676 !important; } /* V4: Green inline links — darken for contrast + add underline for 1.4.1 */ a:not(.ui):not(.item):not(.header):not(.button):not([class*="label"]) { /* Only target plain inline links */ } /* Gitea's green links specifically */ .markdown-info a, a.ui.green, .repository .markdown a, .home .hero a, a[href*="install"] { color: #507020 !important; text-decoration: underline !important; } /* Override the default Gitea link green for inline text */ a { /* Default links — keep underlined for non-color differentiation (SC 1.4.1) */ } /* Ensure all inline links in content areas have underline */ .repository .wiki a, .repository .markdown a, .ui.segment a:not(.ui):not(.item) { text-decoration: underline !important; } /* V5: Header/banner landmark — styling for the new
wrapper */ header[role="banner"], .header-wrapper { /* Ensure the header landmark is visually consistent */ }