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