From 616535b7a7722630002ec9166bac3e5c8df0e1bd Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sat, 24 Sep 2022 13:34:40 +0200 Subject: [PATCH] Use a consistent `outline` for all UI buttons (PR 15438 follow-up) Currently the `viewBookmark`-button, which is actually a `href`-element, gets an inconsistent `outline`. Similarly, the `dialog`-buttons also have an inconsistent `outline` after the changes in PR 15438. Finally, simplifies a couple of `border` rules since setting a border-width when "none" is being used doesn't seem meaningful. --- web/viewer.css | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/web/viewer.css b/web/viewer.css index 6708f009b..45bf95b16 100644 --- a/web/viewer.css +++ b/web/viewer.css @@ -71,7 +71,7 @@ --doorhanger-hover-color: rgba(12, 12, 13, 1); --doorhanger-hover-bg-color: rgba(237, 237, 237, 1); --doorhanger-separator-color: rgba(222, 222, 222, 1); - --dialog-button-border: 0 none; + --dialog-button-border: none; --dialog-button-bg-color: rgba(12, 12, 13, 0.1); --dialog-button-hover-bg-color: rgba(12, 12, 13, 0.3); @@ -700,10 +700,11 @@ body { .toolbarButton, .secondaryToolbarButton, .dialogButton { - border: 0 none; + border: none; background: none; width: 28px; height: 28px; + outline: none; } .dialogButton:hover, @@ -1096,7 +1097,7 @@ a.secondaryToolbarButton[href="#"] { color: var(--field-color); font-size: 12px; line-height: 16px; - outline-style: none; + outline: none; } .toolbarField[type="checkbox"] {