update both themes for toolkit winstripe trunk changes up to 2009-11-06
[themes.git] / EarlyBlue / 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-1999
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-box-align: center;
50 -moz-box-pack: center;
51 margin: 0px;
52 border: 1px solid transparent;
53 padding: 1px;
54 background-color: transparent;
55 color: #000000;
56}
57
58.toolbarbutton-icon[label]:not([label=""]),
59.toolbarbutton-icon[type="menu"] {
60 -moz-margin-end: 2px;
61}
62
63.toolbarbutton-text {
64 margin: 0px !important;
65 padding: 0px;
66 text-align: center;
67}
68
69toolbarbutton.tabbable {
70 -moz-user-focus: normal !important;
71}
72
73toolbarbutton:focus {
74 outline: 1px dotted #666699;
75 outline-offset: -1px;
76}
77
78/*
79toolbarbutton:hover,
80toolbarbutton.toolbarbutton-menubutton-button[open="true"] {
81}
82*/
83
84toolbarbutton:hover,
85toolbarbutton[buttonover="true"] {
86 border: 1px outset #CCD0DD;
87}
88
89toolbarbutton:hover:active,
90toolbarbutton[open="true"] {
91 padding-top: 2px;
92 padding-bottom: 0px;
93 -moz-padding-start: 2px;
94 -moz-padding-end: 0px;
95 border: 1px inset #CCD0DD;
96}
97
98toolbarbutton[disabled="true"],
99toolbarbutton[disabled="true"]:hover,
100toolbarbutton[disabled="true"]:hover:active,
101toolbarbutton[disabled="true"][open="true"] {
102 border: 1px solid transparent;
103 padding: 1px;
104 color: #999999;
105}
106
107toolbarbutton:-moz-lwtheme {
108 text-shadow: none;
109}
110
111/* ..... checked state ..... */
112
113toolbarbutton[checked="true"] {
114 padding-top: 2px !important;
115 padding-bottom: 0px !important;
116 -moz-padding-start: 2px !important;
117 -moz-padding-end: 0px !important;
118 border: 1px inset #CCD0DD !important;
119 background-color: #DDDDDD !important;
120}
121
122/* ::::: toolbarbutton menu ::::: */
123
124.toolbarbutton-menu-dropmarker {
125 padding: 0px;
126 border: none !important;
127 background-color: transparent !important;
128}
129
130.toolbarbutton-menu-dropmarker[disabled="true"] {
131 padding: 0 !important;
132}
133
134/* ::::: toolbarbutton menu-button ::::: */
135
136toolbarbutton[type="menu-button"] {
137 -moz-box-align: stretch;
138}
139
140toolbarbutton[type="menu-button"],
141toolbarbutton[type="menu-button"]:hover,
142toolbarbutton[type="menu-button"]:hover:active,
143toolbarbutton[type="menu-button"][open="true"],
144toolbarbutton[type="menu-button"][disabled="true"],
145toolbarbutton[type="menu-button"][disabled="true"]:hover,
146toolbarbutton[type="menu-button"][disabled="true"]:hover:active {
147 border-style: none;
148 padding: 0px !important;
149}
150
151.toolbarbutton-menubutton-button {
152 -moz-box-align: center;
153 -moz-box-pack: center;
154 -moz-box-orient: vertical;
155}
156
157.toolbarbutton-menubutton-button,
158.toolbarbutton-menubutton-dropmarker {
159 border: 1px solid transparent;
160}
161
162.toolbarbutton-menubutton-button[disabled="true"],
163.toolbarbutton-menubutton-dropmarker[disabled="true"] {
164 border: 1px solid transparent !important;
165}
166
167toolbarbutton[type="menu-button"]:hover > .toolbarbutton-menubutton-button,
168toolbarbutton[type="menu-button"]:hover > .toolbarbutton-menubutton-dropmarker {
169 border: 1px outset #CCD0DD;
170}
171
172toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-button,
173toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
174toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-button,
175toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker {
176 border: 1px inset #CCD0DD;
177}
178
179toolbarbutton[type="menu-button"]:hover:active > toolbarbutton.toolbarbutton-menubutton-button,
180toolbarbutton[type="menu-button"][open="true"] > toolbarbutton.toolbarbutton-menubutton-button {
181 padding-top: 2px !important;
182 padding-bottom: 0px !important;
183 -moz-padding-start: 2px !important;
184 -moz-padding-end: 0px !important;
185}
186
187toolbarbutton[disabled="true"] > toolbarbutton.toolbarbutton-menubutton-button,
188toolbarbutton[disabled="true"]:hover:active > toolbarbutton.toolbarbutton-menubutton-button {
189 padding: 1px !important;
190}
191
192/* .......... dropmarker .......... */
193
194.toolbarbutton-menubutton-dropmarker {
195 -moz-box-align: start;
196 padding: 3px 1px 1px;
197 background-color: transparent;
198}
199
200toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
201toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker {
202 padding-top: 4px;
203 padding-bottom: 0px;
204 -moz-padding-start: 2px;
205 -moz-padding-end: 0px;
206}
207
208.toolbarbutton-menubutton-dropmarker[disabled="true"] {
209 padding: 3px 1px 1px !important;
210}