license headers and namespaces, site icons, messenger cleanup
[themes.git] / LCARStrek / skin / LCARStrek / global / toolbarbutton.css
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
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   -moz-border-radius  : 3px;
47   margin              : 0px;
48   margin-left         : 2px;
49   background-color    : #000000;
50   color               : #FFCF00;
51 }
52
53 .toolbarbutton-box {
54   -moz-border-radius  : 3px;
55   -moz-box-align      : center;
56   -moz-box-pack       : center;
57   border              : none;
58   padding             : 2px;
59 }
60
61 .toolbarbutton-icon {
62   margin-right: 2px;
63 }
64
65 .toolbarbutton-text {
66   margin: 0px !important;
67 }
68
69 toolbarbutton[value] > .toolbarbutton-box > .toolbarbutton-text {
70   padding-left        : 4px;
71 }    
72
73 toolbarbutton:hover,
74 toolbarbutton[buttonover="true"],
75 toolbarbutton:hover > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-button,
76 toolbarbutton[buttonover="true"] > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-button {
77   background-color    : #FFCF00;
78   color               : #000000;
79
80
81 toolbarbutton:hover > .toolbarbutton-box {
82   border              : none;
83 }
84
85 toolbarbutton:hover:active,
86 toolbarbutton[open="true"],
87 toolbarbutton:hover:active > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-button,
88 toolbarbutton[open="true"] > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-button {
89   background-color    : #FF9F00;
90   color               : #000000;
91
92
93 toolbarbutton:hover:active > .toolbarbutton-box,
94 toolbarbutton[open="true"] > .toolbarbutton-box {
95   padding             : 3px 1px 1px 3px;
96   border              : none;
97 }
98     
99 toolbarbutton[disabled="true"],
100 toolbarbutton[disabled="true"]:hover,
101 toolbarbutton[disabled="true"]:hover:active,
102 toolbarbutton[disabled="true"]:hover > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-button,
103 toolbarbutton[disabled="true"][buttonover="true"] > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-button,
104 toolbarbutton[disabled="true"]:hover:active > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-button,
105 toolbarbutton[disabled="true"][open="true"] > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-button {
106   background-color    : #000000;
107   color               : #8050B0;
108 }
109
110 toolbarbutton[disabled="true"] > .toolbarbutton-box,
111 toolbarbutton[disabled="true"]:hover > .toolbarbutton-box,
112 toolbarbutton[disabled="true"]:hover:active > .toolbarbutton-box,
113 toolbarbutton[disabled="true"][buttonover="true"] > .toolbarbutton-box,
114 toolbarbutton[disabled="true"][buttondown="true"] > .toolbarbutton-box {
115   border              : none;
116   padding             : 2px;
117 }
118
119 /* ..... checked state ..... */
120
121 toolbarbutton[checked="true"] {
122   background-color    : #008484;
123   color               : #FFCF00;
124 }
125     
126 toolbarbutton[checked="true"]:hover {
127   background-color    : #FFCF00;
128   color               : #000000;
129 }
130
131 /* ::::: toolbarbutton menu ::::: */
132
133 .toolbarbutton-dropmarker {
134   list-style-image      : url("chrome://global/skin/scroll-down.gif");
135 }
136
137 toolbarbutton:hover > .toolbarbutton-box > .toolbarbutton-dropmarker,
138 toolbarbutton[buttonover="true"] > .toolbarbutton-box > .toolbarbutton-dropmarker,
139 toolbarbutton[buttondown="true"] > .toolbarbutton-box > .toolbarbutton-dropmarker,
140 toolbarbutton[open="true"] > .toolbarbutton-box > .toolbarbutton-dropmarker {
141   list-style-image      : url("chrome://global/skin/scroll-down-hover.gif");
142 }
143
144 .toolbarbutton-dropmarker[disabled="true"],
145 toolbarbutton[disabled="true"]:hover > .toolbarbutton-box > .toolbarbutton-dropmarker,
146 toolbarbutton[disabled="true"][buttonover="true"] > .toolbarbutton-box > .toolbarbutton-dropmarker,
147 toolbarbutton[disabled="true"][buttondown="true"] > .toolbarbutton-box > .toolbarbutton-dropmarker,
148 toolbarbutton[disabled="true"][open="true"] > .toolbarbutton-box > .toolbarbutton-dropmarker {
149   list-style-image      : url("chrome://global/skin/scroll-down-disabled.gif");
150 }
151
152 /* ::::: toolbarbutton menu-button ::::: */
153
154 .toolbarbutton-menubutton-dropmarker-box {
155   -moz-box-align: start;
156   -moz-box-pack: center;
157 }
158
159 toolbarbutton[type="menu-button"]:hover:active {
160 }
161
162 .toolbarbutton-menubutton-button {
163   border: none !important;
164   color: inherit;
165 }
166
167 .toolbarbutton-menubutton-dropmarker {
168   list-style-image: url("chrome://global/skin/scroll-down.gif");
169
170
171 toolbarbutton:hover > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-dropmarker-box > .toolbarbutton-menubutton-dropmarker,
172 toolbarbutton[buttonover="true"] > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-dropmarker-box > .toolbarbutton-menubutton-dropmarker,
173 toolbarbutton[buttondown="true"] > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-dropmarker-box > .toolbarbutton-menubutton-dropmarker,
174 toolbarbutton[open="true"] > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-dropmarker-box > .toolbarbutton-menubutton-dropmarker
175 {
176   list-style-image      : url("chrome://global/skin/scroll-down-hover.gif");
177 }
178
179 .toolbarbutton-menubutton-dropmarker[disabled="true"],
180 toolbarbutton[disabled="true"]:hover > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-dropmarker-box > .toolbarbutton-menubutton-dropmarker,
181 toolbarbutton[disabled="true"][buttonover="true"] > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-dropmarker-box > .toolbarbutton-menubutton-dropmarker,
182 toolbarbutton[disabled="true"][buttondown="true"] > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-dropmarker-box > .toolbarbutton-menubutton-dropmarker,
183 toolbarbutton[disabled="true"][open="true"] > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-dropmarker-box > .toolbarbutton-menubutton-dropmarker {
184   list-style-image: url("chrome://global/skin/scroll-down-disabled.gif");
185
186
187 .toolbarbutton-menubutton-dropmarker-box {
188   border                : 1px solid transparent;
189   padding               : 1px 0px 1px 0px;
190 }
191
192 toolbarbutton[disabled="true"]:hover > .toolbarbutton-menubutton-box  > .toolbarbutton-menubutton-button  > .toolbarbutton-box
193 {
194 /*  border                : 1px solid transparent; */
195 }
196
197 toolbarbutton[buttondown="true"] > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-dropmarker-box,
198 toolbarbutton[open="true"] > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-dropmarker-box,
199 toolbarbutton[open="true"] > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-button > .toolbarbutton-box
200 {
201   padding               : 2px 0px 0px 0px;
202 }
203
204 .toolbarbutton-menubutton-dropmarker-box[disabled="true"] {
205 /*  border: 1px solid transparent !important; */
206   padding: 0px !important;
207 }