From 09f4613570c40e8c02b77efb0ea18b6c8d55ca0c Mon Sep 17 00:00:00 2001 From: Pagwin Date: Tue, 18 Feb 2025 16:59:44 -0500 Subject: [PATCH] new focus-visible just dropped --- static/css/colors.css | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/static/css/colors.css b/static/css/colors.css index 76d4ea5..54c1303 100644 --- a/static/css/colors.css +++ b/static/css/colors.css @@ -108,11 +108,6 @@ body { color: var(--normal-text); } -/*iffy if this should be here but it doesn't mess with the layout so I'll allow it*/ -:focus-visible { - outline: 2px solid var(--focus-outline-color); - border-radius: 0.25rem; -} a { color: var(--link-unclicked); @@ -162,6 +157,24 @@ strong::selection{ color:unset; } +/*iffy if this should be here but it doesn't mess with the layout so I'll allow it*/ +:focus-visible { + /* only viable way of changing colors for the svgs*/ + filter: invert(100%); + /*would prefer light-dark but it no worky*/ + @media (prefers-color-scheme: light) { + background: white; + color: black!important; + } + @media (prefers-color-scheme: dark) { + background: black; + color: white!important; + } + /*yeeting annoying potential defaults*/ + outline: none; + border-radius: 0px; +} + } @media print {