From a91b413e4a8697e6998b479853ea8dbedf535c08 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 30 Jun 2021 08:00:00 +0100 Subject: [PATCH] Link hover and focus styling --- assets/css/components.pcss | 12 +++++++++--- source/_partials/footer.html.twig | 2 +- source/_partials/navbar.html.twig | 2 +- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/assets/css/components.pcss b/assets/css/components.pcss index eff65c35..31833979 100644 --- a/assets/css/components.pcss +++ b/assets/css/components.pcss @@ -1,10 +1,16 @@ @layer components { .link { - @apply text-blue-800 dark:text-blue-400; - @apply text-decoration-blue-800 dark:text-decoration-blue-400; - text-decoration-line: underline; + @apply underline text-blue-800 hover:text-blue-900 dark:text-blue-400 dark:hover:text-white; text-decoration-thickness: 1px; text-underline-offset: 0.1em; + + + &:focus { + @apply no-underline; + outline-color: currentColor; + outline-offset: 2px; + outline-style: solid; + } } .markdown { diff --git a/source/_partials/footer.html.twig b/source/_partials/footer.html.twig index e6c25c25..e6ad9b1b 100644 --- a/source/_partials/footer.html.twig +++ b/source/_partials/footer.html.twig @@ -1,7 +1,7 @@ diff --git a/source/_partials/navbar.html.twig b/source/_partials/navbar.html.twig index bcb7cd27..e154d649 100644 --- a/source/_partials/navbar.html.twig +++ b/source/_partials/navbar.html.twig @@ -21,7 +21,7 @@