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