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