mirror of
https://github.com/docker/docker-agent.git
synced 2026-11-04 10:02:15 +00:00
Kramdown+Rouge tags inline `code` spans with `class="language-plaintext highlighter-rouge"`. The Rouge block-code override selector `.content code[class*="language-"]` was catching these spans and forcing `color: var(--gray-200)` (#C8CFDA, light gray) on a near-white `--bg-code-block` background (#F6F8FA) — nearly invisible in light mode. Scope the selector to `.content pre code[class*="language-"]` so it only matches code inside block `<pre>` elements. Inline code now falls back to `.content code`, which in light mode renders as `--text-code` (blue-600, #1A4DD9) on `--bg-code` (#FFFFFF) with a visible border — clear contrast, matching the site's existing design intent.