/*
 * 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-1999 Netscape Communications Corporation. All
 * Rights Reserved.
 *
 * Contributor(s):
 *
 */

/* ===== formatting.css =================================================
  == Styles for various formatting styles.
  ======================================================================= */

/* all localizable skin settings shall live here */
@import url("chrome://global/locale/intl.css");

@import url("chrome://global/skin/formatting.css");

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

/* ::::: bindings ::::: */

button {
  -moz-binding: url("chrome://global/skin/globalBindings.xml#button");
}

button.plain {
  -moz-binding: url("chrome://global/content/bindings/button.xml#buttonleft");
}

menubutton {
  -moz-binding: url("chrome://global/skin/globalBindings.xml#menubutton-single");
}

menulist {
  -moz-binding: url("chrome://global/skin/globalBindings.xml#menulist");
}

menulist[editable="true"] {
  -moz-binding: url("chrome://global/skin/globalBindings.xml#menulist-editable") !important;
}

.menulist-compact {
  -moz-binding: url("chrome://global/skin/globalBindings.xml#menulist-compact");
}

toolbargrippy {
  -moz-binding: url("chrome://global/skin/globalBindings.xml#toolbargrippy");
}

toolbargrippy[tbgrippy-collapsed="true"] {
  -moz-binding: url("chrome://global/skin/globalBindings.xml#toolbargrippy-collapsed");
}

progressmeter {
  -moz-binding: url("chrome://global/skin/globalBindings.xml#progressmeter");
}

tabs {
  -moz-binding: url("chrome://global/skin/globalBindings.xml#tabs");
}

tab {
  -moz-binding: url("chrome://global/skin/globalBindings.xml#tab");
}

splitter {
  -moz-binding: url("chrome://global/skin/globalBindings.xml#splitter");
}

.treecell-popupcell-menu {
  -moz-binding: url("chrome://global/content/bindings/menu.xml#menu-iconic") !important;
}

/* ::::: XUL <box> debugging ::::: */

:-moz-horizontal-box-debug {
  margin: 2px;
  border: 2px solid blue;
  border-top-width: 10px;
  padding: 2px;
  color: white;
}

:-moz-vertical-box-debug {
  margin: 2px;
  border: 2px solid red;
  border-left-width: 10px;
  padding: 2px;
  color: white;
}

/* ::::: window ::::: */

window { 
  padding: 0px;
  background-color: #C7D0D9;
  color: #000000;
  font: message-box;
}
  
window[wait-cursor] { 
  cursor: wait !important; 
}
  
window.dialog { 
  padding: 7px 5px 5px 5px;
}

/* ::::: alert icons :::::*/

.message-icon {
  list-style-image: url("chrome://global/skin/icons/alert-message.gif");
  width:32px;height:32px;
}

.alert-icon {
  list-style-image: url("chrome://global/skin/icons/alert-exclam.gif");
  width:32px;height:32px;
}

.error-icon {
  list-style-image: url("chrome://global/skin/icons/alert-error.gif");
  width:32px;height:32px;
}

.question-icon {
  list-style-image: url("chrome://global/skin/icons/alert-question.gif");
  width:32px;height:32px;
}

.security-icon {
  list-style-image: url("chrome://global/skin/icons/alert-security.gif");
  width: 32px;
  height: 32px;
}

/* ::::: iframe ::::: */

iframe {
  border: none;
  width: 100px;
  height: 100px;
  min-width: 10px;
  min-height: 10px;
}

/* ::::: status bar ::::: */

#status-bar {
  -moz-user-focus: ignore;
  border-top: 1px solid #CED6DD;
  min-width: 1px; /* DON'T DELETE!
    Removes disappearance of scrollbars in content pane when window
    is made smaller. Talk to evaughan@netscape.com for details. */
  background-color: #C7D0D9;
  color: #22262F;
  font-size: smaller;
  overflow: hidden;
}

statusbarpanel {
  border-top: 1px solid #E0ECF6;
  border-right: 1px solid #8997A1;
  border-left: 1px solid #E0ECF6;
  padding: 0px 4px;
}

.statusbar-panel-icon {
  margin: 0px 2px 0px 0px;
}

.statusbarpanel-icononly {
  padding: 0px;
}

/* ::::: Descriptions and Labels ::::::: */

description[disabled="true"], label[disabled="true"] {
  color: #8C99AB;
}

/* has to be in here since scoped stylesheets can't apply
   to explicit children yet */
groupbox > label {
  margin: 0px 6px 2px 6px;
  padding: 0px 3px 0px 3px;
  background-color: #C7D0D9; 
}

/* ::::: miscellaneous ::::: */

.tooltip-label {
  margin: 0px;
}

.toolbar-focustarget {
  -moz-user-focus: ignore !important;
}

