From 6394409b63fa42d695710e6734c9d4319a6ef62b Mon Sep 17 00:00:00 2001 From: Antonio Vivace Date: Tue, 10 Dec 2024 19:13:22 +0100 Subject: [PATCH] style: better contrast on links/hover in footer (fix #73) --- src/css/custom.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/css/custom.css b/src/css/custom.css index e78b51105..7f5d63825 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -39,6 +39,11 @@ code, pre { --ifm-h5-font-size: 1.25rem; } +/* Since the footer has always a dark background, user the dark-theme colors for links to ensure decent contrast */ +[data-theme="light"] .footer__link-item:hover, .footer a:hover, .footer__copyright a{ + color: #7cd5f1 !important; +} + [data-theme="dark"] { --ifm-color-primary: #7cd5f1; --ifm-color-primary-dark: #5bcaed;