update to suite default status of 2009-01-30: bug 471372 - customizable toolbars...
[themes.git] / LCARStrek / global / toolbarbutton.css
... / ...
CommitLineData
1/* ***** BEGIN LICENSE BLOCK *****
2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
3 *
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/
8 *
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
12 * License.
13 *
14 * The Original Code is Mozilla Communicator client code, released
15 * March 31, 1998.
16 *
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.
21 *
22 * Contributor(s):
23 * Joe Hewitt (hewitt@netscape.com)
24 * Robert Kaiser <KaiRo@KaiRo.at>
25 *
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.
37 *
38 * ***** END LICENSE BLOCK ***** */
39
40/* ===== toolbarbutton.css =====================================================
41 == Styles used by the XUL button element.
42 ======================================================================= */
43
44@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
45
46/* ::::: toolbarbutton ::::: */
47
48toolbarbutton {
49 -moz-border-radius: 3px;
50 -moz-box-align: center;
51 -moz-box-pack: center;
52 margin: 0px;
53 margin-left: 2px;
54 border: none;
55 padding: 1px 2px;
56 background-color: #000000;
57 color: #FFCF00;
58}
59
60.toolbarbutton-icon {
61 -moz-margin-start: 1px;
62 -moz-margin-end: 2px;
63}
64
65.toolbarbutton-text {
66 margin: 0px !important;
67 padding: 0px;
68 text-align: center;
69}
70
71toolbarbutton.tabbable {
72 -moz-user-focus: normal !important;
73}
74
75toolbarbutton:focus {
76 -moz-outline-radius: 3px;
77 outline: 1px dotted #008484;
78 -moz-outline-offset: -1px;
79}
80
81toolbarbutton:hover,
82toolbarbutton[buttonover="true"] {
83 background-color: #FFCF00;
84 color: #000000;
85}
86
87toolbarbutton:hover:active,
88toolbarbutton[open="true"],
89toolbarbutton.toolbarbutton-menubutton-button[open="true"] {
90 background-color: #FF9F00;
91 color: #000000;
92}
93
94toolbarbutton:hover:active,
95toolbarbutton[open="true"] {
96 padding-top: 2px;
97 padding-bottom: 0px;
98 -moz-padding-start: 3px;
99 -moz-padding-end: 1px;
100}
101
102toolbarbutton[disabled="true"],
103toolbarbutton[disabled="true"]:hover,
104toolbarbutton[disabled="true"]:hover:active,
105toolbarbutton[disabled="true"][open="true"],
106toolbarbutton[disabled="true"][checked="true"] {
107 padding: 1px 2px;
108 background-color: #000000;
109 color: #8050B0;
110}
111
112/* ..... checked state ..... */
113
114toolbarbutton[checked="true"] {
115 padding-top: 2px !important;
116 padding-bottom: 0px !important;
117 -moz-padding-start: 3px !important;
118 -moz-padding-end: 1px !important;
119 background-color: #008484;
120 color: #FFCF00;
121}
122
123toolbarbutton[checked="true"]:hover,
124toolbarbutton[checked="true"]:hover:active {
125 background-color: #FFCF00;
126 color: #000000;
127}
128
129/* ::::: toolbarbutton menu ::::: */
130
131.toolbarbutton-menu-dropmarker {
132 padding: 0px;
133 border: none !important;
134 background-color: transparent !important;
135}
136
137.toolbarbutton-menu-dropmarker[disabled="true"] {
138 padding: 0 !important;
139}
140
141/* ::::: toolbarbutton menu-button ::::: */
142
143toolbarbutton[type="menu-button"] {
144 -moz-box-align: stretch;
145}
146
147toolbarbutton[type="menu-button"],
148toolbarbutton[type="menu-button"]:hover,
149toolbarbutton[type="menu-button"]:hover:active,
150toolbarbutton[type="menu-button"][open="true"],
151toolbarbutton[type="menu-button"][disabled="true"],
152toolbarbutton[type="menu-button"][disabled="true"]:hover,
153toolbarbutton[type="menu-button"][disabled="true"]:hover:active {
154 padding: 0px !important;
155}
156
157.toolbarbutton-menubutton-button {
158 margin: 0px;
159 -moz-box-align: center;
160 -moz-box-pack: center;
161 -moz-box-orient: vertical;
162}
163
164.toolbarbutton-menubutton-button,
165.toolbarbutton-menubutton-dropmarker {
166 background-color: #000000;
167}
168
169.toolbarbutton-menubutton-button[disabled="true"],
170.toolbarbutton-menubutton-dropmarker[disabled="true"] {
171 background-color: #000000 !important;
172 color: #8050B0 !important;
173}
174
175toolbarbutton[type="menu-button"]:hover > .toolbarbutton-menubutton-button,
176toolbarbutton[type="menu-button"]:hover > .toolbarbutton-menubutton-dropmarker {
177 background-color: #FFCF00;
178 color: #000000;
179}
180
181toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-button,
182toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
183toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-button,
184toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker {
185 background-color: #FF9F00;
186 color: #000000;
187}
188
189toolbarbutton[type="menu-button"]:hover:active > toolbarbutton.toolbarbutton-menubutton-button,
190toolbarbutton[type="menu-button"][open="true"] > toolbarbutton.toolbarbutton-menubutton-button {
191 padding-top: 2px !important;
192 padding-bottom: 0px !important;
193 -moz-padding-start: 3px !important;
194 -moz-padding-end: 1px !important;
195}
196
197toolbarbutton[disabled="true"] > toolbarbutton.toolbarbutton-menubutton-button,
198toolbarbutton[disabled="true"]:hover:active > toolbarbutton.toolbarbutton-menubutton-button {
199 padding: 1px 2px !important;
200}
201
202/* .......... dropmarker .......... */
203
204.toolbarbutton-menubutton-dropmarker {
205 -moz-border-radius: 3px;
206 -moz-box-align: start;
207 padding: 3px 1px 1px 1px;
208 border: none;
209 background-color: transparent;
210}
211
212toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
213toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker {
214 padding-top: 4px;
215 padding-bottom: 0px;
216 -moz-padding-start: 2px;
217 -moz-padding-end: 0px;
218}
219
220toolbarbutton[type="menu-button"]:not([disabled="true"]):hover > .toolbarbutton-menubutton-dropmarker,
221toolbarbutton[type="menu-button"]:not([disabled="true"]):hover:active > .toolbarbutton-menubutton-dropmarker,
222toolbarbutton[type="menu-button"][open="true"]:not([disabled="true"]) > .toolbarbutton-menubutton-dropmarker,
223toolbarbutton[type="menu"]:not([disabled="true"]):hover .toolbarbutton-menu-dropmarker,
224toolbarbutton[type="menu"]:not([disabled="true"]):hover:active .toolbarbutton-menu-dropmarker,
225toolbarbutton[type="menu"][open="true"]:not([disabled="true"]) .toolbarbutton-menu-dropmarker {
226 list-style-image: url("chrome://global/skin/arrow/arrow-down-hover.gif");
227 -moz-image-region: auto;
228}
229
230
231.toolbarbutton-menubutton-dropmarker[disabled="true"] {
232 padding: 3px 1px 1px 1px !important;
233 border: none !important;
234}