sync both themes with toolkit wipstripe changes up to just before the new addons...
[themes.git] / LCARStrek / global / toolbarbutton.css
CommitLineData
351107c9 1/* ***** BEGIN LICENSE BLOCK *****
f98e9249 2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
351107c9 3 *
f98e9249
RK
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/
351107c9 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 *
f98e9249
RK
14 * The Original Code is Mozilla Communicator client code, released
15 * March 31, 1998.
351107c9 16 *
242fc635 17 * The Initial Developer of the Original Code is
351107c9 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
242fc635 27 * either the GNU General Public License Version 2 or later (the "GPL"), or
351107c9 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
f98e9249 32 * use your version of this file under the terms of the MPL, indicate your
351107c9 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
f98e9249 36 * the terms of any one of the MPL, the GPL or the LGPL.
351107c9 37 *
38 * ***** END LICENSE BLOCK ***** */
39
351107c9 40/* ===== toolbarbutton.css =====================================================
41 == Styles used by the XUL button element.
42 ======================================================================= */
43
f98e9249
RK
44@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
45
b1eaa419 46/* ::::: toolbarbutton ::::: */
351107c9 47
b1eaa419 48toolbarbutton {
49 -moz-border-radius: 3px;
50 -moz-box-align: center;
51 -moz-box-pack: center;
52 margin: 0px;
8caa872d 53 -moz-margin-start: 2px;
b1eaa419 54 border: none;
dd676468 55 padding: 1px 2px;
b1eaa419 56 background-color: #000000;
57 color: #FFCF00;
351107c9 58}
59
ca710c53
RK
60.toolbarbutton-icon[label]:not([label=""]),
61.toolbarbutton-icon[type="menu"] {
dd676468 62 -moz-margin-start: 1px;
f98e9249 63 -moz-margin-end: 2px;
351107c9 64}
65
66.toolbarbutton-text {
67 margin: 0px !important;
b1eaa419 68 padding: 0px;
69 text-align: center;
242fc635 70}
351107c9 71
f98e9249
RK
72toolbarbutton.tabbable {
73 -moz-user-focus: normal !important;
74}
75
024ec655 76toolbarbutton:-moz-focusring {
f98e9249
RK
77 -moz-outline-radius: 3px;
78 outline: 1px dotted #008484;
79 -moz-outline-offset: -1px;
80}
81
a064a540 82toolbarbutton:hover {
b1eaa419 83 background-color: #FFCF00;
84 color: #000000;
242fc635 85}
351107c9 86
351107c9 87toolbarbutton:hover:active,
88toolbarbutton[open="true"],
b1eaa419 89toolbarbutton.toolbarbutton-menubutton-button[open="true"] {
90 background-color: #FF9F00;
91 color: #000000;
242fc635 92}
351107c9 93
b1eaa419 94toolbarbutton:hover:active,
95toolbarbutton[open="true"] {
f98e9249
RK
96 padding-top: 2px;
97 padding-bottom: 0px;
dd676468
RK
98 -moz-padding-start: 3px;
99 -moz-padding-end: 1px;
351107c9 100}
242fc635 101
f98e9249
RK
102toolbarbutton[disabled="true"],
103toolbarbutton[disabled="true"]:hover,
104toolbarbutton[disabled="true"]:hover:active,
cfae8c74
RK
105toolbarbutton[disabled="true"][open="true"],
106toolbarbutton[disabled="true"][checked="true"] {
c452635d 107 padding: 1px 2px;
f98e9249
RK
108 background-color: #000000;
109 color: #8050B0;
351107c9 110}
111
3b1530c2
RK
112toolbarbutton:-moz-lwtheme {
113 text-shadow: none;
114}
115
116
351107c9 117/* ..... checked state ..... */
118
119toolbarbutton[checked="true"] {
f98e9249
RK
120 padding-top: 2px !important;
121 padding-bottom: 0px !important;
dd676468
RK
122 -moz-padding-start: 3px !important;
123 -moz-padding-end: 1px !important;
b1eaa419 124 background-color: #008484;
125 color: #FFCF00;
351107c9 126}
242fc635 127
11883879
RK
128toolbarbutton[checked="true"]:hover,
129toolbarbutton[checked="true"]:hover:active {
b1eaa419 130 background-color: #FFCF00;
131 color: #000000;
351107c9 132}
133
134/* ::::: toolbarbutton menu ::::: */
135
b1eaa419 136.toolbarbutton-menu-dropmarker {
a12570b9 137 padding: 0px;
138 border: none !important;
139 background-color: transparent !important;
351107c9 140}
141
b1eaa419 142.toolbarbutton-menu-dropmarker[disabled="true"] {
f98e9249 143 padding: 0 !important;
351107c9 144}
145
146/* ::::: toolbarbutton menu-button ::::: */
147
b1eaa419 148toolbarbutton[type="menu-button"] {
149 -moz-box-align: stretch;
351107c9 150}
151
b1eaa419 152toolbarbutton[type="menu-button"],
153toolbarbutton[type="menu-button"]:hover,
154toolbarbutton[type="menu-button"]:hover:active,
155toolbarbutton[type="menu-button"][open="true"],
156toolbarbutton[type="menu-button"][disabled="true"],
157toolbarbutton[type="menu-button"][disabled="true"]:hover,
158toolbarbutton[type="menu-button"][disabled="true"]:hover:active {
159 padding: 0px !important;
351107c9 160}
161
162.toolbarbutton-menubutton-button {
b1eaa419 163 margin: 0px;
164 -moz-box-align: center;
165 -moz-box-pack: center;
f98e9249 166 -moz-box-orient: vertical;
351107c9 167}
168
b1eaa419 169.toolbarbutton-menubutton-button,
351107c9 170.toolbarbutton-menubutton-dropmarker {
b1eaa419 171 background-color: #000000;
242fc635 172}
b1eaa419 173
174.toolbarbutton-menubutton-button[disabled="true"],
175.toolbarbutton-menubutton-dropmarker[disabled="true"] {
176 background-color: #000000 !important;
177 color: #8050B0 !important;
242fc635 178}
351107c9 179
b1eaa419 180toolbarbutton[type="menu-button"]:hover > .toolbarbutton-menubutton-button,
242fc635 181toolbarbutton[type="menu-button"]:hover > .toolbarbutton-menubutton-dropmarker {
b1eaa419 182 background-color: #FFCF00;
183 color: #000000;
351107c9 184}
185
242fc635 186toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-button,
b1eaa419 187toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
b1eaa419 188toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-button,
189toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker {
190 background-color: #FF9F00;
191 color: #000000;
192}
351107c9 193
242fc635 194toolbarbutton[type="menu-button"]:hover:active > toolbarbutton.toolbarbutton-menubutton-button,
b1eaa419 195toolbarbutton[type="menu-button"][open="true"] > toolbarbutton.toolbarbutton-menubutton-button {
f98e9249
RK
196 padding-top: 2px !important;
197 padding-bottom: 0px !important;
c452635d
RK
198 -moz-padding-start: 3px !important;
199 -moz-padding-end: 1px !important;
351107c9 200}
201
57d23eae 202toolbarbutton[disabled="true"] > toolbarbutton.toolbarbutton-menubutton-button,
203toolbarbutton[disabled="true"]:hover:active > toolbarbutton.toolbarbutton-menubutton-button {
c452635d 204 padding: 1px 2px !important;
57d23eae 205}
206
b1eaa419 207/* .......... dropmarker .......... */
208
209.toolbarbutton-menubutton-dropmarker {
210 -moz-border-radius: 3px;
edb23828 211 -moz-box-align: start;
02920d2b 212 padding: 3px 1px 1px;
95c949c5 213 border: none;
a12570b9 214 background-color: transparent;
351107c9 215}
216
b1eaa419 217toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
b1eaa419 218toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker {
f98e9249
RK
219 padding-top: 4px;
220 padding-bottom: 0px;
221 -moz-padding-start: 2px;
222 -moz-padding-end: 0px;
b1eaa419 223}
224
dd676468
RK
225toolbarbutton[type="menu-button"]:not([disabled="true"]):hover > .toolbarbutton-menubutton-dropmarker,
226toolbarbutton[type="menu-button"]:not([disabled="true"]):hover:active > .toolbarbutton-menubutton-dropmarker,
227toolbarbutton[type="menu-button"][open="true"]:not([disabled="true"]) > .toolbarbutton-menubutton-dropmarker,
c452635d
RK
228toolbarbutton[type="menu"]:not([disabled="true"]):hover .toolbarbutton-menu-dropmarker,
229toolbarbutton[type="menu"]:not([disabled="true"]):hover:active .toolbarbutton-menu-dropmarker,
230toolbarbutton[type="menu"][open="true"]:not([disabled="true"]) .toolbarbutton-menu-dropmarker {
dd676468
RK
231 list-style-image: url("chrome://global/skin/arrow/arrow-down-hover.gif");
232 -moz-image-region: auto;
233}
234
235
b1eaa419 236.toolbarbutton-menubutton-dropmarker[disabled="true"] {
02920d2b 237 padding: 3px 1px 1px !important;
95c949c5 238 border: none !important;
351107c9 239}