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