/* ***** BEGIN LICENSE BLOCK *****
 * Version: NPL 1.1/GPL 2.0/LGPL 2.1
 *
 * The contents of this file are subject to the Netscape Public License
 * Version 1.1 (the "License"); you may not use this file except in
 * compliance with the License. You may obtain a copy of the License at
 * http://www.mozilla.org/NPL/
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the
 * License.
 *
 * The Original Code is mozilla.org code.
 *
 * The Initial Developer of the Original Code is 
 * Netscape Communications Corporation.
 * Portions created by the Initial Developer are Copyright (C) 1998
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 *  Joe Hewitt <hewitt@netscape.com>
 *
 * Alternatively, the contents of this file may be used under the terms of
 * either the GNU General Public License Version 2 or later (the "GPL"), or 
 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 * in which case the provisions of the GPL or the LGPL are applicable instead
 * of those above. If you wish to allow use of your version of this file only
 * under the terms of either the GPL or the LGPL, and not to allow others to
 * use your version of this file under the terms of the NPL, indicate your
 * decision by deleting the provisions above and replace them with the notice
 * and other provisions required by the GPL or the LGPL. If you do not delete
 * the provisions above, a recipient may use your version of this file under
 * the terms of any one of the NPL, the GPL or the LGPL.
 *
 * ***** END LICENSE BLOCK ***** */

/* ===== toolbarbutton.css ==============================================
  == Styles used by XUL toolbarbutton elements.
  ======================================================================= */

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

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

toolbarbutton {
  -moz-box-align: center;
  -moz-box-pack: center;
  border: 1px solid transparent;
  padding: 1px 2px;
  font: message-box;
}

.toolbarbutton-icon {
  margin-right: 2px;
  list-style-image: inherit;
}

.toolbarbutton-text {
  margin: 0px !important;
  text-align: center;
}

toolbarbutton:hover {
  border-top-color: #EEF0F3;
  border-right-color: #86929E;
  border-bottom-color: #86929E;
  border-left-color: #EEF0F3;
}

toolbarbutton:hover:active,
toolbarbutton[open="true"] {
  border-top-color: #86929E;
  border-right-color: #EEF0F3;
  border-bottom-color: #EEF0F3;
  border-left-color: #86929E;
  padding: 2px 1px 0px 3px;
}

toolbarbutton[disabled="true"] {
  border-color: transparent !important;
  padding: 1px 2px !important;
  color: #9399AB !important;
}

/* ..... checked state ..... */
  
toolbarbutton[checked="true"] {
  border-top-color: #454C55 !important;
  border-right-color: #7D848D !important;
  border-bottom-color: #7D848D !important;
  border-left-color: #454C55 !important;
  background-color: #8C9AA8 !important;
  color: #EFF1F4;
}

toolbarbutton[checked="true"]:hover:active {
  padding: 1px 2px;
}

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

.toolbarbutton-menu-dropmarker {
  list-style-image: url("chrome://global/skin/button/tbmenu-arrow.gif");
}

.toolbarbutton-menu-dropmarker[disabled="true"] {
  list-style-image: url("chrome://global/skin/button/tbmenu-arrow-dis.gif");
}

.toolbarbutton-menu-dropmarker[open="true"] {
  list-style-image: url("chrome://global/skin/button/tbmenu-arrow-act.gif");
}

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

.toolbarbutton-menubutton-button {
  font: inherit;
}

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

.toolbarbutton-menubutton-dropmarker {
  -moz-box-align: center;
  -moz-box-pack: center;
  margin: 20px 5px 15px 40px;
  width: 13px;
  height: 11px;
  list-style-image: url("chrome://global/skin/button/tbmbtn-arrow.gif");
}

toolbarbutton:hover > stack > .toolbarbutton-menubutton-dropmarker {
  list-style-image: url("chrome://global/skin/button/tbmbtn-arrow-hov.gif");
}

toolbarbutton[open="true"] > stack > .toolbarbutton-menubutton-dropmarker {
  list-style-image: url("chrome://global/skin/button/tbmbtn-arrow-act.gif");
}

toolbarbutton[disabled="true"] > stack > .toolbarbutton-menubutton-dropmarker,
toolbarbutton[disabled="true"]:hover > stack > .toolbarbutton-menubutton-dropmarker
{
  list-style-image: none;
}
