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