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/. */ | |
351107c9 | 4 | |
b1eaa419 | 5 | /* ===== menu.css ======================================================= |
6 | == Styles used by XUL menu-related elements. | |
7 | ======================================================================= */ | |
8 | ||
f98e9249 RK |
9 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
10 | ||
b1eaa419 | 11 | /* ::::: menu/menuitem ::::: */ |
12 | ||
13 | menu, | |
8a933f1e RK |
14 | menuitem, |
15 | .splitmenu-menuitem { | |
b1eaa419 | 16 | -moz-box-align: center; |
f98e9249 | 17 | max-width: 42em; |
b1eaa419 | 18 | background-color: #000000; |
a2d09615 | 19 | color: #FF9F00; |
b1eaa419 | 20 | list-style-image: none; |
21 | } | |
22 | ||
23 | menuitem[default="true"] { | |
24 | font-weight: bold; | |
3d6dd546 | 25 | } |
b1eaa419 | 26 | |
f98e9249 | 27 | menu[_moz-menuactive="true"], |
8a933f1e RK |
28 | menuitem[_moz-menuactive="true"], |
29 | .splitmenu-menuitem[_moz-menuactive="true"] { | |
f98e9249 RK |
30 | background-color: #FFCF00; |
31 | color: #000000; | |
32 | } | |
33 | ||
b1eaa419 | 34 | menu[disabled="true"], |
35 | menuitem[disabled="true"], | |
8a933f1e | 36 | .splitmenu-menuitem[disabled="true"], |
d07092f5 | 37 | menu[_moz-menuactive="true"][disabled="true"], |
8a933f1e RK |
38 | menuitem[_moz-menuactive="true"][disabled="true"], |
39 | .splitmenu-menuitem[_moz-menuactive="true"][disabled="true"] { | |
b1eaa419 | 40 | color: #8050B0; |
41 | } | |
42 | ||
f98e9249 | 43 | menubar > menu { |
d0646e4a RK |
44 | padding: 2px; |
45 | margin: 0px; | |
46 | -moz-margin-start: 2px; | |
f98e9249 RK |
47 | border: none; |
48 | } | |
49 | ||
50 | menubar > menu[_moz-menuactive="true"] { | |
51 | background-color: #FFCF00; | |
52 | color: #000000; | |
53 | border: none; | |
54 | } | |
55 | ||
56 | menubar > menu[open] { | |
57 | background-color: #FF9F00; | |
58 | color: #000000; | |
59 | border: none; | |
60 | } | |
61 | ||
35775405 RK |
62 | menubar > menu:-moz-lwtheme { |
63 | -moz-appearance: none; | |
64 | } | |
65 | ||
66 | menubar > menu:-moz-window-inactive { | |
67 | color: #8050B0; | |
68 | } | |
69 | ||
f98e9249 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; |
f98e9249 RK |
90 | max-width: none; |
91 | } | |
92 | ||
b1eaa419 | 93 | /* ..... internal content .... */ |
94 | ||
3d6dd546 | 95 | .menu-text, |
b1eaa419 | 96 | .menu-iconic-left, |
731b0901 | 97 | .menu-iconic-text { |
f98e9249 RK |
98 | margin-top: 0px !important; |
99 | margin-bottom: 0px !important; | |
100 | -moz-margin-start: 0px !important; | |
101 | -moz-margin-end: 2px !important; | |
b1eaa419 | 102 | color: inherit; |
103 | } | |
104 | ||
938117ba RK |
105 | .menu-iconic-left { |
106 | -moz-margin-end: 3px !important; | |
107 | } | |
108 | ||
b1eaa419 | 109 | .menu-text { |
938117ba | 110 | -moz-margin-start: 19px !important; |
b1eaa419 | 111 | font-weight: inherit; |
112 | } | |
113 | ||
3d6dd546 | 114 | .menu-description { |
115 | font-style: italic; | |
a8df931f | 116 | color: #9C9CFF; |
f98e9249 | 117 | -moz-margin-start: 1ex !important; |
3d6dd546 | 118 | } |
119 | ||
731b0901 | 120 | .menu-accel, |
b1eaa419 | 121 | .menu-iconic-accel { |
f98e9249 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; | |
731b0901 | 127 | color: inherit; |
b1eaa419 | 128 | } |
129 | ||
f98e9249 RK |
130 | .menu-iconic-icon { |
131 | /* | |
132 | width: 16px; | |
133 | height: 16px; | |
134 | */ | |
b1eaa419 | 135 | } |
136 | ||
137 | .menu-iconic-left { | |
b1eaa419 | 138 | width: 16px; |
b1eaa419 | 139 | } |
140 | ||
b1eaa419 | 141 | .menu-right { |
f98e9249 RK |
142 | margin-top: 0px; |
143 | margin-bottom: 0px; | |
144 | -moz-margin-start: 3px; | |
145 | -moz-margin-end: 0px; | |
b1eaa419 | 146 | width: 8px; |
147 | list-style-image: url("chrome://global/skin/menu/menu-arrow.gif"); | |
f98e9249 | 148 | -moz-image-region: auto; |
b1eaa419 | 149 | } |
150 | ||
d07092f5 | 151 | .menu-right[_moz-menuactive="true"] { |
b1eaa419 | 152 | list-style-image: url("chrome://global/skin/menu/menu-arrow-hover.gif"); |
153 | } | |
154 | ||
155 | .menu-right[disabled="true"] { | |
f98e9249 | 156 | list-style-image: url("chrome://global/skin/menu/menu-arrow-disabled.gif"); |
b1eaa419 | 157 | } |
158 | ||
18f5421a | 159 | .menu-right:-moz-locale-dir(rtl) { |
f98e9249 | 160 | list-style-image: url("chrome://global/skin/menu/menu-arrow-rtl.gif"); |
b1eaa419 | 161 | } |
162 | ||
18f5421a | 163 | .menu-right:-moz-locale-dir(rtl)[_moz-menuactive="true"] { |
f98e9249 | 164 | list-style-image: url("chrome://global/skin/menu/menu-arrow-hover-rtl.gif"); |
b1eaa419 | 165 | } |
166 | ||
18f5421a | 167 | .menu-right:-moz-locale-dir(rtl)[disabled="true"] { |
f98e9249 | 168 | list-style-image: url("chrome://global/skin/menu/menu-arrow-disabled-rtl.gif"); |
b1eaa419 | 169 | } |
170 | ||
b1eaa419 | 171 | .menubar-left { |
f98e9249 RK |
172 | margin-top: 0px; |
173 | margin-bottom: 0px; | |
174 | -moz-margin-start: 0px; | |
175 | -moz-margin-end: 2px; | |
b1eaa419 | 176 | color: inherit; |
177 | } | |
178 | ||
179 | .menubar-text { | |
f98e9249 | 180 | margin: 0 1px !important; |
b1eaa419 | 181 | color: inherit; |
182 | } | |
183 | ||
f98e9249 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; | |
b1eaa419 | 189 | } |
190 | ||
191 | /* ::::: checkbox menuitem ::::: */ | |
192 | ||
f98e9249 | 193 | menuitem[checked="true"] { /* [type="checkbox"] */ |
b1eaa419 | 194 | list-style-image: url("chrome://global/skin/menu/menu-check.gif"); |
409d1b5b | 195 | -moz-image-region: auto; |
b1eaa419 | 196 | } |
197 | ||
d07092f5 | 198 | menuitem[checked="true"][_moz-menuactive="true"] { |
b1eaa419 | 199 | list-style-image: url("chrome://global/skin/menu/menu-check-hover.gif"); |
200 | } | |
201 | ||
8c976b60 | 202 | menuitem[checked="true"][disabled="true"] { |
203 | list-style-image: url("chrome://global/skin/menu/menu-check-disabled.gif"); | |
204 | } | |
205 | ||
b1eaa419 | 206 | /* ::::: radio menuitem ::::: */ |
207 | ||
208 | menuitem[checked="true"][type="radio"] { | |
209 | list-style-image: url("chrome://global/skin/menu/menu-radio.gif"); | |
409d1b5b | 210 | -moz-image-region: auto; |
b1eaa419 | 211 | } |
212 | ||
d07092f5 | 213 | menuitem[checked="true"][type="radio"][_moz-menuactive="true"] { |
b1eaa419 | 214 | list-style-image: url("chrome://global/skin/menu/menu-radio-hover.gif"); |
215 | } | |
216 | ||
8c976b60 | 217 | menuitem[checked="true"][type="radio"][disabled="true"] { |
218 | list-style-image: url("chrome://global/skin/menu/menu-radio-disabled.gif"); | |
219 | } | |
220 | ||
b1eaa419 | 221 | /* ::::: menuseparator ::::: */ |
222 | ||
223 | menuseparator { | |
3d6dd546 | 224 | border: 1px solid #9C9CFF; |
f98e9249 | 225 | margin: 2px 0px; |
b1eaa419 | 226 | } |
227 | ||
228 | menulist > menupopup > menuseparator, | |
229 | .menulist-menupopup > menuseparator { | |
3d6dd546 | 230 | border: 1px solid #9C9CFF; |
f98e9249 | 231 | margin: 2px 0px; |
b1eaa419 | 232 | } |
233 | ||
234 | /* ::::: autocomplete ::::: */ | |
235 | ||
236 | .autocomplete-history-popup > menuitem { | |
237 | max-width: none !important; | |
238 | } | |
239 | ||
f98e9249 RK |
240 | /* ::::: tree column picker ::::: */ |
241 | ||
b1eaa419 | 242 | .treecell-popupcell-menu { |
8caa872d | 243 | -moz-margin-start: -2px; |
b1eaa419 | 244 | list-style-image: url("chrome://global/skin/tree/columnpicker.gif"); |
245 | } |