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