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-1999
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-box-align: center;
50 -moz-box-pack: center;
52 border: 1px solid transparent;
54 background-color: transparent;
58 .toolbarbutton-icon[label]:not([label=""]),
59 .toolbarbutton-icon[type="menu"] {
64 margin: 0px !important;
69 toolbarbutton.tabbable {
70 -moz-user-focus: normal !important;
74 outline: 1px dotted #666699;
80 toolbarbutton.toolbarbutton-menubutton-button[open="true"] {
85 toolbarbutton[buttonover="true"] {
86 border: 1px outset #CCD0DD;
89 toolbarbutton:hover:active,
90 toolbarbutton[open="true"] {
93 -moz-padding-start: 2px;
94 -moz-padding-end: 0px;
95 border: 1px inset #CCD0DD;
98 toolbarbutton[disabled="true"],
99 toolbarbutton[disabled="true"]:hover,
100 toolbarbutton[disabled="true"]:hover:active,
101 toolbarbutton[disabled="true"][open="true"] {
102 border: 1px solid transparent;
107 /* ..... checked state ..... */
109 toolbarbutton[checked="true"] {
110 padding-top: 2px !important;
111 padding-bottom: 0px !important;
112 -moz-padding-start: 2px !important;
113 -moz-padding-end: 0px !important;
114 border: 1px inset #CCD0DD !important;
115 background-color: #DDDDDD !important;
118 /* ::::: toolbarbutton menu ::::: */
120 .toolbarbutton-menu-dropmarker {
122 border: none !important;
123 background-color: transparent !important;
126 .toolbarbutton-menu-dropmarker[disabled="true"] {
127 padding: 0 !important;
130 /* ::::: toolbarbutton menu-button ::::: */
132 toolbarbutton[type="menu-button"] {
133 -moz-box-align: stretch;
136 toolbarbutton[type="menu-button"],
137 toolbarbutton[type="menu-button"]:hover,
138 toolbarbutton[type="menu-button"]:hover:active,
139 toolbarbutton[type="menu-button"][open="true"],
140 toolbarbutton[type="menu-button"][disabled="true"],
141 toolbarbutton[type="menu-button"][disabled="true"]:hover,
142 toolbarbutton[type="menu-button"][disabled="true"]:hover:active {
144 padding: 0px !important;
147 .toolbarbutton-menubutton-button {
148 -moz-box-align: center;
149 -moz-box-pack: center;
150 -moz-box-orient: vertical;
153 .toolbarbutton-menubutton-button,
154 .toolbarbutton-menubutton-dropmarker {
155 border: 1px solid transparent;
158 .toolbarbutton-menubutton-button[disabled="true"],
159 .toolbarbutton-menubutton-dropmarker[disabled="true"] {
160 border: 1px solid transparent !important;
163 toolbarbutton[type="menu-button"]:hover > .toolbarbutton-menubutton-button,
164 toolbarbutton[type="menu-button"]:hover > .toolbarbutton-menubutton-dropmarker {
165 border: 1px outset #CCD0DD;
168 toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-button,
169 toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
170 toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-button,
171 toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker {
172 border: 1px inset #CCD0DD;
175 toolbarbutton[type="menu-button"]:hover:active > toolbarbutton.toolbarbutton-menubutton-button,
176 toolbarbutton[type="menu-button"][open="true"] > toolbarbutton.toolbarbutton-menubutton-button {
177 padding-top: 2px !important;
178 padding-bottom: 0px !important;
179 -moz-padding-start: 2px !important;
180 -moz-padding-end: 0px !important;
183 toolbarbutton[disabled="true"] > toolbarbutton.toolbarbutton-menubutton-button,
184 toolbarbutton[disabled="true"]:hover:active > toolbarbutton.toolbarbutton-menubutton-button {
185 padding: 1px !important;
188 /* .......... dropmarker .......... */
190 .toolbarbutton-menubutton-dropmarker {
191 -moz-box-align: start;
192 padding: 3px 1px 1px;
193 background-color: transparent;
196 toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
197 toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker {
200 -moz-padding-start: 2px;
201 -moz-padding-end: 0px;
204 .toolbarbutton-menubutton-dropmarker[disabled="true"] {
205 padding: 3px 1px 1px !important;