From 1a29b34fae412292ecb3735dc809360c94127798 Mon Sep 17 00:00:00 2001 From: Aline Date: Mon, 27 Nov 2023 15:19:57 +0100 Subject: [PATCH] Add base styles for :visited links --- assets/components/atoms/link/link.scss | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/assets/components/atoms/link/link.scss b/assets/components/atoms/link/link.scss index ccc8702f..3fad2bee 100644 --- a/assets/components/atoms/link/link.scss +++ b/assets/components/atoms/link/link.scss @@ -1,7 +1,11 @@ @charset 'utf-8'; // All links are underlined by default. Supported browsers will have the right color. https://caniuse.com/#feat=text-decoration -a { +a, +a:visited { + color: $black; + text-decoration: underline; + background-color: transparent; text-decoration-color: $link-hover-color; transition: text-decoration-color 0.2s ease-in-out, @@ -49,7 +53,8 @@ a { a, a:hover, a:focus, -a:active { +a:active, +a:visited { text-decoration-thickness: 0.08em; text-decoration-thickness: min(0.08em, 0.1rem); text-underline-offset: 0.14em;