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 ::::: */
49 -moz-border-radius: 3px;
50 -moz-box-align: center;
51 -moz-box-pack: center;
56 background-color: #000000;
65 margin: 0px !important;
70 toolbarbutton.tabbable {
71 -moz-user-focus: normal !important;
75 -moz-outline-radius: 3px;
76 outline: 1px dotted #008484;
77 -moz-outline-offset: -1px;
81 toolbarbutton[buttonover="true"] {
82 background-color: #FFCF00;
86 toolbarbutton:hover:active,
87 toolbarbutton[open="true"],
88 toolbarbutton.toolbarbutton-menubutton-button[open="true"] {
89 background-color: #FF9F00;
93 toolbarbutton:hover:active,
94 toolbarbutton[open="true"] {
97 -moz-padding-start: 2px;
98 -moz-padding-end: 0px;
101 toolbarbutton[disabled="true"],
102 toolbarbutton[disabled="true"]:hover,
103 toolbarbutton[disabled="true"]:hover:active,
104 toolbarbutton[disabled="true"][open="true"] {
106 background-color: #000000;
110 /* ..... checked state ..... */
112 toolbarbutton[checked="true"] {
113 padding-top: 2px !important;
114 padding-bottom: 0px !important;
115 -moz-padding-start: 2px !important;
116 -moz-padding-end: 0px !important;
117 background-color: #008484;
121 toolbarbutton[checked="true"]:hover,
122 toolbarbutton[checked="true"]:hover:active {
123 background-color: #FFCF00;
127 /* ::::: toolbarbutton menu ::::: */
129 .toolbarbutton-menu-dropmarker {
131 border: none !important;
132 background-color: transparent !important;
135 .toolbarbutton-menu-dropmarker[disabled="true"] {
136 padding: 0 !important;
139 /* ::::: toolbarbutton menu-button ::::: */
141 toolbarbutton[type="menu-button"] {
142 -moz-box-align: stretch;
145 toolbarbutton[type="menu-button"],
146 toolbarbutton[type="menu-button"]:hover,
147 toolbarbutton[type="menu-button"]:hover:active,
148 toolbarbutton[type="menu-button"][open="true"],
149 toolbarbutton[type="menu-button"][disabled="true"],
150 toolbarbutton[type="menu-button"][disabled="true"]:hover,
151 toolbarbutton[type="menu-button"][disabled="true"]:hover:active {
152 padding: 0px !important;
155 .toolbarbutton-menubutton-button {
157 -moz-box-align: center;
158 -moz-box-pack: center;
159 -moz-box-orient: vertical;
162 .toolbarbutton-menubutton-button,
163 .toolbarbutton-menubutton-dropmarker {
164 background-color: #000000;
167 .toolbarbutton-menubutton-button[disabled="true"],
168 .toolbarbutton-menubutton-dropmarker[disabled="true"] {
169 background-color: #000000 !important;
170 color: #8050B0 !important;
173 toolbarbutton[type="menu-button"]:hover > .toolbarbutton-menubutton-button,
174 toolbarbutton[type="menu-button"]:hover > .toolbarbutton-menubutton-dropmarker {
175 background-color: #FFCF00;
179 toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-button,
180 toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
181 toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-button,
182 toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker {
183 background-color: #FF9F00;
187 toolbarbutton[type="menu-button"]:hover:active > toolbarbutton.toolbarbutton-menubutton-button,
188 toolbarbutton[type="menu-button"][open="true"] > toolbarbutton.toolbarbutton-menubutton-button {
189 padding-top: 2px !important;
190 padding-bottom: 0px !important;
191 -moz-padding-start: 2px !important;
192 -moz-padding-end: 0px !important;
195 toolbarbutton[disabled="true"] > toolbarbutton.toolbarbutton-menubutton-button,
196 toolbarbutton[disabled="true"]:hover:active > toolbarbutton.toolbarbutton-menubutton-button {
197 padding: 1px !important;
200 /* .......... dropmarker .......... */
202 .toolbarbutton-menubutton-dropmarker {
203 -moz-border-radius: 3px;
204 -moz-box-align: start;
205 padding: 3px 1px 1px 1px;
207 background-color: transparent;
210 toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
211 toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker {
214 -moz-padding-start: 2px;
215 -moz-padding-end: 0px;
218 .toolbarbutton-menubutton-dropmarker[disabled="true"] {
219 padding: 3px 1px 1px 1px !important;
220 border: none !important;