From 0465dbe02b38d1384738327dd90e806bb67d2a5d Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Tue, 6 Jan 2026 12:15:50 +0000 Subject: [PATCH] Fix header link color and hover effect in query help documentation Fix from Oscar, who wrote: The Alabaster theme's global `a { color: #2F1695 }` rule was overriding header link colors, rendering them purple instead of white. --- docs/codeql/_static/custom.css_t | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/codeql/_static/custom.css_t b/docs/codeql/_static/custom.css_t index b05c51203980..6a7fadc8d416 100644 --- a/docs/codeql/_static/custom.css_t +++ b/docs/codeql/_static/custom.css_t @@ -14,6 +14,18 @@ code { font-size: 0.9em !important; /* makes code snippets in headings the correct size */ } +/* -- HEADER ------------------------------------------------------------------------------- */ + +/* Override alabaster.css purple link color for header links to match the rest of the site */ +.Header .Header-link { + color: #fff; +} + +.Header .Header-link:hover, +.Header .Header-link:focus { + color: rgba(255, 255, 255, 0.7); +} + /* -- MAIN BODY ---------------------------------------------------------------------------- */ main {