style Firefox 4 library
[themes.git] / LCARStrek / global / menu.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 "Classic" theme of mozilla.org code.
15  *
16  * The Initial Developer of the Original Code is
17  * the Mozilla Organization.
18  * Portions created by the Initial Developer are Copyright (C) 1998-2001
19  * the Initial Developer. All Rights Reserved.
20  *
21  * Contributor(s):
22  *   Robert Kaiser <KaiRo@KaiRo.at>
23  *
24  * Alternatively, the contents of this file may be used under the terms of
25  * either the GNU General Public License Version 2 or later (the "GPL"), or
26  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27  * in which case the provisions of the GPL or the LGPL are applicable instead
28  * of those above. If you wish to allow use of your version of this file only
29  * under the terms of either the GPL or the LGPL, and not to allow others to
30  * use your version of this file under the terms of the MPL, indicate your
31  * decision by deleting the provisions above and replace them with the notice
32  * and other provisions required by the GPL or the LGPL. If you do not delete
33  * the provisions above, a recipient may use your version of this file under
34  * the terms of any one of the MPL, the GPL or the LGPL.
35  *
36  * ***** END LICENSE BLOCK ***** */
37
38 /* ===== menu.css =======================================================
39   == Styles used by XUL menu-related elements.
40   ======================================================================= */
41
42 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
43
44 /* ::::: menu/menuitem ::::: */
45
46 menu,
47 menuitem,
48 .splitmenu-menuitem {
49   -moz-box-align: center;
50   max-width: 42em;
51   color: #000000;
52   background-color: #000000;
53   color: #FF9F00;
54   list-style-image: none;
55 }
56
57 menuitem[default="true"] {
58   font-weight: bold;
59 }
60
61 menu[_moz-menuactive="true"],
62 menuitem[_moz-menuactive="true"],
63 .splitmenu-menuitem[_moz-menuactive="true"] {
64   background-color: #FFCF00;
65   color: #000000;
66 }
67
68 menu[disabled="true"],
69 menuitem[disabled="true"],
70 .splitmenu-menuitem[disabled="true"],
71 menu[_moz-menuactive="true"][disabled="true"],
72 menuitem[_moz-menuactive="true"][disabled="true"],
73 .splitmenu-menuitem[_moz-menuactive="true"][disabled="true"] {
74   color: #8050B0;
75 }
76
77 menubar > menu {
78   padding: 2px;
79   margin: 0px;
80   -moz-margin-start: 2px;
81   border: none;
82 }
83
84 menubar > menu[_moz-menuactive="true"] {
85   background-color: #FFCF00;
86   color: #000000;
87   border: none;
88 }
89
90 menubar > menu[open] {
91   background-color: #FF9F00;
92   color: #000000;
93   border: none;
94 }
95
96 menubar > menu:-moz-lwtheme {
97   -moz-appearance: none;
98 }
99
100 menubar > menu:-moz-window-inactive {
101   color: #8050B0;
102 }
103
104 menuitem.spell-suggestion {
105   font-weight: bold;
106 }
107
108 /* ::::: menu/menuitems in popups ::::: */
109
110 menupopup > menu,
111 popup > menu,
112 menupopup > menuitem,
113 popup > menuitem {
114   padding: 2px;
115 }
116
117 /* ::::: menu/menuitems in menulist popups ::::: */
118
119 .menulist-menupopup > menuitem,
120 menulist > menupopup > menuitem,
121 .menulist-menupopup > menu,
122 menulist > menupopup > menu {
123   padding: 1px 5px;
124   max-width: none;
125 }
126
127 /* ..... internal content .... */
128
129 .menu-text,
130 .menu-iconic-left,
131 .menu-iconic-text {
132   margin-top: 0px !important;
133   margin-bottom: 0px !important;
134   -moz-margin-start: 0px !important;
135   -moz-margin-end: 2px !important;
136   color: inherit;
137 }
138
139 .menu-text {
140   -moz-margin-start: 18px !important;
141   font-weight: inherit;
142 }
143
144 .menu-description {
145   font-style: italic;
146   color: #9C9CFF;
147   -moz-margin-start: 1ex !important;
148 }
149
150 .menu-accel,
151 .menu-iconic-accel {
152   margin-top: 0px !important;
153   margin-bottom: 0px !important;
154   -moz-margin-start: 7px !important;
155   -moz-margin-end: 2px !important;
156   -moz-padding-end: 14px;
157   color: inherit;
158 }
159
160 .menu-iconic-icon {
161 /*
162   width: 16px;
163   height: 16px;
164 */
165 }
166
167 .menu-iconic-left {
168   width: 16px;
169 }
170
171 .menu-right {
172   margin-top: 0px;
173   margin-bottom: 0px;
174   -moz-margin-start: 3px;
175   -moz-margin-end: 0px;
176   width: 8px;
177   list-style-image: url("chrome://global/skin/menu/menu-arrow.gif");
178   -moz-image-region: auto;
179 }
180
181 .menu-right[_moz-menuactive="true"] {
182   list-style-image: url("chrome://global/skin/menu/menu-arrow-hover.gif");
183 }
184
185 .menu-right[disabled="true"] {
186   list-style-image: url("chrome://global/skin/menu/menu-arrow-disabled.gif");
187 }
188
189 .menu-right:-moz-locale-dir(rtl) {
190   list-style-image: url("chrome://global/skin/menu/menu-arrow-rtl.gif");
191 }
192
193 .menu-right:-moz-locale-dir(rtl)[_moz-menuactive="true"] {
194   list-style-image: url("chrome://global/skin/menu/menu-arrow-hover-rtl.gif");
195 }
196
197 .menu-right:-moz-locale-dir(rtl)[disabled="true"] {
198   list-style-image: url("chrome://global/skin/menu/menu-arrow-disabled-rtl.gif");
199 }
200
201 .menubar-left {
202   margin-top: 0px;
203   margin-bottom: 0px;
204   -moz-margin-start: 0px;
205   -moz-margin-end: 2px;
206   color: inherit;
207 }
208
209 .menubar-text {
210   margin: 0 1px !important;
211   color: inherit;
212 }
213
214 .menulist-menupopup > menuitem > .menu-iconic-left,
215 menulist > menupopup > menuitem > .menu-iconic-left,
216 .menulist-menupopup > menu > .menu-iconic-left,
217 menulist > menupopup > menu > .menu-iconic-left {
218   display: none;
219 }
220
221 /* ::::: checkbox menuitem ::::: */
222
223 menuitem[checked="true"] { /* [type="checkbox"] */
224   list-style-image: url("chrome://global/skin/menu/menu-check.gif");
225 }
226
227 menuitem[checked="true"][_moz-menuactive="true"] {
228    list-style-image: url("chrome://global/skin/menu/menu-check-hover.gif");
229 }
230
231 menuitem[checked="true"][disabled="true"] {
232   list-style-image: url("chrome://global/skin/menu/menu-check-disabled.gif");
233 }
234
235 /* ::::: radio menuitem ::::: */
236
237 menuitem[checked="true"][type="radio"] {
238   list-style-image: url("chrome://global/skin/menu/menu-radio.gif");
239 }
240
241 menuitem[checked="true"][type="radio"][_moz-menuactive="true"] {
242   list-style-image: url("chrome://global/skin/menu/menu-radio-hover.gif");
243 }
244
245 menuitem[checked="true"][type="radio"][disabled="true"] {
246   list-style-image: url("chrome://global/skin/menu/menu-radio-disabled.gif");
247 }
248
249 /* ::::: menuseparator ::::: */
250
251 menuseparator {
252   border: 1px solid #9C9CFF;
253   margin: 2px 0px;
254 }
255
256 menulist > menupopup > menuseparator,
257 .menulist-menupopup > menuseparator {
258   border: 1px solid #9C9CFF;
259   margin: 2px 0px;
260 }
261
262 /* ::::: autocomplete ::::: */
263
264 .autocomplete-history-popup > menuitem {
265   max-width: none !important;
266 }
267
268 /* ::::: tree column picker ::::: */
269
270 .treecell-popupcell-menu {
271   -moz-margin-start: -2px;
272   list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
273 }