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
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-border-radius: 3px;
49 -moz-box-align: center;
50 -moz-box-pack: center;
55 background-color: #000000;
64 margin: 0px !important;
70 background-color: #FFCF00;
74 toolbarbutton:hover:active,
75 toolbarbutton[open="true"],
76 toolbarbutton.toolbarbutton-menubutton-button[open="true"] {
77 background-color: #FF9F00;
81 toolbarbutton:hover:active,
82 toolbarbutton[open="true"] {
83 padding: 2px 0px 0px 2px;
86 toolbarbutton[disabled="true"] {
87 padding: 1px !important;
88 background-color: #000000 !important;
89 color: #8050B0 !important;
92 /* ..... checked state ..... */
94 toolbarbutton[checked="true"] {
95 padding: 1px !important;
96 background-color: #008484;
100 toolbarbutton[checked="true"]:hover {
101 background-color: #FFCF00;
105 /* ::::: toolbarbutton menu ::::: */
107 .toolbarbutton-menu-dropmarker {
108 list-style-image: url("chrome://global/skin/arrow/arrow-down.gif");
111 .toolbarbutton-menu-dropmarker:hover,
112 .toolbarbutton-menu-dropmarker[open="true"] {
113 list-style-image: url("chrome://global/skin/arrow/arrow-down-hover.gif");
116 .toolbarbutton-menu-dropmarker[disabled="true"] {
117 list-style-image: url("chrome://global/skin/arrow/arrow-down-disabled.gif");
120 /* ::::: toolbarbutton menu-button ::::: */
122 toolbarbutton[type="menu-button"] {
123 -moz-box-align: stretch;
126 toolbarbutton[type="menu-button"],
127 toolbarbutton[type="menu-button"]:hover,
128 toolbarbutton[type="menu-button"]:hover:active,
129 toolbarbutton[type="menu-button"][open="true"],
130 toolbarbutton[type="menu-button"][disabled="true"],
131 toolbarbutton[type="menu-button"][disabled="true"]:hover,
132 toolbarbutton[type="menu-button"][disabled="true"]:hover:active {
133 padding: 0px !important;
136 .toolbarbutton-menubutton-button {
138 -moz-box-align: center;
139 -moz-box-pack: center;
142 .toolbarbutton-menubutton-button,
143 .toolbarbutton-menubutton-dropmarker {
144 background-color: #000000;
147 .toolbarbutton-menubutton-button[disabled="true"],
148 .toolbarbutton-menubutton-dropmarker[disabled="true"] {
149 background-color: #000000 !important;
150 color: #8050B0 !important;
153 toolbarbutton[type="menu-button"]:hover > .toolbarbutton-menubutton-button,
154 toolbarbutton[type="menu-button"]:hover > .toolbarbutton-menubutton-dropmarker {
155 background-color: #FFCF00;
159 toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-button,
160 toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
161 toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-button,
162 toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker {
163 background-color: #FF9F00;
167 toolbarbutton[type="menu-button"]:hover:active > toolbarbutton.toolbarbutton-menubutton-button,
168 toolbarbutton[type="menu-button"][open="true"] > toolbarbutton.toolbarbutton-menubutton-button {
169 padding: 2px 0px 0px 2px !important;
172 toolbarbutton[disabled="true"] > toolbarbutton.toolbarbutton-menubutton-button,
173 toolbarbutton[disabled="true"]:hover:active > toolbarbutton.toolbarbutton-menubutton-button {
174 padding: 1px !important;
177 /* .......... dropmarker .......... */
179 .toolbarbutton-menubutton-dropmarker {
180 -moz-border-radius: 3px;
181 -moz-box-align: start;
182 padding: 3px 1px 1px 1px;
183 list-style-image: url("chrome://global/skin/arrow/arrow-down.gif");
186 toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
187 toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker {
188 padding: 4px 0px 0px 2px;
191 toolbarbutton[type="menu-button"]:hover > .toolbarbutton-menubutton-dropmarker,
192 toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
193 toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker {
194 list-style-image: url("chrome://global/skin/arrow/arrow-down-hover.gif");
197 .toolbarbutton-menubutton-dropmarker[disabled="true"] {
198 padding: 3px 1px 1px 1px !important;
199 list-style-image: url("chrome://global/skin/arrow/arrow-down-disabled.gif") !important;