1 /* ***** BEGIN LICENSE BLOCK *****
2 * Version: NPL 1.1/GPL 2.0/LGPL 2.1
4 * The contents of this file are subject to the Netscape Public License
5 * Version 1.1 (the "License"); you may not use this file except in
6 * compliance with the License. You may obtain a copy of the License at
7 * http://www.mozilla.org/NPL/
9 * Software distributed under the License is distributed on an "AS IS" basis,
10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 * for the specific language governing rights and limitations under the
14 * The Original Code is mozilla.org code.
16 * The Initial Developer of the Original Code is
17 * Netscape Communications Corporation.
18 * Portions created by the Initial Developer are Copyright (C) 1998-1999
19 * the Initial Developer. All Rights Reserved.
22 * Joe Hewitt (hewitt@netscape.com)
23 * Robert Kaiser <KaiRo@KaiRo.at>
25 * Alternatively, the contents of this file may be used under the terms of
26 * either the GNU General Public License Version 2 or later (the "GPL"), or
27 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
28 * in which case the provisions of the GPL or the LGPL are applicable instead
29 * of those above. If you wish to allow use of your version of this file only
30 * under the terms of either the GPL or the LGPL, and not to allow others to
31 * use your version of this file under the terms of the NPL, indicate your
32 * decision by deleting the provisions above and replace them with the notice
33 * and other provisions required by the GPL or the LGPL. If you do not delete
34 * the provisions above, a recipient may use your version of this file under
35 * the terms of any one of the NPL, the GPL or the LGPL.
37 * ***** END LICENSE BLOCK ***** */
39 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
41 /* ===== toolbarbutton.css =====================================================
42 == Styles used by the XUL button element.
43 ======================================================================= */
45 /* ::::: toolbarbutton ::::: */
48 -moz-box-align: center;
49 -moz-box-pack: center;
51 border: 1px solid transparent;
53 background-color: transparent;
62 margin: 0px !important;
69 toolbarbutton[buttonover="true"],
70 toolbarbutton.toolbarbutton-menubutton-button[open="true"] {
75 border: 1px outset #CCD0DD;
78 toolbarbutton:hover:active,
79 toolbarbutton[open="true"] {
80 padding: 2px 0px 0px 2px;
81 border: 1px inset #CCD0DD;
84 toolbarbutton[disabled="true"] {
85 border: 1px solid transparent !important;
86 padding: 1px !important;
87 color: #999999 !important;
90 /* ..... checked state ..... */
92 toolbarbutton[checked="true"] {
93 padding: 1px !important;
94 border: 1px inset #CCD0DD !important;
95 background-color: #DDDDDD !important;
98 /* ::::: toolbarbutton menu ::::: */
100 .toolbarbutton-menu-dropmarker {
101 list-style-image: url("chrome://global/skin/arrow/arrow-down.gif");
104 .toolbarbutton-menu-dropmarker[disabled="true"] {
105 list-style-image: url("chrome://global/skin/arrow/arrow-down-disabled.gif");
108 /* ::::: toolbarbutton menu-button ::::: */
110 toolbarbutton[type="menu-button"] {
111 -moz-box-align: stretch;
114 toolbarbutton[type="menu-button"],
115 toolbarbutton[type="menu-button"]:hover,
116 toolbarbutton[type="menu-button"]:hover:active,
117 toolbarbutton[type="menu-button"][open="true"],
118 toolbarbutton[type="menu-button"][disabled="true"],
119 toolbarbutton[type="menu-button"][disabled="true"]:hover,
120 toolbarbutton[type="menu-button"][disabled="true"]:hover:active {
121 border: none !important;
122 padding: 0px !important;
125 .toolbarbutton-menubutton-button {
126 -moz-box-align: center;
127 -moz-box-pack: center;
130 .toolbarbutton-menubutton-button,
131 .toolbarbutton-menubutton-dropmarker {
132 border: 1px solid transparent;
135 .toolbarbutton-menubutton-button[disabled="true"],
136 .toolbarbutton-menubutton-dropmarker[disabled="true"] {
137 border: 1px solid transparent !important;
140 toolbarbutton[type="menu-button"]:hover > .toolbarbutton-menubutton-button,
141 toolbarbutton[type="menu-button"][buttonover="true"] > .toolbarbutton-menubutton-button,
142 toolbarbutton[type="menu-button"]:hover > .toolbarbutton-menubutton-dropmarker,
143 toolbarbutton[type="menu-button"][buttonover="true"] > .toolbarbutton-menubutton-dropmarker {
144 border: 1px outset #CCD0DD;
147 toolbarbutton[type="menu-button"][buttondown="true"] > .toolbarbutton-menubutton-button,
148 toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
149 toolbarbutton[type="menu-button"][buttondown="true"] > .toolbarbutton-menubutton-dropmarker,
150 toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-button,
151 toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker {
152 border: 1px inset #CCD0DD;
155 toolbarbutton[type="menu-button"][buttondown="true"] > toolbarbutton.toolbarbutton-menubutton-button,
156 toolbarbutton[type="menu-button"][open="true"] > toolbarbutton.toolbarbutton-menubutton-button {
157 padding: 2px 0px 0px 2px !important;
160 /* .......... dropmarker .......... */
162 .toolbarbutton-menubutton-dropmarker {
163 -moz-box-align: start;
164 padding: 3px 1px 1px 1px;
165 list-style-image: url("chrome://global/skin/arrow/arrow-down.gif");
168 toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
169 toolbarbutton[type="menu-button"][buttondown="true"] > .toolbarbutton-menubutton-dropmarker,
170 toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker {
171 padding: 4px 0px 0px 2px;
174 .toolbarbutton-menubutton-dropmarker[disabled="true"] {
175 padding: 3px 1px 1px 1px !important;
176 list-style-image: url("chrome://global/skin/arrow/arrow-down-disabled.gif") !important;