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