Skip to content

Commit c609bbe

Browse files
authored
exclude menu and TOC items from the visited link styles for better UX (#4776)
* 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 * exclude nav items from the visited link styles for better UX
1 parent 621da00 commit c609bbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website/src/css/custom.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ a.contents__link > code {
144144
color: var(--ifm-color-primary-lightest);
145145
}
146146

147-
a:visited {
147+
a:visited:not(.menu__link, .table-of-contents__link, .navbar__link:not([target="_blank"])) {
148148
color: var(--ifm-color-primary);
149149
}
150150
.navbar .navbar__inner {
@@ -283,4 +283,4 @@ div[class*='announcementBar_'] {
283283
/* Intentionally override the theme behavior,
284284
so that the course banner image is effectively cropped*/
285285
z-index: calc(var(--ifm-z-index-fixed) -1) !important;
286-
}
286+
}

0 commit comments

Comments
 (0)