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