some adjustments spotted when updateing LCARStrek
[themes.git] / EarlyBlue / global / toolbarbutton.css
... / ...
CommitLineData
1/* ***** BEGIN LICENSE BLOCK *****
2 * Version: NPL 1.1/GPL 2.0/LGPL 2.1
3 *
4 * The contents of this file are subject to the Netscape Public License
5 * Version 1.1 (the "License"); you may not use this file except in
6 * compliance with the License. You may obtain a copy of the License at
7 * http://www.mozilla.org/NPL/
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.org code.
15 *
16 * The Initial Developer of the Original Code is
17 * Netscape Communications Corporation.
18 * Portions created by the Initial Developer are Copyright (C) 1998-1999
19 * the Initial Developer. All Rights Reserved.
20 *
21 * Contributor(s):
22 * Joe Hewitt (hewitt@netscape.com)
23 * Robert Kaiser <KaiRo@KaiRo.at>
24 *
25 * Alternatively, the contents of this file may be used under the terms of
26 * either the GNU General Public License Version 2 or later (the "GPL"), or
27 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
28 * in which case the provisions of the GPL or the LGPL are applicable instead
29 * of those above. If you wish to allow use of your version of this file only
30 * under the terms of either the GPL or the LGPL, and not to allow others to
31 * use your version of this file under the terms of the NPL, indicate your
32 * decision by deleting the provisions above and replace them with the notice
33 * and other provisions required by the GPL or the LGPL. If you do not delete
34 * the provisions above, a recipient may use your version of this file under
35 * the terms of any one of the NPL, the GPL or the LGPL.
36 *
37 * ***** END LICENSE BLOCK ***** */
38
39@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
40
41/* ===== toolbarbutton.css =====================================================
42 == Styles used by the XUL button element.
43 ======================================================================= */
44
45/* ::::: toolbarbutton ::::: */
46
47toolbarbutton {
48 -moz-box-align: center;
49 -moz-box-pack: center;
50 margin: 0px;
51 border: 1px solid transparent;
52 padding: 1px;
53 background-color: transparent;
54 color: #000000;
55}
56
57.toolbarbutton-icon {
58 margin-right: 2px;
59}
60
61.toolbarbutton-text {
62 margin: 0px !important;
63 padding: 0px;
64 text-align: center;
65}
66
67/*
68toolbarbutton:hover,
69toolbarbutton.toolbarbutton-menubutton-button[open="true"] {
70}
71*/
72
73toolbarbutton:hover {
74 border: 1px outset #CCD0DD;
75}
76
77toolbarbutton:hover:active,
78toolbarbutton[open="true"] {
79 padding: 2px 0px 0px 2px;
80 border: 1px inset #CCD0DD;
81}
82
83toolbarbutton[disabled="true"] {
84 border: 1px solid transparent !important;
85 padding: 1px !important;
86 color: #999999 !important;
87}
88
89/* ..... checked state ..... */
90
91toolbarbutton[checked="true"] {
92 padding: 1px !important;
93 border: 1px inset #CCD0DD !important;
94 background-color: #DDDDDD !important;
95}
96
97/* ::::: toolbarbutton menu ::::: */
98
99.toolbarbutton-menu-dropmarker {
100 list-style-image: url("chrome://global/skin/arrow/arrow-down.gif");
101}
102
103.toolbarbutton-menu-dropmarker[disabled="true"] {
104 list-style-image: url("chrome://global/skin/arrow/arrow-down-disabled.gif");
105}
106
107/* ::::: toolbarbutton menu-button ::::: */
108
109toolbarbutton[type="menu-button"] {
110 -moz-box-align: stretch;
111}
112
113toolbarbutton[type="menu-button"],
114toolbarbutton[type="menu-button"]:hover,
115toolbarbutton[type="menu-button"]:hover:active,
116toolbarbutton[type="menu-button"][open="true"],
117toolbarbutton[type="menu-button"][disabled="true"],
118toolbarbutton[type="menu-button"][disabled="true"]:hover,
119toolbarbutton[type="menu-button"][disabled="true"]:hover:active {
120 border: none !important;
121 padding: 0px !important;
122}
123
124.toolbarbutton-menubutton-button {
125 -moz-box-align: center;
126 -moz-box-pack: center;
127}
128
129.toolbarbutton-menubutton-button,
130.toolbarbutton-menubutton-dropmarker {
131 border: 1px solid transparent;
132}
133
134.toolbarbutton-menubutton-button[disabled="true"],
135.toolbarbutton-menubutton-dropmarker[disabled="true"] {
136 border: 1px solid transparent !important;
137}
138
139toolbarbutton[type="menu-button"]:hover > .toolbarbutton-menubutton-button,
140toolbarbutton[type="menu-button"]:hover > .toolbarbutton-menubutton-dropmarker {
141 border: 1px outset #CCD0DD;
142}
143
144toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-button,
145toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
146toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-button,
147toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker {
148 border: 1px inset #CCD0DD;
149}
150
151toolbarbutton[type="menu-button"]:hover:active > toolbarbutton.toolbarbutton-menubutton-button,
152toolbarbutton[type="menu-button"][open="true"] > toolbarbutton.toolbarbutton-menubutton-button {
153 padding: 2px 0px 0px 2px !important;
154}
155
156toolbarbutton[disabled="true"] > toolbarbutton.toolbarbutton-menubutton-button,
157toolbarbutton[disabled="true"]:hover:active > toolbarbutton.toolbarbutton-menubutton-button {
158 padding: 1px !important;
159}
160
161/* .......... dropmarker .......... */
162
163.toolbarbutton-menubutton-dropmarker {
164 -moz-box-align: start;
165 padding: 3px 1px 1px 1px;
166 list-style-image: url("chrome://global/skin/arrow/arrow-down.gif");
167}
168
169toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
170toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker {
171 padding: 4px 0px 0px 2px;
172}
173
174.toolbarbutton-menubutton-dropmarker[disabled="true"] {
175 padding: 3px 1px 1px 1px !important;
176 list-style-image: url("chrome://global/skin/arrow/arrow-down-disabled.gif") !important;
177}