/* Note that this file isn't used for HiDPI on OS X. */

:-moz-any(@primaryToolbarButtons@),
#bookmarks-menu-button > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
  list-style-image: url("chrome://browser/skin/Toolbar.png");
}

toolbar[brighttext] :-moz-any(@primaryToolbarButtons@),
toolbar[brighttext] #bookmarks-menu-button > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
  list-style-image: url(chrome://browser/skin/Toolbar-inverted.png);
}

#back-button {
  -moz-image-region: rect(0, 36px, 18px, 18px);
}

#forward-button {
  -moz-image-region: rect(0, 72px, 18px, 54px);
}

#home-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 126px, 18px, 108px);
}

#bookmarks-menu-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 144px, 18px, 126px);
}

#bookmarks-menu-button[cui-areatype="toolbar"][starred] {
  -moz-image-region: rect(0, 162px, 18px, 144px);
}

#bookmarks-menu-button[cui-areatype="toolbar"] > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
  -moz-image-region: rect(0, 630px, 18px, 612px);
}

#history-panelmenu[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 180px, 18px, 162px);
}

#downloads-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 198px, 18px, 180px);
}

#add-ons-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 216px, 18px, 198px);
}

#open-file-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 234px, 18px, 216px);
}

#save-page-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 252px, 18px, 234px);
}

#sync-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 270px, 18px, 252px);
}

#sync-button[cui-areatype="toolbar"][status="active"],
#sync-button[cui-areatype="toolbar"][status="active"]:hover:active:not([disabled="true"]) {
  list-style-image: url("chrome://browser/skin/syncProgress-toolbar.png");
  -moz-image-region: rect(0, 18px, 18px, 0px);
}

toolbar[brighttext] #sync-button[status="active"],
toolbar[brighttext] #sync-button[status="active"]:hover:active:not([disabled="true"]) {
  list-style-image: url("chrome://browser/skin/syncProgress-toolbar-inverted.png");
}

#feed-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 288px, 18px, 270px);
}

#social-share-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0px, 306px, 18px, 288px);
}

#characterencoding-button[cui-areatype="toolbar"]{
  -moz-image-region: rect(0, 324px, 18px, 306px);
}

#new-window-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 342px, 18px, 324px);
}

#e10s-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 342px, 18px, 324px);
}

#e10s-button > .toolbarbutton-icon {
  transform: scaleY(-1);
}

#new-tab-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 360px, 18px, 342px);
}

#privatebrowsing-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 378px, 18px, 360px);
}

#find-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 396px, 18px, 378px);
}

#print-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 414px, 18px, 396px);
}

%ifdef XP_MACOSX
#restore-button,
%endif
#fullscreen-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 432px, 18px, 414px);
}

#developer-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 450px, 18px, 432px);
}

#preferences-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 468px, 18px, 450px);
}

#PanelUI-menu-button {
  -moz-image-region: rect(0, 486px, 18px, 468px);
}

#edit-controls:not(@inAnyPanel@) > #cut-button {
  -moz-image-region: rect(0, 504px, 18px, 486px);
}

#edit-controls:not(@inAnyPanel@) > #copy-button {
  -moz-image-region: rect(0, 522px, 18px, 504px);
}

#edit-controls:not(@inAnyPanel@) > #paste-button {
  -moz-image-region: rect(0, 540px, 18px, 522px);
}

#zoom-controls:not(@inAnyPanel@) > #zoom-out-button {
  -moz-image-region: rect(0, 558px, 18px, 540px);
}

#zoom-controls:not(@inAnyPanel@) > #zoom-in-button {
  -moz-image-region: rect(0, 576px, 18px, 558px);
}

#nav-bar-overflow-button {
  -moz-image-region: rect(0, 612px, 18px, 594px);
}

#nav-bar-overflow-button:-moz-locale-dir(rtl) > .toolbarbutton-icon {
  transform: scaleX(-1);
}

#tabview-button {
  -moz-image-region: rect(0, 648px, 18px, 630px);
}

#email-link-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 666px, 18px, 648px);
}

#sidebar-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 684px, 18px, 666px);
}

#panic-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 702px, 18px, 684px);
}

%ifdef XP_MACOSX
#panic-button[cui-areatype="toolbar"]:hover:active:not([disabled="true"]) {
  -moz-image-region: rect(18px, 702px, 36px, 684px);
}

#panic-button[cui-areatype="toolbar"][open] {
  -moz-image-region: rect(36px, 702px, 54px, 684px);
}
%else
#panic-button[cui-areatype="toolbar"][open] {
  -moz-image-region: rect(18px, 702px, 36px, 684px);
}
%endif

#panic-button:-moz-locale-dir(rtl) > .toolbarbutton-icon {
  transform: scaleX(-1);
}

#web-apps-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 720px, 18px, 702px);
}

%ifdef XP_MACOSX
#web-apps-button[cui-areatype="toolbar"]:hover:active:not([disabled="true"]) {
  -moz-image-region: rect(18px, 720px, 36px, 702px);
}
%endif

#loop-button > .toolbarbutton-badge-container {
  list-style-image: url(chrome://browser/skin/loop/toolbar.png);
  -moz-image-region: rect(0, 18px, 18px, 0);
}

toolbar[brighttext] #loop-button > .toolbarbutton-badge-container {
  list-style-image: url(chrome://browser/skin/loop/toolbar-inverted.png);
}

#loop-button[state="disabled"] > .toolbarbutton-badge-container,
#loop-button[disabled="true"] > .toolbarbutton-badge-container {
  -moz-image-region: rect(0, 36px, 18px, 18px);
}

#loop-button:not([disabled="true"])[state="error"] > .toolbarbutton-badge-container {
  -moz-image-region: rect(0, 54px, 18px, 36px);
}

#loop-button:not([disabled="true"])[state="action"] > .toolbarbutton-badge-container {
  -moz-image-region: rect(0, 72px, 18px, 54px);
}

#loop-button:not([disabled="true"])[state="action"]:-moz-any(:hover,:hover:active,[open]) > .toolbarbutton-badge-container {
  -moz-image-region: rect(0, 90px, 18px, 72px);
}

#loop-button:not([disabled="true"])[state="active"] > .toolbarbutton-badge-container {
  -moz-image-region: rect(0, 108px, 18px, 90px);
}

#loop-button:not([disabled="true"])[state="active"]:-moz-any(:hover,:hover:active,[open]) > .toolbarbutton-badge-container {
  -moz-image-region: rect(0, 126px, 18px, 108px);
}

#webide-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 738px, 18px, 720px);
}
