From 76b9e7ae23d464ec2dc821b2c2733d7f7de8bbc8 Mon Sep 17 00:00:00 2001 From: Claas Augner <495429+caugner@users.noreply.github.com> Date: Mon, 6 Nov 2023 23:20:40 +0100 Subject: [PATCH] feat(links): distinguish visited links (v2) (#9931) --- client/src/document/index.scss | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/client/src/document/index.scss b/client/src/document/index.scss index 3607cc039a88..4754fcfe9c33 100644 --- a/client/src/document/index.scss +++ b/client/src/document/index.scss @@ -65,7 +65,13 @@ color: var(--text-link); width: fit-content; - &:active { + &:visited:not([href^="#"]) { + // Distinguish visited links (excl. anchor links). + color: revert; + } + + &:active, + &:active:visited { background-color: var(--text-link); color: #fff;