From 9c72a05c17fd2d6876f7e16de874d5ac701d0267 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Wed, 26 Jul 2023 21:32:17 +0200 Subject: [PATCH] button: fix focus and text decoration #577 --- static/css/ie.css | 4 ++-- static/css/theme-neon.css | 4 ++-- static/css/theme.css | 1 + static/css/variant.css | 4 ++-- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/static/css/ie.css b/static/css/ie.css index 5153cc8100..231ec55590 100644 --- a/static/css/ie.css +++ b/static/css/ie.css @@ -565,8 +565,8 @@ } .btn > *:hover, - .btn > *:focus, - .btn > *:active { + .btn > *:active, + .btn > *:focus { background-color: rgba( 255, 255, 255, .833 ); /* var(--BOX-BG-color) */ color: rgba( 16, 16, 16, 1 ); /* var(--BOX-NEUTRAL-TEXT-color) */ } diff --git a/static/css/theme-neon.css b/static/css/theme-neon.css index 7d033b67fe..9051a8c321 100644 --- a/static/css/theme-neon.css +++ b/static/css/theme-neon.css @@ -253,8 +253,8 @@ body .btn.cstyle.transparent > * { } body .btn.cstyle.transparent > *:hover, -body .btn.cstyle.transparent > *:focus, -body .btn.cstyle.transparent > *:active { +body .btn.cstyle.transparent > *:active, +body .btn.cstyle.transparent > *:focus { background-color: var(--INTERNAL-MAIN-TITLES-TEXT-color); color: var(--INTERNAL-MAIN-TEXT-color); } diff --git a/static/css/theme.css b/static/css/theme.css index b26197e911..97b4a0ae04 100644 --- a/static/css/theme.css +++ b/static/css/theme.css @@ -1415,6 +1415,7 @@ html[dir="rtl"] .expand > .expand-label > i.fa-chevron-right { } .btn > *:hover, +.btn > *:active, .btn > *:focus { text-decoration: none; } diff --git a/static/css/variant.css b/static/css/variant.css index 5db4605266..a6c6a84b7b 100644 --- a/static/css/variant.css +++ b/static/css/variant.css @@ -326,8 +326,8 @@ pre .copy-to-clipboard-button:hover { } .btn > *:hover, -.btn > *:focus, -.btn > *:active { +.btn > *:active, +.btn > *:focus { background-color: var(--VARIABLE-BOX-BG-color); color: var(--VARIABLE-BOX-TEXT-color); }