diff options
author | Moonchild <moonchild@palemoon.org> | 2020-12-21 16:24:37 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-12-21 16:24:37 +0000 |
commit | 911cbcd1af7d8becf9694e3b51ce773908e1a93d (patch) | |
tree | 8d0cb290c421d4cb050ec2a521a3b8dd6e876ca0 /toolkit/themes/linux/global | |
parent | 05569cb6d18680e0bad2505cb68e5ccddbb32d1f (diff) | |
download | UXP-911cbcd1af7d8becf9694e3b51ce773908e1a93d.tar UXP-911cbcd1af7d8becf9694e3b51ce773908e1a93d.tar.gz UXP-911cbcd1af7d8becf9694e3b51ce773908e1a93d.tar.lz UXP-911cbcd1af7d8becf9694e3b51ce773908e1a93d.tar.xz UXP-911cbcd1af7d8becf9694e3b51ce773908e1a93d.zip |
Issue #1700 - Apply background color instead of inset shadow for findbar input.
This changes the toolkit theme for Linux and Windows (Mac already did this) to
style the input textbox on the findbar with -moz-appearance:none so as to give
us styling control (as opposed to using a native widget style) and apply a
neutral style to it.
Also ensures Mac remains readable in case of poorly contrasting text.
Diffstat (limited to 'toolkit/themes/linux/global')
-rw-r--r-- | toolkit/themes/linux/global/findBar.css | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/toolkit/themes/linux/global/findBar.css b/toolkit/themes/linux/global/findBar.css index e3e2ad086..4a9df23ae 100644 --- a/toolkit/themes/linux/global/findBar.css +++ b/toolkit/themes/linux/global/findBar.css @@ -5,9 +5,9 @@ @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); findbar { + padding: 4px 8px; border-top: 2px solid; -moz-border-top-colors: ThreeDShadow ThreeDHighlight; - padding-bottom: 1px; min-width: 1px; transition-property: margin-bottom, opacity, visibility; transition-duration: 150ms, 150ms, 0s; @@ -73,13 +73,22 @@ findbar[hidden] { list-style-image: url("chrome://global/skin/icons/loading_16.png"); } +.findbar-textbox { + -moz-appearance: none; + border: 1px solid ThreeDShadow; + box-shadow: 0 0 1px 0 ThreeDShadow inset; + margin: 0; + padding: 5px; + width: 14em; +} + .findbar-textbox[status="notfound"] { - box-shadow: 0 0 0 1em #f66 inset; + background-color: #f66; color: white; } .findbar-textbox[flash="true"] { - box-shadow: 0 0 0 1em yellow inset; + background-color: yellow; color: black; } |