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