diff --git a/mail/base/content/mainMailToolbox.inc.xul b/mail/base/content/mainMailToolbox.inc.xul index 9f79d3a9b9..029afb8764 100644 --- a/mail/base/content/mainMailToolbox.inc.xul +++ b/mail/base/content/mainMailToolbox.inc.xul @@ -324,15 +324,6 @@ align="center" flex="1" class="chromeclass-toolbar-additional"> - - - - - - - - - - - hbox, -.themeableSearchBox > hbox { - -moz-box-ordinal-group: 1; -} - -.searchBox > .textbox-input-box, -.themeableSearchBox > .textbox-input-box { - -moz-box-ordinal-group: 2; -} - -.gloda-search-icon { - margin-inline-end: 5px; -} - -.gloda-search-icon, -.textbox-search-icon[searchbutton], -textbox:not([searchbutton]) > .textbox-input-box > .textbox-search-sign { - list-style-image: url(chrome://messenger/skin/icons/search-glass.svg); +.remote-gloda-search, +#searchInput, +#IMSearchInput { + background-image: url(chrome://messenger/skin/icons/search-glass.svg); + background-position: calc( 100% - 4px); + background-repeat: no-repeat; + padding-inline-end: 24px; -moz-context-properties: fill; fill: currentColor; opacity: 0.54; } +.remote-gloda-search:-moz-locale-dir(rtl), +#searchInput:-moz-locale-dir(rtl), +#IMSearchInput:-moz-locale-dir(rtl) { + background-position: 4px; +} + .remote-gloda-search-container { padding-top: 3px; padding-bottom: 2px; diff --git a/mail/themes/windows/mail/searchBox.css b/mail/themes/windows/mail/searchBox.css index 9568958b8a..ef0c2cdf60 100644 --- a/mail/themes/windows/mail/searchBox.css +++ b/mail/themes/windows/mail/searchBox.css @@ -21,34 +21,24 @@ padding-top: 1px; } -.searchBox > hbox, -.themeableSearchBox > hbox { - -moz-box-ordinal-group: 1; -} - -.searchBox > .textbox-input-box, -.themeableSearchBox > .textbox-input-box { - -moz-box-ordinal-group: 2; -} - -.gloda-search-icon { - margin-inline-end: 5px; -} - -.gloda-search-icon, -textbox:not([searchbutton]) > .textbox-input-box > .textbox-search-sign { - margin-inline-start: 2px; -} - -.gloda-search-icon, -.textbox-search-icon[searchbutton], -textbox:not([searchbutton]) > .textbox-input-box > .textbox-search-sign { - list-style-image: url(chrome://messenger/skin/icons/search-glass.svg); +.remote-gloda-search, +#searchInput, +#IMSearchInput { + background-image: url(chrome://messenger/skin/icons/search-glass.svg); + background-position: calc( 100% - 4px); + background-repeat: no-repeat; + padding-inline-end: 24px; -moz-context-properties: fill; fill: currentColor; opacity: 0.54; } +.remote-gloda-search:-moz-locale-dir(rtl), +#searchInput:-moz-locale-dir(rtl), +#IMSearchInput:-moz-locale-dir(rtl) { + background-position: 4px; +} + .remote-gloda-search-container { padding-top: 1px; padding-bottom: 1px;