/* 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/. */

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

toolbarbutton {
  -moz-box-align: center;
  -moz-box-pack: center;
  margin: 0px 2px 0px 2px;
  padding: 3px 1px 3px 1px;
  border-right: 1px solid transparent;
  border-left: 1px solid transparent;
  background-color: transparent;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

toolbarbutton[open="true"],
toolbarbutton:not([disabled="true"]):active:hover {
  text-shadow: none;
}

.toolbarbutton-text {
  margin: 0px;
  padding: 0px;
  text-align: center;
  vertical-align: middle;
}

toolbarbutton[disabled="true"],
toolbarbutton[disabled="true"]:hover,
toolbarbutton[disabled="true"]:hover:active,
toolbarbutton[disabled="true"][open="true"] {
  color: -moz-mac-disabledtoolbartext !important;
}

/* ..... checked state ..... */

toolbarbutton[checked="true"] {
    background-color: #DDDDDD;
    background-image: none;
    border-right: 1px solid #b9b9b9;
    border-left: 1px solid #b9b9b9;
    color: ButtonText !important;
}

/* ::::: toolbarbutton menu ::::: */

.toolbarbutton-menu-dropmarker {
  -moz-appearance: none !important;
  border: none !important;
  background-color: transparent !important;
  list-style-image: url("chrome://global/skin/arrow/arrow-dn.png");
  padding: 0;
  -moz-padding-start: 2px;
  width: auto;
}

.toolbarbutton-menu-dropmarker[disabled="true"] {
  list-style-image: url("chrome://global/skin/arrow/arrow-dn-dis.png");
  padding: 0;
  -moz-padding-start: 2px;
}

/* ::::: toolbarbutton menu-button ::::: */

toolbarbutton[type="menu-button"] {
  -moz-box-align: stretch;
  -moz-box-orient: horizontal !important;
}

toolbarbutton[type="menu-button"],
toolbarbutton[type="menu-button"]:hover,
toolbarbutton[type="menu-button"]:hover:active,
toolbarbutton[type="menu-button"][open="true"],
toolbarbutton[type="menu-button"][disabled="true"],
toolbarbutton[type="menu-button"][disabled="true"]:hover,
toolbarbutton[type="menu-button"][disabled="true"]:hover:active {
  background-color: transparent;
}

.toolbarbutton-menubutton-button {
  -moz-box-align: center;
  -moz-box-pack: center;
  -moz-box-orient: vertical;
  text-shadow: inherit;
}

/* .......... dropmarker .......... */

.toolbarbutton-menubutton-dropmarker {
  -moz-appearance: none;
  border: none;
  background-color: transparent !important;
  list-style-image: url("chrome://global/skin/arrow/arrow-dn.png");
  width: auto;
  padding: 0 5px;
}

.toolbarbutton-menubutton-dropmarker[disabled="true"] {
  list-style-image: url("chrome://global/skin/arrow/arrow-dn-dis.png");
}

toolbarbutton.tabbable {
  -moz-user-focus: normal !important;
}
