/*
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

/*
 * On Vista, the emptytext style would appear to use italics.  This is causing
 * problems for the search box because it has no minwidth and is flexy, so
 * removing the emptytext causes the size of the box to change and this is silly
 * and undesirable.  This change is being made to maintain the generally
 * accepted status quo while reducing breakage.  This will cause visual
 * inconsistency with the quick filter bar unless it gets a change like this
 * too.
 */
#searchInput {
  font-style: normal !important;
}

.quick-search-textbox {
  padding-top: 1px;
}

#quick-search-button  {
  margin-top: 0px;
  margin-bottom: 0px;
  -moz-margin-start: 0px;
  -moz-margin-end: 2px;
}

.gloda-search-icon {
  list-style-image: url(chrome://global/skin/icons/Search-glass.png);
  -moz-image-region: rect(0, 16px, 16px, 0);
}

.gloda-search-icon:-moz-locale-dir(rtl) {
  -moz-transform: scaleX(-1);
}

.gloda-search-icon[searchbutton]:not([disabled]) {
  cursor: pointer;
}

.gloda-search-icon[searchbutton]:not([disabled]):hover {
  -moz-image-region: rect(0, 32px, 16px, 16px);
}

.gloda-search-icon[searchbutton]:not([disabled]):hover:active {
  -moz-image-region: rect(0, 48px, 16px, 32px);
}


/* things from xul.css that only exist if Thunderbird did not define
 * AUTOCOMPLETE_OLD_STYLE
 */

.autocomplete-history-dropmarker {
  display: none;
}

.autocomplete-history-dropmarker[enablehistory="true"] {
  display: -moz-box;
  -moz-binding: url("chrome://global/content/bindings/autocomplete.xml#history-dropmarker");
}
