/**
 * Native look for Fx 3 and Tb 3 on Vista
 * v. 1.5pre2
 * 2008-05-11 12:15 -0400
**/
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);

.tabbrowser-tabs { -moz-appearance: none !important; }
/* Emulates the rejected browser toolbox styles */
  #nav-bar:-moz-system-metric(windows-default-theme) {
  -moz-appearance: -moz-win-browsertabbar-toolbox !important; /* IMO this looks much less ugly than the OMG!Bug 420236!OMG "solution" to the Sickly Purple (R) problem. For the Genuine Beltzner Experience (R), comment this line. */
  padding-top: 0 !important;
} #navigator-toolbox>:first-child:-moz-system-metric(windows-default-theme) {
  border-bottom: silver 1px solid !important;
  -moz-appearance: none !important;
} #navigator-toolbox>:last-child:-moz-system-metric(windows-default-theme) {
  -moz-appearance: none !important;
  padding: 0 !important;
  border-top: solid white 1px !important;
} 

/* Communications toolbox. */

#mail-bar2:-moz-system-metric(windows-default-theme), 
#mode-toolbox:-moz-system-metric(windows-default-theme), 
#ab-bar2:-moz-system-metric(windows-default-theme), 
#composeToolbar2:-moz-system-metric(windows-default-theme) { 
  -moz-appearance: -moz-win-communications-toolbox !important;

/* Side effect: Use white text */ 

} #mail-bar2 toolbarbutton:not([disabled=true])>label:-moz-system-metric(windows-default-theme), #mode-toolbox toolbarbutton:not([disabled=true])>label:-moz-system-metric(windows-default-theme), #ab-bar2 toolbarbutton:not([disabled=true])>label:-moz-system-metric(windows-default-theme), #composeToolbar2 toolbarbutton:not([disabled=true])>label:-moz-system-metric(windows-default-theme) { 
  color: -moz-win-communicationstext !important;

/* This doesn't work for some reason. */

} #mail-bar2 toolbarbutton>dropmarker, #mode-toolbox toolbarbutton>dropmarker, #ab-bar2 toolbarbutton>dropmarker, #composeToolbar2 toolbarbutton>dropmarker { 
  /* list-style-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAADCAYAAABbNsX4AAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9gCEQAdJGOz37UAAAAjdEVYdENvbW1lbnQARG93biBhcnJvdyBmb3IgW3Zpc3RhdGhlbWVdvjsqVAAAAC9JREFUCNdVyKERgDAAALGX1czBAN24Q3FMwR02GEwjEy67Nxy4/3gwq8LAwln1Aa/2L5zSpYOzAAAAAElFTkSuQmCC) !important; */
} 

#search-container { margin: -1px !important } /* For a smaller menubar */

/* Force the label to be visible, even in no text */
toolbarbutton .toolbarbutton-text {
  padding-left: 2px !important;
}

/* Put the label to the right of the button */
:not(#nav-bar):not(hbox)>toolbarbutton>.toolbarbutton-menubutton-button, :not(#nav-bar):not(#unified-back-forward-button)>toolbarbutton {
  -moz-box-orient: horizontal !important;
}

/* Hide text for select buttons */

#button-goback .toolbarbutton-text, 
#button-goforward .toolbarbutton-text,
#button-stop .toolbarbutton-text,
#button-tag .toolbarbutton-text,
#button-delete .toolbarbutton-text,
#button-print .toolbarbutton-text,
#button-junk .toolbarbutton-text,
#stylish-toolbar-button .toolbarbutton-text
{
  display: none !important;
}

/* Make them smaller. */

#button-goback,
#button-goforward,
#button-stop,
#button-tag,
#button-delete,
#button-print,
#button-junk toolbarbutton,
#stylish-toolbar-button
{
  min-width: 1px !important

/* Make stylish button more firefox-like */

} #stylish-toolbar-button image { 
  max-height: 18px !important;
  max-width: 18px !important;
  min-width: 0px !important;
  min-height: 0px !important;

/* Style toolbars like Windows Explorer */

} toolbox:not(#navigator-toolbox)>toolbar:not(#placesToolbar) toolbarbutton:not([type="menu-button"]) {
  padding-top: 3px !important;
  padding-bottom: 3px !important;
} toolbox:not(#navigator-toolbox)>toolbar:not(.chromeclass-menubar):not(#placesToolbar) { 
  padding-top: 2px !important;
  padding-bottom: 2px !important;

/* TODO: Restrict this to Tb */

} sidebarheader:-moz-system-metric(windows-default-theme) {
  -moz-appearance: browsertabbar-toolbox !important;

/* Make split buttons look more native */

} .toolbarbutton-menubutton-button:-moz-system-metric(windows-default-theme) {
  -moz-appearance: none !important;
  border: none !important;
  margin-right: 3px !important;
} toolbarbutton:not([disabled="true"]):hover .toolbarbutton-menubutton-button:not([disabled="true"]):-moz-system-metric(windows-default-theme) {
  margin-right: 0 !important;
  -moz-border-right-colors: rgba(255,255,255,0.4) rgba(0,1,3,0.342) rgba(255,255,255,0.37) !important;
  border-right: black 3px solid !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 2px !important;
  margin-bottom: 2px !important;
} toolbarbutton:not([disabled="true"]):hover .toolbarbutton-menubutton-button:not([disabled="true"])
  image:-moz-system-metric(windows-default-theme) {
  margin-top: -2px !important;
  margin-bottom: -2px !important;
} toolbarbutton:not([disabled="true"]):hover:active 
  .toolbarbutton-menubutton-button:not([disabled="true"]):-moz-system-metric(windows-default-theme) {
  -moz-border-right-colors: rgba(64,66,65,0.374) rgba(0,1,3,0.487) 
  rgba(128,128,128,0.115) !important;

/* Search box like Windows Calendar */

} #searchInput:not([focused="true"]):not(:hover):not([searchCriteria]) {
  opacity: 0.8 !important;
} #searchInput:not([focused="true"]):not([searchCriteria]) {
  font-style: oblique !important;

/* TODO: RTL search box anyone? */

} #searchInput #quick-search-button {
  /*-moz-box-orient: ;*/

/* Make to/cc/etc. menulists prettier */

} .aw-menulist.menulist-compact:-moz-system-metric(windows-default-theme) {
  -moz-appearance: menuitem !important;
  max-height: 23px
}

/* Want your good old Vista navigation icons back in Places? Install style 4231. */

/* Icon replace!!!! Super!!1 */

#navigator-toolbox toolbar:not([iconsize="small"]) #stop-button, #navigator-toolbox toolbar:not([iconsize="small"]) #reload-button, #navigator-toolbox toolbar:not([iconsize="small"]) #history-button, #navigator-toolbox toolbar:not([iconsize="small"]) #home-button, #navigator-toolbox toolbar:not([iconsize="small"]) #bookmarks-button, #navigator-toolbox toolbar:not([iconsize="small"]) #print-button, #navigator-toolbox toolbar:not([iconsize="small"]) #downloads-button, #navigator-toolbox toolbar:not([iconsize="small"]) #new-tab-button, #navigator-toolbox toolbar:not([iconsize="small"]) #new-window-button, #navigator-toolbox toolbar:not([iconsize="small"]) #unified-back-forward-button>:not(:last-child), #browser-toolbox toolbar:not([iconsize="small"]) .toolbarbutton-1.chromeclass-toolbar-additional, #browser-toolbox toolbar:not([iconsize="small"]) #unified-back-forward-button .toolbarbutton-1:not(:last-child)
{
  list-style-image:
    url(http://img166.imageshack.us/img166/5365/toolbaraerodp5.png)
  !important;
}


/* Dirty fix for new placesMenu */

/* This is from style 5023. */
#placesView tree:-moz-system-metric(windows-default-theme), #infoPane:-moz-system-metric(windows-default-theme), #bookmarks-view:-moz-system-metric(windows-default-theme), #historyTree:-moz-system-metric(windows-default-theme) {
  background: rgb(238,243,250) !important;
}

#placesView #splitter>grippy,
#placesView #contentSplitter>grippy{
        display: none !important;
}

/* Make dropmarker look better: */

textbox:-moz-system-metric(windows-default-theme) dropmarker { padding-right: 1px !important; }

/* I hate to do this in a non-native way. Maybe someone will make -moz-appearance do the magic like on gtk someday.
2008-03-01: That magic day has come! */

/* Non-native nativeness: Menulists and autocompletes */

/* Uncomment the code below if you use 110 DPI! */
/*
menulist[editable="true"] .menulist-dropmarker, toolbar textbox dropmarker { -moz-appearance: none !important; list-style-image: url(chrome://global/skin/arrow/arrow-dn.gif) !important; border: none !important; }

menulist[editable="true"] .menulist-dropmarker { background: none !important; }

textbox dropmarker:hover, menulist[editable="true"]:hover .menulist-dropmarker { -moz-appearance: menulist-button !important; border: none !important; padding: 0 !important; margin: -1px !important; opacity: 0.8 !important;  }
*/

/* more non-native nativeness goodness (non-editable menulists) (largely removed because most of it is now done automatically) */

menulist:not([editable="true"]), .menulist-label-box:-moz-system-metric(windows-default-theme) { padding: 0 !important; margin: 0 !important }
menulist:not([editable="true"]) .menulist-label-box:-moz-system-metric(windows-default-theme) { background: none !important; color: black !important; }
.menulist-dropmarker { -moz-appearance: none !important; /* [s;=,px */ border: none !important; background: none !important; } /* Eo;fvsyTsu */

/* search box - look more like Windows Calendar */

#searchFilter:not([filtered="true"]):not(:hover):not(:focus):not([focused="true"]) { opacity: 0.9 !important }
#searchFilter:not([filtered="true"]):not([focused="true"]) { font-style: italic !important }
/* TODO: Make this work with keyboard navigation
.autocomplete-richlistitem { 
  -moz-appearance: menuitem ! important;
  border: 0 ! important;
  color: inherit ! important;
}
*/