From 58094f80cd95e7b60529ff222b61919722f63949 Mon Sep 17 00:00:00 2001 From: tophf Date: Mon, 12 Oct 2020 14:52:42 +0300 Subject: [PATCH] also use box-shadow focus on delete buttons --- msgbox/msgbox.css | 7 +------ popup/popup.css | 6 +----- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/msgbox/msgbox.css b/msgbox/msgbox.css index 32e6c865..bbc70622 100644 --- a/msgbox/msgbox.css +++ b/msgbox/msgbox.css @@ -135,12 +135,7 @@ } .danger #message-box-buttons > button:not([data-focused-via-click]):first-child:focus { - outline: red auto 1px; -} - -/* FF ignores color with 'auto' */ -.firefox .danger #message-box-buttons > button:not([data-focused-via-click]):first-child:focus { - outline: red solid 1px; + box-shadow: 0 0 0 1px red; /* Using box-shadow instead of the ugly outline in new Chrome */ } .non-windows #message-box-buttons { diff --git a/popup/popup.css b/popup/popup.css index 5706b877..531d6f77 100644 --- a/popup/popup.css +++ b/popup/popup.css @@ -342,11 +342,7 @@ a.configure[target="_blank"] .svg-icon.config { text-overflow: ellipsis; } #confirm button[data-cmd="ok"]:not([data-focused-via-click]):focus { - outline: red auto 1px; -} -/* FF ignores color with 'auto' */ -.firefox #confirm button[data-cmd="ok"]:not([data-focused-via-click]):focus { - outline: red solid 1px; + box-shadow: 0 0 0 1px red; /* Using box-shadow instead of the ugly outline in new Chrome */ } .menu-items-wrapper { width: 80%;