Commit | Line | Data |
---|---|---|
9099c61d RK |
1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
2 | * License, v. 2.0. If a copy of the MPL was not distributed with this | |
3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | |
128000f4 | 4 | |
74d14f90 | 5 | /* ===== menu.css ======================================================= |
6 | == Styles used by XUL menu-related elements. | |
7 | ======================================================================= */ | |
8 | ||
df8c26c4 RK |
9 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
10 | ||
74d14f90 | 11 | /* ::::: menu/menuitem ::::: */ |
12 | ||
76983f4c | 13 | menu, |
8a933f1e RK |
14 | menuitem, |
15 | .splitmenu-menuitem { | |
74d14f90 | 16 | -moz-box-align: center; |
df8c26c4 | 17 | max-width: 42em; |
74d14f90 | 18 | color: #000000; |
19 | list-style-image: none; | |
20 | } | |
21 | ||
22 | menuitem[default="true"] { | |
23 | font-weight: bold; | |
76983f4c | 24 | } |
74d14f90 | 25 | |
df8c26c4 | 26 | menu[_moz-menuactive="true"], |
8a933f1e RK |
27 | menuitem[_moz-menuactive="true"], |
28 | .splitmenu-menuitem[_moz-menuactive="true"] { | |
df8c26c4 RK |
29 | background-color: #336699; |
30 | color: #FFFFFF; | |
31 | } | |
32 | ||
74d14f90 | 33 | menu[disabled="true"], |
34 | menuitem[disabled="true"], | |
8a933f1e | 35 | .splitmenu-menuitem[disabled="true"], |
7c110a07 | 36 | menu[_moz-menuactive="true"][disabled="true"], |
8a933f1e RK |
37 | menuitem[_moz-menuactive="true"][disabled="true"], |
38 | .splitmenu-menuitem[_moz-menuactive="true"][disabled="true"] { | |
74d14f90 | 39 | color: #999999; |
40 | } | |
41 | ||
df8c26c4 | 42 | menubar > menu { |
938117ba RK |
43 | padding: 2px 1px; |
44 | -moz-padding-start: 2px; | |
02920d2b RK |
45 | margin: 0px 2px; |
46 | -moz-margin-start: 0px; | |
df8c26c4 RK |
47 | border: 1px solid #CCD0DD; |
48 | } | |
49 | ||
50 | menubar > menu[_moz-menuactive="true"] { | |
51 | background-color: #CCD0DD; | |
52 | color: #000000; | |
53 | border: 1px outset #CCD0DD; | |
54 | } | |
55 | ||
56 | menubar > menu[open] { | |
57 | background-color: #CCD0DD; | |
58 | color: #000000; | |
59 | border: 1px inset #CCD0DD; | |
60 | } | |
61 | ||
35775405 RK |
62 | menubar > menu:-moz-lwtheme { |
63 | -moz-appearance: none; | |
64 | } | |
65 | ||
66 | menubar > menu:-moz-window-inactive { | |
67 | color: #808080; | |
68 | } | |
69 | ||
df8c26c4 RK |
70 | menuitem.spell-suggestion { |
71 | font-weight: bold; | |
72 | } | |
73 | ||
74 | /* ::::: menu/menuitems in popups ::::: */ | |
75 | ||
76 | menupopup > menu, | |
77 | popup > menu, | |
78 | menupopup > menuitem, | |
79 | popup > menuitem { | |
80 | padding: 2px; | |
81 | } | |
82 | ||
83 | /* ::::: menu/menuitems in menulist popups ::::: */ | |
84 | ||
85 | .menulist-menupopup > menuitem, | |
86 | menulist > menupopup > menuitem, | |
87 | .menulist-menupopup > menu, | |
88 | menulist > menupopup > menu { | |
569543b3 | 89 | padding: 1px 5px; |
df8c26c4 RK |
90 | max-width: none; |
91 | } | |
92 | ||
74d14f90 | 93 | /* ..... internal content .... */ |
94 | ||
76983f4c | 95 | .menu-text, |
74d14f90 | 96 | .menu-iconic-left, |
9ca9f6bd | 97 | .menu-iconic-text { |
df8c26c4 RK |
98 | margin-top: 0px !important; |
99 | margin-bottom: 0px !important; | |
100 | -moz-margin-start: 0px !important; | |
101 | -moz-margin-end: 2px !important; | |
74d14f90 | 102 | color: inherit; |
103 | } | |
104 | ||
938117ba RK |
105 | .menu-iconic-left { |
106 | -moz-margin-end: 3px !important; | |
107 | } | |
108 | ||
74d14f90 | 109 | .menu-text { |
938117ba | 110 | -moz-margin-start: 19px !important; |
74d14f90 | 111 | font-weight: inherit; |
112 | } | |
113 | ||
76983f4c | 114 | .menu-description { |
115 | font-style: italic; | |
116 | color: #808080; | |
df8c26c4 | 117 | -moz-margin-start: 1ex !important; |
76983f4c | 118 | } |
119 | ||
9ca9f6bd | 120 | .menu-accel, |
74d14f90 | 121 | .menu-iconic-accel { |
df8c26c4 RK |
122 | margin-top: 0px !important; |
123 | margin-bottom: 0px !important; | |
124 | -moz-margin-start: 7px !important; | |
125 | -moz-margin-end: 2px !important; | |
126 | -moz-padding-end: 14px; | |
9ca9f6bd | 127 | color: inherit; |
74d14f90 | 128 | } |
129 | ||
4d12b027 RK |
130 | .menu-iconic-icon { |
131 | /* | |
132 | width: 16px; | |
133 | height: 16px; | |
134 | */ | |
135 | } | |
136 | ||
74d14f90 | 137 | .menu-iconic-left { |
74d14f90 | 138 | width: 16px; |
74d14f90 | 139 | } |
140 | ||
74d14f90 | 141 | .menu-right { |
df8c26c4 RK |
142 | margin-top: 0px; |
143 | margin-bottom: 0px; | |
144 | -moz-margin-start: 3px; | |
145 | -moz-margin-end: 0px; | |
74d14f90 | 146 | width: 8px; |
147 | list-style-image: url("chrome://global/skin/menu/menu-arrow.gif"); | |
ddc494fc | 148 | -moz-image-region: auto; |
74d14f90 | 149 | } |
150 | ||
7c110a07 | 151 | .menu-right[_moz-menuactive="true"] { |
74d14f90 | 152 | list-style-image: url("chrome://global/skin/menu/menu-arrow-hover.gif"); |
153 | } | |
154 | ||
155 | .menu-right[disabled="true"] { | |
df8c26c4 | 156 | list-style-image: url("chrome://global/skin/menu/menu-arrow-disabled.gif"); |
74d14f90 | 157 | } |
158 | ||
18f5421a | 159 | .menu-right:-moz-locale-dir(rtl) { |
df8c26c4 | 160 | list-style-image: url("chrome://global/skin/menu/menu-arrow-rtl.gif"); |
74d14f90 | 161 | } |
162 | ||
18f5421a | 163 | .menu-right:-moz-locale-dir(rtl)[_moz-menuactive="true"] { |
df8c26c4 | 164 | list-style-image: url("chrome://global/skin/menu/menu-arrow-hover-rtl.gif"); |
74d14f90 | 165 | } |
166 | ||
18f5421a | 167 | .menu-right:-moz-locale-dir(rtl)[disabled="true"] { |
df8c26c4 | 168 | list-style-image: url("chrome://global/skin/menu/menu-arrow-disabled-rtl.gif"); |
74d14f90 | 169 | } |
170 | ||
74d14f90 | 171 | .menubar-left { |
df8c26c4 RK |
172 | margin-top: 0px; |
173 | margin-bottom: 0px; | |
174 | -moz-margin-start: 0px; | |
175 | -moz-margin-end: 2px; | |
74d14f90 | 176 | color: inherit; |
177 | } | |
178 | ||
179 | .menubar-text { | |
df8c26c4 | 180 | margin: 0 1px !important; |
74d14f90 | 181 | color: inherit; |
182 | } | |
183 | ||
df8c26c4 RK |
184 | .menulist-menupopup > menuitem > .menu-iconic-left, |
185 | menulist > menupopup > menuitem > .menu-iconic-left, | |
186 | .menulist-menupopup > menu > .menu-iconic-left, | |
187 | menulist > menupopup > menu > .menu-iconic-left { | |
188 | display: none; | |
74d14f90 | 189 | } |
190 | ||
191 | /* ::::: checkbox menuitem ::::: */ | |
192 | ||
df8c26c4 | 193 | menuitem[checked="true"] { /* [type="checkbox"] */ |
74d14f90 | 194 | list-style-image: url("chrome://global/skin/menu/menu-check.gif"); |
195 | } | |
196 | ||
7c110a07 | 197 | menuitem[checked="true"][_moz-menuactive="true"] { |
74d14f90 | 198 | list-style-image: url("chrome://global/skin/menu/menu-check-hover.gif"); |
199 | } | |
200 | ||
1697de53 | 201 | menuitem[checked="true"][disabled="true"] { |
202 | list-style-image: url("chrome://global/skin/menu/menu-check-disabled.gif"); | |
203 | } | |
204 | ||
74d14f90 | 205 | /* ::::: radio menuitem ::::: */ |
206 | ||
207 | menuitem[checked="true"][type="radio"] { | |
208 | list-style-image: url("chrome://global/skin/menu/menu-radio.gif"); | |
209 | } | |
210 | ||
7c110a07 | 211 | menuitem[checked="true"][type="radio"][_moz-menuactive="true"] { |
74d14f90 | 212 | list-style-image: url("chrome://global/skin/menu/menu-radio-hover.gif"); |
213 | } | |
214 | ||
1697de53 | 215 | menuitem[checked="true"][type="radio"][disabled="true"] { |
216 | list-style-image: url("chrome://global/skin/menu/menu-radio-disabled.gif"); | |
217 | } | |
218 | ||
74d14f90 | 219 | /* ::::: menuseparator ::::: */ |
220 | ||
221 | menuseparator { | |
76983f4c | 222 | border: 1px inset #CCD0DD; |
df8c26c4 | 223 | margin: 2px 0px; |
74d14f90 | 224 | } |
225 | ||
226 | menulist > menupopup > menuseparator, | |
227 | .menulist-menupopup > menuseparator { | |
76983f4c | 228 | border: 1px inset #CCD0DD; |
df8c26c4 | 229 | margin: 2px 0px; |
74d14f90 | 230 | } |
231 | ||
232 | /* ::::: autocomplete ::::: */ | |
233 | ||
234 | .autocomplete-history-popup > menuitem { | |
235 | max-width: none !important; | |
236 | } | |
237 | ||
df8c26c4 RK |
238 | /* ::::: tree column picker ::::: */ |
239 | ||
74d14f90 | 240 | .treecell-popupcell-menu { |
8caa872d | 241 | -moz-margin-start: -2px; |
259c0f10 | 242 | list-style-image: url("chrome://global/skin/tree/columnpicker.gif"); |
d2f0d128 | 243 | } |