start 2.41 cycle (yes, leaving out 2.39 and 2.40)
[themes.git] / LCARStrek / global / menu.css
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5 /* ===== menu.css =======================================================
6   == Styles used by XUL menu-related elements.
7   ======================================================================= */
8
9 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
10
11 /* ::::: menu/menuitem ::::: */
12
13 menu,
14 menuitem,
15 menucaption,
16 .splitmenu-menuitem {
17   -moz-box-align: center;
18   max-width: 42em;
19   background-color: #000000;
20   color: #FF9F00;
21   list-style-image: none;
22   -moz-image-region: auto;
23 }
24
25 menuitem[default="true"] {
26   font-weight: bold;
27 }
28
29 menu[_moz-menuactive="true"],
30 menuitem[_moz-menuactive="true"],
31 .splitmenu-menuitem[_moz-menuactive="true"] {
32   background-color: #FFCF00;
33   color: #000000;
34 }
35
36 menu[disabled="true"],
37 menuitem[disabled="true"],
38 .splitmenu-menuitem[disabled="true"],
39 menu[_moz-menuactive="true"][disabled="true"],
40 menuitem[_moz-menuactive="true"][disabled="true"],
41 .splitmenu-menuitem[_moz-menuactive="true"][disabled="true"] {
42   color: #8050B0;
43 }
44
45 menubar > menu {
46   padding: 2px;
47   margin: 0px;
48   -moz-margin-start: 2px;
49   border: none;
50 }
51
52 menubar > menu[_moz-menuactive="true"] {
53   background-color: #FFCF00;
54   color: #000000;
55   border: none;
56 }
57
58 menubar > menu[open] {
59   background-color: #FF9F00;
60   color: #000000;
61   border: none;
62 }
63
64 menubar > menu:-moz-lwtheme {
65   -moz-appearance: none;
66 }
67
68 menubar > menu:-moz-window-inactive {
69   color: #8050B0;
70 }
71
72 menuitem.spell-suggestion {
73   font-weight: bold;
74 }
75
76 /* ::::: menu/menuitems in popups ::::: */
77
78 menupopup > menu,
79 popup > menu,
80 menupopup > menuitem,
81 popup > menuitem,
82 menupopup > menucaption {
83   padding: 2px;
84 }
85
86 /* ::::: menu/menuitems in menulist popups ::::: */
87
88 menulist > menupopup > menuitem,
89 menulist > menupopup > menucaption,
90 menulist > menupopup > menu {
91   padding: 1px 5px;
92   max-width: none;
93 }
94
95 /* ..... internal content .... */
96
97 .menu-text,
98 .menu-iconic-left,
99 .menu-iconic-text {
100   margin-top: 0px !important;
101   margin-bottom: 0px !important;
102   -moz-margin-start: 0px !important;
103   -moz-margin-end: 2px !important;
104   color: inherit;
105 }
106
107 .menu-iconic-left {
108   -moz-margin-end: 3px !important;
109 }
110
111 .menu-text {
112   -moz-margin-start: 19px !important;
113   font-weight: inherit;
114 }
115
116 menucaption > .menu-text,
117 menucaption > .menu-iconic-text {
118   font-weight: bold;
119   -moz-padding-start: 0 !important;
120 }
121
122 .menu-description {
123   font-style: italic;
124   color: #9C9CFF;
125   -moz-margin-start: 1ex !important;
126 }
127
128 .menu-accel,
129 .menu-iconic-accel {
130   margin-top: 0px !important;
131   margin-bottom: 0px !important;
132   -moz-margin-start: 7px !important;
133   -moz-margin-end: 2px !important;
134   -moz-padding-end: 14px;
135   color: #A09090;
136 }
137
138 .menu-iconic-icon {
139 /*
140   width: 16px;
141   height: 16px;
142 */
143 }
144
145 .menu-iconic-left {
146   width: 16px;
147 }
148
149 .menu-right {
150   margin-top: 0px;
151   margin-bottom: 0px;
152   -moz-margin-start: 3px;
153   -moz-margin-end: 0px;
154   width: 8px;
155   list-style-image: url("chrome://global/skin/menu/menu-arrow.gif");
156   -moz-image-region: auto;
157 }
158
159 .menu-right[_moz-menuactive="true"] {
160   list-style-image: url("chrome://global/skin/menu/menu-arrow-hover.gif");
161 }
162
163 .menu-right[disabled="true"] {
164   list-style-image: url("chrome://global/skin/menu/menu-arrow-disabled.gif");
165 }
166
167 .menu-right:-moz-locale-dir(rtl) {
168   list-style-image: url("chrome://global/skin/menu/menu-arrow-rtl.gif");
169 }
170
171 .menu-right:-moz-locale-dir(rtl)[_moz-menuactive="true"] {
172   list-style-image: url("chrome://global/skin/menu/menu-arrow-hover-rtl.gif");
173 }
174
175 .menu-right:-moz-locale-dir(rtl)[disabled="true"] {
176   list-style-image: url("chrome://global/skin/menu/menu-arrow-disabled-rtl.gif");
177 }
178
179 .menubar-left {
180   margin-top: 0px;
181   margin-bottom: 0px;
182   -moz-margin-start: 0px;
183   -moz-margin-end: 2px;
184   color: inherit;
185 }
186
187 .menubar-text {
188   margin: 0 1px !important;
189   color: inherit;
190 }
191
192 menulist > menupopup > menuitem > .menu-iconic-left,
193 menulist > menupopup > menucaption > .menu-iconic-left,
194 menulist > menupopup > menu > .menu-iconic-left {
195   display: none;
196 }
197
198 /* ::::: checkbox menuitem ::::: */
199
200 menuitem[checked="true"] { /* [type="checkbox"] */
201   list-style-image: url("chrome://global/skin/menu/menu-check.gif");
202 }
203
204 menuitem[checked="true"][_moz-menuactive="true"] {
205    list-style-image: url("chrome://global/skin/menu/menu-check-hover.gif");
206 }
207
208 menuitem[checked="true"][disabled="true"] {
209   list-style-image: url("chrome://global/skin/menu/menu-check-disabled.gif");
210 }
211
212 /* ::::: radio menuitem ::::: */
213
214 menuitem[checked="true"][type="radio"] {
215   list-style-image: url("chrome://global/skin/menu/menu-radio.gif");
216 }
217
218 menuitem[checked="true"][type="radio"][_moz-menuactive="true"] {
219   list-style-image: url("chrome://global/skin/menu/menu-radio-hover.gif");
220 }
221
222 menuitem[checked="true"][type="radio"][disabled="true"] {
223   list-style-image: url("chrome://global/skin/menu/menu-radio-disabled.gif");
224 }
225
226 /* ::::: menuseparator ::::: */
227
228 menuseparator {
229   border: 1px solid #9C9CFF;
230   margin: 2px 0px;
231 }
232
233 menulist > menupopup > menuseparator {
234   border: 1px solid #9C9CFF;
235   margin: 2px 0px;
236 }
237
238 /* ::::: autocomplete ::::: */
239
240 .autocomplete-history-popup > menuitem {
241   max-width: none !important;
242 }
243
244 /* ::::: tree column picker ::::: */
245
246 .treecell-popupcell-menu {
247   -moz-margin-start: -2px;
248   list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
249 }