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