1 /* ***** BEGIN LICENSE BLOCK *****
2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 * The contents of this file are subject to the Mozilla Public License Version
5 * 1.1 (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
7 * http://www.mozilla.org/MPL/
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 Communicator client code, released
17 * The Initial Developer of the Original Code is
18 * Netscape Communications Corporation.
19 * Portions created by the Initial Developer are Copyright (C) 1998
20 * the Initial Developer. All Rights Reserved.
23 * Joe Hewitt (hewitt@netscape.com)
24 * Robert Kaiser <KaiRo@KaiRo.at>
26 * Alternatively, the contents of this file may be used under the terms of
27 * either the GNU General Public License Version 2 or later (the "GPL"), or
28 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
29 * in which case the provisions of the GPL or the LGPL are applicable instead
30 * of those above. If you wish to allow use of your version of this file only
31 * under the terms of either the GPL or the LGPL, and not to allow others to
32 * use your version of this file under the terms of the MPL, indicate your
33 * decision by deleting the provisions above and replace them with the notice
34 * and other provisions required by the GPL or the LGPL. If you do not delete
35 * the provisions above, a recipient may use your version of this file under
36 * the terms of any one of the MPL, the GPL or the LGPL.
38 * ***** END LICENSE BLOCK ***** */
40 /* ===== toolbarbutton.css =====================================================
41 == Styles used by the XUL button element.
42 ======================================================================= */
44 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
46 /* ::::: toolbarbutton ::::: */
50 -moz-box-align: center;
51 -moz-box-pack: center;
53 -moz-margin-start: 2px;
56 background-color: #000000;
60 .toolbarbutton-icon[label]:not([label=""]),
61 .toolbarbutton-icon[type="menu"] {
62 -moz-margin-start: 1px;
67 margin: 0px !important;
72 toolbarbutton.tabbable {
73 -moz-user-focus: normal !important;
76 toolbarbutton:-moz-focusring {
77 -moz-outline-radius: 3px;
78 outline: 1px dotted #008484;
79 -moz-outline-offset: -1px;
83 background-color: #FFCF00;
87 toolbarbutton:hover:active,
88 toolbarbutton[open="true"],
89 toolbarbutton.toolbarbutton-menubutton-button[open="true"] {
90 background-color: #FF9F00;
94 toolbarbutton:hover:active,
95 toolbarbutton[open="true"] {
98 -moz-padding-start: 3px;
99 -moz-padding-end: 1px;
102 toolbarbutton[disabled="true"],
103 toolbarbutton[disabled="true"]:hover,
104 toolbarbutton[disabled="true"]:hover:active,
105 toolbarbutton[disabled="true"][open="true"],
106 toolbarbutton[disabled="true"][checked="true"] {
108 background-color: #000000;
112 toolbarbutton:-moz-lwtheme {
117 /* ..... checked state ..... */
119 toolbarbutton[checked="true"] {
120 padding-top: 2px !important;
121 padding-bottom: 0px !important;
122 -moz-padding-start: 3px !important;
123 -moz-padding-end: 1px !important;
124 background-color: #008484;
128 toolbarbutton[checked="true"]:hover,
129 toolbarbutton[checked="true"]:hover:active {
130 background-color: #FFCF00;
134 /* ::::: toolbarbutton menu ::::: */
136 .toolbarbutton-menu-dropmarker {
138 border: none !important;
139 background-color: transparent !important;
142 .toolbarbutton-menu-dropmarker[disabled="true"] {
143 padding: 0 !important;
146 /* ::::: toolbarbutton menu-button ::::: */
148 toolbarbutton[type="menu-button"] {
149 -moz-box-align: stretch;
152 toolbarbutton[type="menu-button"],
153 toolbarbutton[type="menu-button"]:hover,
154 toolbarbutton[type="menu-button"]:hover:active,
155 toolbarbutton[type="menu-button"][open="true"],
156 toolbarbutton[type="menu-button"][disabled="true"],
157 toolbarbutton[type="menu-button"][disabled="true"]:hover,
158 toolbarbutton[type="menu-button"][disabled="true"]:hover:active {
159 padding: 0px !important;
162 .toolbarbutton-menubutton-button {
164 -moz-box-align: center;
165 -moz-box-pack: center;
166 -moz-box-orient: vertical;
169 .toolbarbutton-menubutton-button,
170 .toolbarbutton-menubutton-dropmarker {
171 background-color: #000000;
174 .toolbarbutton-menubutton-button[disabled="true"],
175 .toolbarbutton-menubutton-dropmarker[disabled="true"] {
176 background-color: #000000 !important;
177 color: #8050B0 !important;
180 toolbarbutton[type="menu-button"]:hover > .toolbarbutton-menubutton-button,
181 toolbarbutton[type="menu-button"]:hover > .toolbarbutton-menubutton-dropmarker {
182 background-color: #FFCF00;
186 toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-button,
187 toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
188 toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-button,
189 toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker {
190 background-color: #FF9F00;
194 toolbarbutton[type="menu-button"]:hover:active > toolbarbutton.toolbarbutton-menubutton-button,
195 toolbarbutton[type="menu-button"][open="true"] > toolbarbutton.toolbarbutton-menubutton-button {
196 padding-top: 2px !important;
197 padding-bottom: 0px !important;
198 -moz-padding-start: 3px !important;
199 -moz-padding-end: 1px !important;
202 toolbarbutton[disabled="true"] > toolbarbutton.toolbarbutton-menubutton-button,
203 toolbarbutton[disabled="true"]:hover:active > toolbarbutton.toolbarbutton-menubutton-button {
204 padding: 1px 2px !important;
207 /* .......... dropmarker .......... */
209 .toolbarbutton-menubutton-dropmarker {
211 -moz-box-align: start;
212 padding: 3px 1px 1px;
214 background-color: transparent;
217 toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
218 toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker {
221 -moz-padding-start: 2px;
222 -moz-padding-end: 0px;
225 toolbarbutton[type="menu-button"]:not([disabled="true"]):hover > .toolbarbutton-menubutton-dropmarker,
226 toolbarbutton[type="menu-button"]:not([disabled="true"]):hover:active > .toolbarbutton-menubutton-dropmarker,
227 toolbarbutton[type="menu-button"][open="true"]:not([disabled="true"]) > .toolbarbutton-menubutton-dropmarker,
228 toolbarbutton[type="menu"]:not([disabled="true"]):hover .toolbarbutton-menu-dropmarker,
229 toolbarbutton[type="menu"]:not([disabled="true"]):hover:active .toolbarbutton-menu-dropmarker,
230 toolbarbutton[type="menu"][open="true"]:not([disabled="true"]) .toolbarbutton-menu-dropmarker {
231 list-style-image: url("chrome://global/skin/arrow/arrow-down-hover.gif");
232 -moz-image-region: auto;
236 .toolbarbutton-menubutton-dropmarker[disabled="true"] {
237 padding: 3px 1px 1px !important;
238 border: none !important;