sync both themes with toolkit winstripe changes of 13 cycle
[themes.git] / LCARStrek / global / toolbarbutton.css
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
48 toolbarbutton {
49   border-radius: 3px;
50   -moz-box-align: center;
51   -moz-box-pack: center;
52   margin: 0px;
53   -moz-margin-start: 2px;
54   border: none;
55   padding: 1px 2px;
56   background-color: #000000;
57   color: #FFCF00;
58 }
59
60 .toolbarbutton-icon[label]:not([label=""]),
61 .toolbarbutton-icon[type="menu"] {
62   -moz-margin-start: 1px;
63   -moz-margin-end: 2px;
64 }
65
66 .toolbarbutton-text {
67   margin: 0px !important;
68   padding: 0px;
69   text-align: center;
70 }
71
72 toolbarbutton.tabbable {
73   -moz-user-focus: normal !important;
74 }
75
76 toolbarbutton:-moz-focusring {
77   -moz-outline-radius: 3px;
78   outline: 1px dotted #008484;
79   outline-offset: -1px;
80 }
81
82 toolbarbutton:hover {
83   background-color: #FFCF00;
84   color: #000000;
85 }
86
87 toolbarbutton:hover:active,
88 toolbarbutton[open="true"],
89 toolbarbutton.toolbarbutton-menubutton-button[open="true"] {
90   background-color: #FF9F00;
91   color: #000000;
92 }
93
94 toolbarbutton:hover:active,
95 toolbarbutton[open="true"] {
96   padding-top: 2px;
97   padding-bottom: 0px;
98   -moz-padding-start: 3px;
99   -moz-padding-end: 1px;
100 }
101
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"] {
107   padding: 1px 2px;
108   background-color: #000000;
109   color: #8050B0;
110 }
111
112 toolbarbutton:-moz-lwtheme {
113   text-shadow: none;
114 }
115
116
117 /* ..... checked state ..... */
118
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;
125   color: #FFCF00;
126 }
127
128 toolbarbutton[checked="true"]:hover,
129 toolbarbutton[checked="true"]:hover:active {
130   background-color: #FFCF00;
131   color: #000000;
132 }
133
134 /* ::::: toolbarbutton menu ::::: */
135
136 .toolbarbutton-menu-dropmarker {
137   padding: 0px;
138   border: none !important;
139   background-color: transparent !important;
140 }
141
142 /* ::::: toolbarbutton menu-button ::::: */
143
144 toolbarbutton[type="menu-button"] {
145   -moz-box-align: stretch;
146 }
147
148 toolbarbutton[type="menu-button"],
149 toolbarbutton[type="menu-button"]:hover,
150 toolbarbutton[type="menu-button"]:hover:active,
151 toolbarbutton[type="menu-button"][open="true"],
152 toolbarbutton[type="menu-button"][disabled="true"],
153 toolbarbutton[type="menu-button"][disabled="true"]:hover,
154 toolbarbutton[type="menu-button"][disabled="true"]:hover:active {
155   padding: 0px !important;
156 }
157
158 .toolbarbutton-menubutton-button {
159   margin: 0px;
160   -moz-box-align: center;
161   -moz-box-pack: center;
162   -moz-box-orient: vertical;
163 }
164
165 .toolbarbutton-menubutton-button,
166 .toolbarbutton-menubutton-dropmarker {
167   background-color: #000000;
168 }
169
170 .toolbarbutton-menubutton-button[disabled="true"],
171 .toolbarbutton-menubutton-dropmarker[disabled="true"] {
172   background-color: #000000 !important;
173   color: #8050B0 !important;
174 }
175
176 toolbarbutton[type="menu-button"]:hover > .toolbarbutton-menubutton-button,
177 toolbarbutton[type="menu-button"]:hover > .toolbarbutton-menubutton-dropmarker {
178   background-color: #FFCF00;
179   color: #000000;
180 }
181
182 toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-button,
183 toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
184 toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-button,
185 toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker {
186   background-color: #FF9F00;
187   color: #000000;
188 }
189
190 toolbarbutton[type="menu-button"]:hover:active > toolbarbutton.toolbarbutton-menubutton-button,
191 toolbarbutton[type="menu-button"][open="true"] > toolbarbutton.toolbarbutton-menubutton-button {
192   padding-top: 2px !important;
193   padding-bottom: 0px !important;
194   -moz-padding-start: 3px !important;
195   -moz-padding-end: 1px !important;
196 }
197
198 toolbarbutton[disabled="true"] > toolbarbutton.toolbarbutton-menubutton-button,
199 toolbarbutton[disabled="true"]:hover:active > toolbarbutton.toolbarbutton-menubutton-button {
200   padding: 1px 2px !important;
201 }
202
203 /* .......... dropmarker .......... */
204
205 .toolbarbutton-menubutton-dropmarker {
206   border-radius: 3px;
207   -moz-box-align: start;
208   padding: 3px 1px 1px;
209   border: none;
210   background-color: transparent;
211 }
212
213 toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
214 toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker {
215   padding-top: 4px;
216   padding-bottom: 0px;
217   -moz-padding-start: 2px;
218   -moz-padding-end: 0px;
219 }
220
221 toolbarbutton[type="menu-button"]:not([disabled="true"]):hover > .toolbarbutton-menubutton-dropmarker,
222 toolbarbutton[type="menu-button"]:not([disabled="true"]):hover:active > .toolbarbutton-menubutton-dropmarker,
223 toolbarbutton[type="menu-button"][open="true"]:not([disabled="true"]) > .toolbarbutton-menubutton-dropmarker,
224 toolbarbutton[type="menu"]:not([disabled="true"]):hover .toolbarbutton-menu-dropmarker,
225 toolbarbutton[type="menu"]:not([disabled="true"]):hover:active .toolbarbutton-menu-dropmarker,
226 toolbarbutton[type="menu"][open="true"]:not([disabled="true"]) .toolbarbutton-menu-dropmarker {
227   list-style-image: url("chrome://global/skin/arrow/arrow-down-hover.gif");
228  -moz-image-region: auto;
229 }
230
231
232 .toolbarbutton-menubutton-dropmarker[disabled="true"] {
233   padding: 3px 1px 1px !important;
234   border: none !important;
235 }