From d575f3d8904697fe3521aaa41ce1473bebc261ae Mon Sep 17 00:00:00 2001 From: Knah-Tsaeb Date: Fri, 6 Dec 2024 10:46:03 +0100 Subject: [PATCH] Better WCAG (contrast with dark theme) --- public/assets/css/app.css | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/public/assets/css/app.css b/public/assets/css/app.css index 9ed1f07..5937a39 100644 --- a/public/assets/css/app.css +++ b/public/assets/css/app.css @@ -95,8 +95,9 @@ textarea:not([rows]) { } a { + transition: 0.4s; color: var(--primary); - text-decoration: none; + text-decoration: underline transparent; } a:hover { @@ -106,7 +107,7 @@ a:hover { a[target="_blank"]::after, a.external::after { - content: '&nsp;'; + content: ''; display: inline-block; width: 1em; height: 1em; @@ -233,7 +234,8 @@ nav li a { color: var(--primary-lighten); } -nav li a:hover, nav .active { +nav li a:hover, +nav .active { color: var(--primary-lighten); text-decoration: underline var(--primary-darken); text-decoration-thickness: var(--default-space); @@ -358,11 +360,13 @@ article { .table-of-contents { float: right; width: 25vw; - background-color: rgb(178, 175, 175); + background-color: var(--background-secondary-color); border: 1px solid var(--primary-lighten); border-radius: calc(var(--default-space) * 1.2); position: sticky; top: calc(var(--default-space) * 2); + font-size: 1.1rem; + z-index: 1; } .table-of-contents a {