From 8621beec2a133873cba2b54af8257c4ce8623804 Mon Sep 17 00:00:00 2001 From: Ahmed Hakeem <65634467+Ahmed-Hakeem@users.noreply.github.com> Date: Mon, 16 Dec 2024 00:45:37 -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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/src/css/custom.css b/website/src/css/custom.css index 1120329d0d..2ddb740377 100644 --- a/website/src/css/custom.css +++ b/website/src/css/custom.css @@ -144,7 +144,7 @@ a.contents__link > code { color: var(--ifm-color-primary-lightest); } -a:visited { +a:visited:not(.menu__link, .table-of-contents__link) { color: var(--ifm-color-primary); } .navbar .navbar__inner { @@ -283,4 +283,4 @@ div[class*='announcementBar_'] { /* Intentionally override the theme behavior, so that the course banner image is effectively cropped*/ z-index: calc(var(--ifm-z-index-fixed) -1) !important; -} \ No newline at end of file +} From de66644321df505829aa6debac66a70dfbcc1ee2 Mon Sep 17 00:00:00 2001 From: Ahmed Hakeem <65634467+Ahmed-Hakeem@users.noreply.github.com> Date: Mon, 16 Dec 2024 01:27:55 -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 2ddb740377..a66bd54a94 100644 --- a/website/src/css/custom.css +++ b/website/src/css/custom.css @@ -144,7 +144,7 @@ a.contents__link > code { color: var(--ifm-color-primary-lightest); } -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); } .navbar .navbar__inner {