removing useless directories, moving contents.rdf and preview.png to top level directory
[themes.git] / EarlyBlue / global / toolbarbutton.css
CommitLineData
128000f4 1/* ***** BEGIN LICENSE BLOCK *****
2 * Version: NPL 1.1/GPL 2.0/LGPL 2.1
f6e0a33f 3 *
128000f4 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/
f6e0a33f 8 *
128000f4 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.
f6e0a33f 13 *
128000f4 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.
f6e0a33f 20 *
21 * Contributor(s):
22 * Joe Hewitt (hewitt@netscape.com)
128000f4 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");
f6e0a33f 40
41/* ===== toolbarbutton.css =====================================================
42 == Styles used by the XUL button element.
43 ======================================================================= */
44
f6e0a33f 45toolbarbutton {
46 margin : 0px;
47 background-color : transparent;
48 color : #000000;
49}
50
51.toolbarbutton-box {
52 -moz-box-align : center;
53 -moz-box-pack : center;
54 border : 1px solid transparent;
55 padding : 2px;
56}
57
58.toolbarbutton-icon {
59 margin-right: 2px;
60}
61
62.toolbarbutton-text {
63 margin: 0px !important;
64}
65
66toolbarbutton[value] > .toolbarbutton-box > .toolbarbutton-text {
67 padding-left : 4px;
68}
69
70toolbarbutton:hover,
71toolbarbutton[buttonover="true"],
72toolbarbutton[open="true"] {
73}
74
75toolbarbutton:hover > .toolbarbutton-box {
76 border : 1px outset #CCD0DD;
77}
78
79toolbarbutton:hover:active {
80}
81
82toolbarbutton:hover:active > .toolbarbutton-box,
83toolbarbutton[open="true"] > .toolbarbutton-box {
84 padding : 3px 1px 1px 3px;
85 border : 1px inset #CCD0DD;
86}
87
88toolbarbutton[disabled="true"],
89toolbarbutton[disabled="true"]:hover,
90toolbarbutton[disabled="true"]:hover:active {
91 color : #999999;
92}
93
94toolbarbutton[disabled="true"] > .toolbarbutton-box,
95toolbarbutton[disabled="true"]:hover > .toolbarbutton-box,
96toolbarbutton[disabled="true"]:hover:active > .toolbarbutton-box,
97toolbarbutton[disabled="true"][buttonover="true"] > .toolbarbutton-box,
98toolbarbutton[disabled="true"][buttondown="true"] > .toolbarbutton-box {
99 border : 1px solid transparent;
100 padding : 2px;
101}
102
103/* ..... checked state ..... */
104
105toolbarbutton[checked="true"] > .toolbarbutton-box {
106 border : 1px inset #CCD0DD;
107 background-color : #DDDDDD;
108}
109
110toolbarbutton[checked="true"]:hover > .toolbarbutton-box {
111 border : 1px inset #CCD0DD;
112 background-color : #CCD0DD;
113 background-image : none;
114}
115
116/* ::::: toolbarbutton menu ::::: */
117
118.toolbarbutton-dropmarker {
119 list-style-image : url("chrome://global/skin/scroll-down.gif");
120}
121
122.toolbarbutton-dropmarker[disabled="true"] {
123 list-style-image : url("chrome://global/skin/scroll-down-disabled.gif");
124}
125
126/* ::::: toolbarbutton menu-button ::::: */
127
128.toolbarbutton-menubutton-dropmarker-box {
129 -moz-box-align: start;
130 -moz-box-pack: center;
131}
132
133toolbarbutton[type="menu-button"]:hover:active {
134}
135
136.toolbarbutton-menubutton-button {
137 border: none !important;
138 color: inherit;
139}
140
141.toolbarbutton-menubutton-dropmarker {
142 list-style-image: url("chrome://global/skin/scroll-down.gif");
143}
144
145.toolbarbutton-menubutton-dropmarker[disabled="true"] {
146 list-style-image: url("chrome://global/skin/scroll-down-disabled.gif");
147}
148
149.toolbarbutton-menubutton-dropmarker-box {
150 border : 1px solid transparent;
151 padding : 1px 0px 1px 0px;
152}
153
154toolbarbutton[disabled="true"]:hover > .toolbarbutton-menubutton-box
155 > .toolbarbutton-menubutton-button > .toolbarbutton-box
156{
157 border : 1px solid transparent;
158}
159
160toolbarbutton:hover > .toolbarbutton-menubutton-box
161 > .toolbarbutton-menubutton-button > .toolbarbutton-box,
162toolbarbutton:hover > .toolbarbutton-menubutton-box
163 > .toolbarbutton-menubutton-dropmarker-box,
164toolbarbutton[buttonover="true"] > .toolbarbutton-menubutton-box
165 > .toolbarbutton-menubutton-dropmarker-box
166{
167 border : 1px outset #CCD0DD;
168}
169
170toolbarbutton[buttondown="true"] > .toolbarbutton-menubutton-box
171 > .toolbarbutton-menubutton-dropmarker-box,
172toolbarbutton[open="true"] > .toolbarbutton-menubutton-box
173 > .toolbarbutton-menubutton-dropmarker-box,
174toolbarbutton[open="true"] > .toolbarbutton-menubutton-box
175 > .toolbarbutton-menubutton-button > .toolbarbutton-box
176{
177 border : 1px inset #CCD0DD;
178 padding : 2px 0px 0px 0px;
179}
180
181.toolbarbutton-menubutton-dropmarker-box[disabled="true"] {
182 border: 1px solid transparent !important;
183 padding: 0px !important;
184}