From d3238ef846e45e61987657a22a20e3785923ba6d Mon Sep 17 00:00:00 2001 From: Ahmed Hakeem <65634467+Ahmed-Hakeem@users.noreply.github.com> Date: Mon, 16 Dec 2024 00:45:33 -0800 Subject: [PATCH 1/2] exclude menu and TOC items from the visited link styles for better UX for better UX, menu and TOC items style should indicate only one thing, which is the current read item --- website/src/css/custom.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/src/css/custom.css b/website/src/css/custom.css index 9b081d633c..601c02be4a 100755 --- a/website/src/css/custom.css +++ b/website/src/css/custom.css @@ -137,7 +137,7 @@ a.contents__link.contents__link--active { font-weight: 600; } -a:visited { +a:visited:not(.menu__link, .table-of-contents__link) { color: var(--ifm-color-primary); } From 75ee75f29315b2d103e487ebfda8c945a857c621 Mon Sep 17 00:00:00 2001 From: Ahmed Hakeem <65634467+Ahmed-Hakeem@users.noreply.github.com> Date: Mon, 16 Dec 2024 01:26:36 -0800 Subject: [PATCH 2/2] exclude nav items from the visited link styles for better UX --- website/src/css/custom.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/src/css/custom.css b/website/src/css/custom.css index 601c02be4a..40f7dd3196 100755 --- a/website/src/css/custom.css +++ b/website/src/css/custom.css @@ -137,7 +137,7 @@ a.contents__link.contents__link--active { font-weight: 600; } -a:visited:not(.menu__link, .table-of-contents__link) { +a:visited:not(.menu__link, .table-of-contents__link, .navbar__link:not([target="_blank"])) { color: var(--ifm-color-primary); }