update LCARStrek to trunk
[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
38@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
39
b1eaa419 40/* ===== menu.css =======================================================
41 == Styles used by XUL menu-related elements.
42 ======================================================================= */
43
44/* ::::: menu/menuitem ::::: */
45
46menu,
47menuitem {
48 -moz-box-align: center;
49 color: #000000;
50 background-color: #000000;
51 color: #FF9F00;
52 list-style-image: none;
53}
54
55menuitem[default="true"] {
56 font-weight: bold;
3d6dd546 57}
b1eaa419 58
59menu[disabled="true"],
60menuitem[disabled="true"],
d07092f5 61menu[_moz-menuactive="true"][disabled="true"],
62menuitem[_moz-menuactive="true"][disabled="true"] {
b1eaa419 63 color: #8050B0;
64}
65
66/* ..... internal content .... */
67
3d6dd546 68.menu-text,
b1eaa419 69.menu-iconic-left,
731b0901 70.menu-iconic-text {
b1eaa419 71 margin: 0px 2px 0px 0px !important;
72 color: inherit;
73}
74
75.menu-text {
76 margin-left: 18px !important;
77 font-weight: inherit;
78}
79
3d6dd546 80.menu-description {
81 font-style: italic;
82 color: #8050B0;
83 margin-left: 1ex !important;
84}
85
731b0901 86.menu-accel,
b1eaa419 87.menu-iconic-accel {
731b0901 88 margin: 0px 2px 0px 7px !important;
b1eaa419 89 padding-right: 14px;
731b0901 90 color: inherit;
b1eaa419 91}
92
a12570b9 93menuitem[type="checkbox"] > .menu-iconic-left > .menu-iconic-icon,
94menuitem[type="radio"] > .menu-iconic-left > .menu-iconic-icon {
95/* width: 16px; */
b1eaa419 96}
97
98.menu-iconic-left {
99 -moz-box-align: center;
100 -moz-box-pack: center;
101 width: 16px;
102/* height: 16px; */
103}
104
105/* ..... menu arrow box ..... */
106
107.menu-right {
108 margin: 0px 0px 0px 3px;
109 width: 8px;
110 list-style-image: url("chrome://global/skin/menu/menu-arrow.gif");
111}
112
d07092f5 113.menu-right[_moz-menuactive="true"] {
b1eaa419 114 list-style-image: url("chrome://global/skin/menu/menu-arrow-hover.gif");
115}
116
117.menu-right[disabled="true"] {
118 list-style-image: url("chrome://global/skin/menu/menu-arrow-disabled.gif") !important;
119}
120
121/* ::::: menu/menuitems in menubar ::::: */
122
123menubar > menu {
124 padding: 2px 0px 2px 3px;
125 margin: 0px 0px 0px 2px;
126 border: none;
127}
128
d07092f5 129menubar > menu[_moz-menuactive="true"] {
b1eaa419 130 background-color: #FFCF00;
131 color: #000000;
132 border: none;
133}
134
d07092f5 135menubar > menu[_moz-menuactive="true"][open="true"] {
b1eaa419 136 background-color: #FF9F00;
137 color: #000000;
138 border: none;
139}
140
141/* ..... internal content .... */
142
143.menubar-left {
144 margin: 0px 2px 0px 0px;
145 color: inherit;
146}
147
148.menubar-text {
149 margin: 0px 2px 0px 0px !important;
150 color: inherit;
151}
152
153/* ::::: menu/menuitems in popups ::::: */
154
351107c9 155menupopup > menu,
351107c9 156popup > menu,
b1eaa419 157menupopup > menuitem,
158popup > menuitem {
159 padding: 2px;
160 max-width: 42em;
161}
351107c9 162
d07092f5 163menupopup > menu[_moz-menuactive="true"],
164menupopup > menuitem[_moz-menuactive="true"],
165popup > menu[_moz-menuactive="true"],
166popup > menuitem[_moz-menuactive="true"] {
b1eaa419 167 background-color: #FFCF00;
168 color: #000000;
169}
170
171/* ::::: menu/menuitems in menulist popups ::::: */
172
173.menulist-menupopup > menuitem,
174menulist > menupopup > menuitem,
175.menulist-menupopup > menu,
176menulist > menupopup > menu {
177 border: 1px solid transparent;
a12570b9 178 padding: 1px 22px 1px 1px;
b1eaa419 179 max-width: none;
180}
181
d07092f5 182menulist > menupopup > menuitem[_moz-menuactive="true"] {
b1eaa419 183 border: 1px dotted #FF9F00;
184}
185
186/* ::::: checkbox menuitem ::::: */
187
188menuitem[checked="true"] {
189 list-style-image: url("chrome://global/skin/menu/menu-check.gif");
190}
191
192menuitem[checked="true"][disabled="true"] {
193 list-style-image: url("chrome://global/skin/menu/menu-check-disabled.gif");
194}
195
d07092f5 196menuitem[checked="true"][_moz-menuactive="true"] {
b1eaa419 197 list-style-image: url("chrome://global/skin/menu/menu-check-hover.gif");
198}
199
200/* ::::: radio menuitem ::::: */
201
202menuitem[checked="true"][type="radio"] {
203 list-style-image: url("chrome://global/skin/menu/menu-radio.gif");
204}
205
206menuitem[checked="true"][type="radio"][disabled="true"] {
207 list-style-image: url("chrome://global/skin/menu/menu-radio-disabled.gif");
208}
209
d07092f5 210menuitem[checked="true"][type="radio"][_moz-menuactive="true"] {
b1eaa419 211 list-style-image: url("chrome://global/skin/menu/menu-radio-hover.gif");
212}
213
214/* ::::: menuseparator ::::: */
215
216menuseparator {
3d6dd546 217 border: 1px solid #9C9CFF;
b1eaa419 218 margin: 2px 0px 2px 0px;
219}
220
221menulist > menupopup > menuseparator,
222.menulist-menupopup > menuseparator {
3d6dd546 223 border: 1px solid #9C9CFF;
b1eaa419 224 margin: 2px 0px 2px 0px;
225}
226
227/* ::::: autocomplete ::::: */
228
229.autocomplete-history-popup > menuitem {
230 max-width: none !important;
231}
232
233.treecell-popupcell-menu {
234 margin-left: -2px;
235 list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
236}