diff options
| author | Danilo M. <danix@danix.xyz> | 2026-05-04 16:24:18 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-05-04 16:24:18 +0200 |
| commit | 4bd67183c35f7f1052b2909cb308418edeba8557 (patch) | |
| tree | e9cbb4fa8f25e9763870c086c781c39d0ab8db18 /assets/css/main.css | |
| parent | 5e5eeb397d51d2002ca4d892ea59b3c1fd654046 (diff) | |
| download | danixxyz-theme-4bd67183c35f7f1052b2909cb308418edeba8557.tar.gz danixxyz-theme-4bd67183c35f7f1052b2909cb308418edeba8557.zip | |
fix: beat prose-invert anchor override for CTA button in light mode
html.theme-light .prose-invert a sets color: var(--accent) via a direct
selector outside any layer — not-prose cannot block it. Adds matching
specificity rule targeting .cta-block a inside prose/prose-invert to
restore var(--on-accent) text color in light mode.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'assets/css/main.css')
| -rw-r--r-- | assets/css/main.css | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/assets/css/main.css b/assets/css/main.css index 7088236..3aafd4f 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -1891,6 +1891,12 @@ html.theme-light .cta-block { box-shadow: none; } +/* Beat html.theme-light .prose-invert a { color: var(--accent) } which ignores not-prose */ +html.theme-light .prose .cta-block a, +html.theme-light .prose-invert .cta-block a { + color: var(--on-accent); +} + /* Motion Safety - Respect prefers-reduced-motion */ @media (prefers-reduced-motion: reduce) { |
