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