/* * 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): * Joe Hewitt (hewitt@netscape.com) * Kevin Gerich (webmail@kmgerich.com) */ /* ===== toolbarbutton.css ===================================================== == Styles used by the XUL button element. ======================================================================= */ @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* ::::: toolbarbutton ::::: */ 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; } .toolbarbutton-icon { padding: 1px 0px 1px 0px; } .toolbarbutton-text { margin: 0px; padding: 0px; text-align: center; vertical-align: middle; } toolbarbutton:hover:active[buttonstyle="text"], toolbarbutton[open="true"][buttonstyle="text"] { color: #2c498c; } toolbarbutton[disabled="true"], toolbarbutton[disabled="true"]:hover, toolbarbutton[disabled="true"]:hover:active toolbarbutton[disabled="true"][open="true"] { color: GrayText !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 { list-style-image: url("chrome://global/skin/arrow/arrow-dn.png"); padding-left: 2px; } .toolbarbutton-menu-dropmarker[disabled="true"] { list-style-image: url("chrome://global/skin/arrow/arrow-dn-dis.png"); } /* ::::: toolbarbutton menu-button ::::: */ toolbarbutton[type="menu-button"] { -moz-box-align: stretch; } 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; } /* .......... dropmarker .......... */ .toolbarbutton-menubutton-dropmarker { -moz-box-align: center; -moz-box-pack: center; list-style-image: url("chrome://global/skin/arrow/arrow-dn.png"); } .toolbarbutton-menubutton-dropmarker[disabled="true"] { list-style-image: url("chrome://global/skin/arrow/arrow-dn-dis.png") !important; }