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