From 09067c65e3bdff4c14c6945a18e5cadcb92b88a3 Mon Sep 17 00:00:00 2001 From: bmFtZQ <62812711+bmFtZQ@users.noreply.github.com> Date: Tue, 13 Apr 2021 03:05:27 +0800 Subject: [PATCH] add high contrast to findbar --- chrome/extras/accessibility.css | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/chrome/extras/accessibility.css b/chrome/extras/accessibility.css index 7b9d77a..20646fe 100644 --- a/chrome/extras/accessibility.css +++ b/chrome/extras/accessibility.css @@ -1,6 +1,6 @@ /* High Contrast Theme */ @media (prefers-contrast) { - :root, :root #navigator-toolbox { + :root, :root #navigator-toolbox, findbar { --highContrastTheme-border-color: #777 !important; --highContrastTheme-urlbar-border-color: #000a; @@ -21,7 +21,7 @@ --panelview-toolbarbutton-active-color: var(--highContrastTheme-menuitem-selected-color) !important; } - :root[lwthemetextcolor="bright"], :root[lwthemetextcolor="bright"] #navigator-toolbox { + :root[lwthemetextcolor="bright"], :root[lwthemetextcolor="bright"] #navigator-toolbox, :root[lwthemetextcolor="bright"] findbar { --highContrastTheme-border-color: #999 !important; --highContrastTheme-urlbar-border-color: #fffa; @@ -67,10 +67,10 @@ color: var(--highContrastTheme-menuitem-selected-color) !important; } - #urlbar, #searchbar { + #urlbar, #searchbar, hbox[anonid="findbar-textbox-wrapper"] { box-shadow: 0 0 0 1px var(--highContrastTheme-urlbar-border-color) inset !important; } - #urlbar:hover, #searchbar:hover { + #urlbar:hover, #searchbar:hover, hbox[anonid="findbar-textbox-wrapper"]:hover:not(:focus-within) { box-shadow: 0 0 0 1px var(--highContrastTheme-urlbar-border-color) inset, 0 0 0 1px var(--highContrastTheme-urlbar-border-color) inset !important; } #urlbar[open], #searchbar[open] { @@ -164,7 +164,9 @@ #pageAction-urlbar-emailLink, #pageAction-urlbar-copyURL, #pageAction-urlbar-shareURL, - #pageAction-urlbar-addSearchEngine) + #pageAction-urlbar-addSearchEngine), + hbox[anonid="findbar-textbox-wrapper"] toolbarbutton, + hbox[anonid="findbar-textbox-wrapper"] { transition-duration: 0s, 0s, 0s, 0s, 0s !important; }