From 8d5cca6cfa80f4377361dfd7cea6aa220ab1b602 Mon Sep 17 00:00:00 2001 From: djmil Date: Fri, 20 Oct 2023 10:55:16 +0200 Subject: [PATCH] front: DarkReader friendly CSS --- webapp/src/components/Header/index.css | 28 ++++++++++++++++++++------ webapp/src/components/Header/index.jsx | 2 +- 2 files changed, 23 insertions(+), 7 deletions(-) diff --git a/webapp/src/components/Header/index.css b/webapp/src/components/Header/index.css index ad64d62..4b472ea 100644 --- a/webapp/src/components/Header/index.css +++ b/webapp/src/components/Header/index.css @@ -16,22 +16,38 @@ nav { flex-wrap: wrap; a { - /* color: #CCC; */ - opacity: .3; + color: lightgray; text-decoration: none; transition: .25s ease; margin-left: 30px; margin-right: 30px; + padding: 0.25rem 1rem; } .active { - opacity: 1; - box-shadow: 0 2px 0 0 currentcolor; + color: white; + border-radius: 2px; + background-color: cadetblue; + opacity: 80%; + padding: 0.25rem 1rem; } a:hover:not(.active) { - /* color: #000; */ - opacity: .5; + color:cadetblue; + + box-shadow: 0 1.5px 0 0 currentcolor; } } + +[data-darkreader-scheme="dark"] nav { + a { + color: darkslategrey; + } + + .active { + color: white; + box-shadow: 0 1.5px 0 0 currentcolor; + } +} + diff --git a/webapp/src/components/Header/index.jsx b/webapp/src/components/Header/index.jsx index 8b20817..ebaa4d0 100644 --- a/webapp/src/components/Header/index.jsx +++ b/webapp/src/components/Header/index.jsx @@ -13,7 +13,7 @@ export default function Header() { CordaCheckers