update both themes to toolkit winstripe changes up to 2010-09-24
[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   -moz-box-align: center;
49   max-width: 42em;
50   color: #000000;
51   background-color: #000000;
52   color: #FF9F00;
53   list-style-image: none;
54 }
55
56 menuitem[default="true"] {
57   font-weight: bold;
58 }
59
60 menu[_moz-menuactive="true"],
61 menuitem[_moz-menuactive="true"] {
62   background-color: #FFCF00;
63   color: #000000;
64 }
65
66 menu[disabled="true"],
67 menuitem[disabled="true"],
68 menu[_moz-menuactive="true"][disabled="true"],
69 menuitem[_moz-menuactive="true"][disabled="true"] {
70   color: #8050B0;
71 }
72
73 menubar > menu {
74   padding: 2px;
75   margin: 0px;
76   -moz-margin-start: 2px;
77   border: none;
78 }
79
80 menubar > menu[_moz-menuactive="true"] {
81   background-color: #FFCF00;
82   color: #000000;
83   border: none;
84 }
85
86 menubar > menu[open] {
87   background-color: #FF9F00;
88   color: #000000;
89   border: none;
90 }
91
92 menubar > menu:-moz-lwtheme {
93   -moz-appearance: none;
94 }
95
96 menubar > menu:-moz-window-inactive {
97   color: #8050B0;
98 }
99
100 menuitem.spell-suggestion {
101   font-weight: bold;
102 }
103
104 /* ::::: menu/menuitems in popups ::::: */
105
106 menupopup > menu,
107 popup > menu,
108 menupopup > menuitem,
109 popup > menuitem {
110   padding: 2px;
111 }
112
113 /* ::::: menu/menuitems in menulist popups ::::: */
114
115 .menulist-menupopup > menuitem,
116 menulist > menupopup > menuitem,
117 .menulist-menupopup > menu,
118 menulist > menupopup > menu {
119   padding: 1px 5px;
120   max-width: none;
121 }
122
123 /* ..... internal content .... */
124
125 .menu-text,
126 .menu-iconic-left,
127 .menu-iconic-text {
128   margin-top: 0px !important;
129   margin-bottom: 0px !important;
130   -moz-margin-start: 0px !important;
131   -moz-margin-end: 2px !important;
132   color: inherit;
133 }
134
135 .menu-text {
136   -moz-margin-start: 18px !important;
137   font-weight: inherit;
138 }
139
140 .menu-description {
141   font-style: italic;
142   color: #9C9CFF;
143   -moz-margin-start: 1ex !important;
144 }
145
146 .menu-accel,
147 .menu-iconic-accel {
148   margin-top: 0px !important;
149   margin-bottom: 0px !important;
150   -moz-margin-start: 7px !important;
151   -moz-margin-end: 2px !important;
152   -moz-padding-end: 14px;
153   color: inherit;
154 }
155
156 .menu-iconic-icon {
157 /*
158   width: 16px;
159   height: 16px;
160 */
161 }
162
163 .menu-iconic-left {
164   width: 16px;
165 }
166
167 .menu-right {
168   margin-top: 0px;
169   margin-bottom: 0px;
170   -moz-margin-start: 3px;
171   -moz-margin-end: 0px;
172   width: 8px;
173   list-style-image: url("chrome://global/skin/menu/menu-arrow.gif");
174   -moz-image-region: auto;
175 }
176
177 .menu-right[_moz-menuactive="true"] {
178   list-style-image: url("chrome://global/skin/menu/menu-arrow-hover.gif");
179 }
180
181 .menu-right[disabled="true"] {
182   list-style-image: url("chrome://global/skin/menu/menu-arrow-disabled.gif");
183 }
184
185 .menu-right:-moz-locale-dir(rtl) {
186   list-style-image: url("chrome://global/skin/menu/menu-arrow-rtl.gif");
187 }
188
189 .menu-right:-moz-locale-dir(rtl)[_moz-menuactive="true"] {
190   list-style-image: url("chrome://global/skin/menu/menu-arrow-hover-rtl.gif");
191 }
192
193 .menu-right:-moz-locale-dir(rtl)[disabled="true"] {
194   list-style-image: url("chrome://global/skin/menu/menu-arrow-disabled-rtl.gif");
195 }
196
197 .menubar-left {
198   margin-top: 0px;
199   margin-bottom: 0px;
200   -moz-margin-start: 0px;
201   -moz-margin-end: 2px;
202   color: inherit;
203 }
204
205 .menubar-text {
206   margin: 0 1px !important;
207   color: inherit;
208 }
209
210 .menulist-menupopup > menuitem > .menu-iconic-left,
211 menulist > menupopup > menuitem > .menu-iconic-left,
212 .menulist-menupopup > menu > .menu-iconic-left,
213 menulist > menupopup > menu > .menu-iconic-left {
214   display: none;
215 }
216
217 /* ::::: checkbox menuitem ::::: */
218
219 menuitem[checked="true"] { /* [type="checkbox"] */
220   list-style-image: url("chrome://global/skin/menu/menu-check.gif");
221 }
222
223 menuitem[checked="true"][_moz-menuactive="true"] {
224    list-style-image: url("chrome://global/skin/menu/menu-check-hover.gif");
225 }
226
227 menuitem[checked="true"][disabled="true"] {
228   list-style-image: url("chrome://global/skin/menu/menu-check-disabled.gif");
229 }
230
231 /* ::::: radio menuitem ::::: */
232
233 menuitem[checked="true"][type="radio"] {
234   list-style-image: url("chrome://global/skin/menu/menu-radio.gif");
235 }
236
237 menuitem[checked="true"][type="radio"][_moz-menuactive="true"] {
238   list-style-image: url("chrome://global/skin/menu/menu-radio-hover.gif");
239 }
240
241 menuitem[checked="true"][type="radio"][disabled="true"] {
242   list-style-image: url("chrome://global/skin/menu/menu-radio-disabled.gif");
243 }
244
245 /* ::::: menuseparator ::::: */
246
247 menuseparator {
248   border: 1px solid #9C9CFF;
249   margin: 2px 0px;
250 }
251
252 menulist > menupopup > menuseparator,
253 .menulist-menupopup > menuseparator {
254   border: 1px solid #9C9CFF;
255   margin: 2px 0px;
256 }
257
258 /* ::::: autocomplete ::::: */
259
260 .autocomplete-history-popup > menuitem {
261   max-width: none !important;
262 }
263
264 /* ::::: tree column picker ::::: */
265
266 .treecell-popupcell-menu {
267   -moz-margin-start: -2px;
268   list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
269 }