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