/*
 * 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 Communicator client code, released
 * March 31, 1998.
 *
 * The Initial Developer of the Original Code is Netscape
 * Communications Corporation. Portions created by Netscape are
 * Copyright (C) 1998-2001 Netscape Communications Corporation. All
 * Rights Reserved.
 *
 * Contributor(s):
 *   Joe Hewitt (hewitt@netscape.com)
 */

/* ==== menubuttons.css =================================================
   == Styles used for menubutton widgets in the Communicator suite.
   ====================================================================== */

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

/* ::::: button-toolbar menubuttons ::::: */

menubutton.button-toolbar {
  -moz-binding: url("chrome://communicator/skin/widgetBindings.xml#menubutton-toolbar-single");
}

.button-toolbar > .menubutton-toolbar-single-internal-box
  {
    vertical-align: middle;
  }

.menubutton-internal-box,
.button-toolbar[disabled="true"]:hover > .menubutton-internal-box,
.button-toolbar-4[disabled="true"]:hover > .menubutton-internal-box,
.button-toolbar[disabled="true"]:hover:active > .menubutton-internal-box,
.button-toolbar-4[disabled="true"]:hover:active > .menubutton-internal-box
{
  border: none;
  padding: 1px 3px 1px 3px;
  background-color: transparent;
}

.button-toolbar > .menubutton-internal-box > .menubutton-single-icon {
  margin-right: 2px;
}

.button-toolbar > .menubutton-internal-box > .menubutton-single-text {
  max-width: 8em;
}

.button-toolbar > .menubutton-internal-box > .menubutton-dropmarker {
  margin: 2px;
  list-style-image: url("chrome://communicator/skin/toolbar/mbtn-tb-arrow.gif");
}

.button-toolbar:hover > .menubutton-internal-box > .menubutton-dropmarker {
  list-style-image: url("chrome://communicator/skin/toolbar/mbtn-tb-arrow-hov.gif");
}
    
.button-toolbar:hover:active > .menubutton-internal-box 
    > .menubutton-dropmarker,
.button-toolbar[open="true"] > .menubutton-internal-box 
    > .menubutton-dropmarker
{
  list-style-image: url("chrome://communicator/skin/toolbar/mbtn-tb-arrow-act.gif");
}

.button-toolbar[disabled="true"] > .menubutton-internal-box > .menubutton-dropmarker,
.button-toolbar[disabled="true"]:hover > .menubutton-internal-box
    > .menubutton-dropmarker,
.button-toolbar[disabled="true"]:hover:active > .menubutton-internal-box
    > .menubutton-dropmarker
{
  list-style-image: url("chrome://communicator/skin/toolbar/mbtn-tb-arrow-dis.gif");
}
    
/* ::::: single toolbar menubuttons ::::: */

menubutton.button-toolbar-2.top {
  -moz-binding: url("chrome://communicator/skin/widgetBindings.xml#button-doubletext");
}

menubutton.button-toolbar-2.bottom {
  -moz-binding: url("chrome://communicator/skin/widgetBindings.xml#button-doubletext");
}

/* ::::: dual toolbar menubuttons ::::: */

.menubutton-dual {
  -moz-binding: url("chrome://communicator/skin/widgetBindings.xml#menubutton-dual-1");
  margin: 3px 2px 0px 2px;
  border: 0px;
  padding: 0px;
}

.button-toolbar-1.menubutton-dual-button,
.button-toolbar-2.menubutton-dual-button {
  margin: 0px;
  list-style-image: inherit;
}

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

.menubutton-dual-dropmarker-box {
  margin: 26px 0px 0px 23px;
}

.button-toolbar-2 + .menubutton-dual-dropmarker-box {
  margin: 10px 0px 0px 31px;
}

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

.menubutton-dual-dropmarker {
  list-style-image: url("chrome://communicator/skin/toolbar/mbtn1-arrow.gif");
}

.menubutton-dual:hover > .menubutton-dual-stack
    > .menubutton-dual-dropmarker-box > .menubutton-dual-dropmarker
{
  list-style-image: url("chrome://communicator/skin/toolbar/mbtn1-arrow-hov.gif");
}

.menubutton-dual:hover:active > .menubutton-dual-stack
    > .menubutton-dual-dropmarker-box > .menubutton-dual-dropmarker
{
  list-style-image: url("chrome://communicator/skin/toolbar/mbtn1-arrow-act.gif");
}

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

/* ::::: button-toolbar-4 menubuttons ::::: */

menubutton.button-toolbar-4 {
  -moz-binding: url("chrome://global/content/menulistBindings.xml#menubutton-single-right");
  margin: 0px 6px;
}

.button-toolbar-4 > .menubutton-internal-box > .menubutton-single-icon {
  list-style-image: url("chrome://communicator/skin/toolbar/mbtn4-arrow-up.gif");
}

.button-toolbar-4 > .menubutton-internal-box {
  border: 0px;
  padding: 0px;
}

.button-toolbar-4 > .menubutton-internal-box > .menubutton-single-icon {
  margin-left: 2px;
}

/* ::::: dual toolbar menubuttons ::::: */

.menubutton-dual.button-toolbar-3 {
  -moz-binding: url("chrome://global/content/menulistBindings.xml#menubutton-dual-ex");  
  margin: 2px;
  color: #1C1D1F;
  font-family: message-box;
}

.menubutton-dual.button-toolbar-3 > .menubutton-dual-ex-button {
  -moz-user-focus: ignore;
  margin: 0px;
  border: none;
  font: inherit;
  color: inherit;
}

.menubutton-dual.button-toolbar-3 > .menubutton-dual-dropmarker-box {
  margin: 0px;
  padding-left: 3px;
}

