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