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; |
ac5a507f | 21 | -moz-image-region: auto; |
b1eaa419 | 22 | } |
23 | ||
24 | menuitem[default="true"] { | |
25 | font-weight: bold; | |
3d6dd546 | 26 | } |
b1eaa419 | 27 | |
f98e9249 | 28 | menu[_moz-menuactive="true"], |
8a933f1e RK |
29 | menuitem[_moz-menuactive="true"], |
30 | .splitmenu-menuitem[_moz-menuactive="true"] { | |
f98e9249 RK |
31 | background-color: #FFCF00; |
32 | color: #000000; | |
33 | } | |
34 | ||
b1eaa419 | 35 | menu[disabled="true"], |
36 | menuitem[disabled="true"], | |
8a933f1e | 37 | .splitmenu-menuitem[disabled="true"], |
d07092f5 | 38 | menu[_moz-menuactive="true"][disabled="true"], |
8a933f1e RK |
39 | menuitem[_moz-menuactive="true"][disabled="true"], |
40 | .splitmenu-menuitem[_moz-menuactive="true"][disabled="true"] { | |
b1eaa419 | 41 | color: #8050B0; |
42 | } | |
43 | ||
f98e9249 | 44 | menubar > menu { |
d0646e4a RK |
45 | padding: 2px; |
46 | margin: 0px; | |
47 | -moz-margin-start: 2px; | |
f98e9249 RK |
48 | border: none; |
49 | } | |
50 | ||
51 | menubar > menu[_moz-menuactive="true"] { | |
52 | background-color: #FFCF00; | |
53 | color: #000000; | |
54 | border: none; | |
55 | } | |
56 | ||
57 | menubar > menu[open] { | |
58 | background-color: #FF9F00; | |
59 | color: #000000; | |
60 | border: none; | |
61 | } | |
62 | ||
35775405 RK |
63 | menubar > menu:-moz-lwtheme { |
64 | -moz-appearance: none; | |
65 | } | |
66 | ||
67 | menubar > menu:-moz-window-inactive { | |
68 | color: #8050B0; | |
69 | } | |
70 | ||
f98e9249 RK |
71 | menuitem.spell-suggestion { |
72 | font-weight: bold; | |
73 | } | |
74 | ||
75 | /* ::::: menu/menuitems in popups ::::: */ | |
76 | ||
77 | menupopup > menu, | |
78 | popup > menu, | |
79 | menupopup > menuitem, | |
80 | popup > menuitem { | |
81 | padding: 2px; | |
82 | } | |
83 | ||
84 | /* ::::: menu/menuitems in menulist popups ::::: */ | |
85 | ||
f98e9249 | 86 | menulist > menupopup > menuitem, |
f98e9249 | 87 | menulist > menupopup > menu { |
569543b3 | 88 | padding: 1px 5px; |
f98e9249 RK |
89 | max-width: none; |
90 | } | |
91 | ||
b1eaa419 | 92 | /* ..... internal content .... */ |
93 | ||
3d6dd546 | 94 | .menu-text, |
b1eaa419 | 95 | .menu-iconic-left, |
731b0901 | 96 | .menu-iconic-text { |
f98e9249 RK |
97 | margin-top: 0px !important; |
98 | margin-bottom: 0px !important; | |
99 | -moz-margin-start: 0px !important; | |
100 | -moz-margin-end: 2px !important; | |
b1eaa419 | 101 | color: inherit; |
102 | } | |
103 | ||
938117ba RK |
104 | .menu-iconic-left { |
105 | -moz-margin-end: 3px !important; | |
106 | } | |
107 | ||
b1eaa419 | 108 | .menu-text { |
938117ba | 109 | -moz-margin-start: 19px !important; |
b1eaa419 | 110 | font-weight: inherit; |
111 | } | |
112 | ||
3d6dd546 | 113 | .menu-description { |
114 | font-style: italic; | |
a8df931f | 115 | color: #9C9CFF; |
f98e9249 | 116 | -moz-margin-start: 1ex !important; |
3d6dd546 | 117 | } |
118 | ||
731b0901 | 119 | .menu-accel, |
b1eaa419 | 120 | .menu-iconic-accel { |
f98e9249 RK |
121 | margin-top: 0px !important; |
122 | margin-bottom: 0px !important; | |
123 | -moz-margin-start: 7px !important; | |
124 | -moz-margin-end: 2px !important; | |
125 | -moz-padding-end: 14px; | |
51994fad | 126 | color: #A09090; |
b1eaa419 | 127 | } |
128 | ||
f98e9249 RK |
129 | .menu-iconic-icon { |
130 | /* | |
131 | width: 16px; | |
132 | height: 16px; | |
133 | */ | |
b1eaa419 | 134 | } |
135 | ||
136 | .menu-iconic-left { | |
b1eaa419 | 137 | width: 16px; |
b1eaa419 | 138 | } |
139 | ||
b1eaa419 | 140 | .menu-right { |
f98e9249 RK |
141 | margin-top: 0px; |
142 | margin-bottom: 0px; | |
143 | -moz-margin-start: 3px; | |
144 | -moz-margin-end: 0px; | |
b1eaa419 | 145 | width: 8px; |
146 | list-style-image: url("chrome://global/skin/menu/menu-arrow.gif"); | |
f98e9249 | 147 | -moz-image-region: auto; |
b1eaa419 | 148 | } |
149 | ||
d07092f5 | 150 | .menu-right[_moz-menuactive="true"] { |
b1eaa419 | 151 | list-style-image: url("chrome://global/skin/menu/menu-arrow-hover.gif"); |
152 | } | |
153 | ||
154 | .menu-right[disabled="true"] { | |
f98e9249 | 155 | list-style-image: url("chrome://global/skin/menu/menu-arrow-disabled.gif"); |
b1eaa419 | 156 | } |
157 | ||
18f5421a | 158 | .menu-right:-moz-locale-dir(rtl) { |
f98e9249 | 159 | list-style-image: url("chrome://global/skin/menu/menu-arrow-rtl.gif"); |
b1eaa419 | 160 | } |
161 | ||
18f5421a | 162 | .menu-right:-moz-locale-dir(rtl)[_moz-menuactive="true"] { |
f98e9249 | 163 | list-style-image: url("chrome://global/skin/menu/menu-arrow-hover-rtl.gif"); |
b1eaa419 | 164 | } |
165 | ||
18f5421a | 166 | .menu-right:-moz-locale-dir(rtl)[disabled="true"] { |
f98e9249 | 167 | list-style-image: url("chrome://global/skin/menu/menu-arrow-disabled-rtl.gif"); |
b1eaa419 | 168 | } |
169 | ||
b1eaa419 | 170 | .menubar-left { |
f98e9249 RK |
171 | margin-top: 0px; |
172 | margin-bottom: 0px; | |
173 | -moz-margin-start: 0px; | |
174 | -moz-margin-end: 2px; | |
b1eaa419 | 175 | color: inherit; |
176 | } | |
177 | ||
178 | .menubar-text { | |
f98e9249 | 179 | margin: 0 1px !important; |
b1eaa419 | 180 | color: inherit; |
181 | } | |
182 | ||
f98e9249 | 183 | menulist > menupopup > menuitem > .menu-iconic-left, |
f98e9249 RK |
184 | menulist > menupopup > menu > .menu-iconic-left { |
185 | display: none; | |
b1eaa419 | 186 | } |
187 | ||
188 | /* ::::: checkbox menuitem ::::: */ | |
189 | ||
f98e9249 | 190 | menuitem[checked="true"] { /* [type="checkbox"] */ |
b1eaa419 | 191 | list-style-image: url("chrome://global/skin/menu/menu-check.gif"); |
192 | } | |
193 | ||
d07092f5 | 194 | menuitem[checked="true"][_moz-menuactive="true"] { |
b1eaa419 | 195 | list-style-image: url("chrome://global/skin/menu/menu-check-hover.gif"); |
196 | } | |
197 | ||
8c976b60 | 198 | menuitem[checked="true"][disabled="true"] { |
199 | list-style-image: url("chrome://global/skin/menu/menu-check-disabled.gif"); | |
200 | } | |
201 | ||
b1eaa419 | 202 | /* ::::: radio menuitem ::::: */ |
203 | ||
204 | menuitem[checked="true"][type="radio"] { | |
205 | list-style-image: url("chrome://global/skin/menu/menu-radio.gif"); | |
206 | } | |
207 | ||
d07092f5 | 208 | menuitem[checked="true"][type="radio"][_moz-menuactive="true"] { |
b1eaa419 | 209 | list-style-image: url("chrome://global/skin/menu/menu-radio-hover.gif"); |
210 | } | |
211 | ||
8c976b60 | 212 | menuitem[checked="true"][type="radio"][disabled="true"] { |
213 | list-style-image: url("chrome://global/skin/menu/menu-radio-disabled.gif"); | |
214 | } | |
215 | ||
b1eaa419 | 216 | /* ::::: menuseparator ::::: */ |
217 | ||
218 | menuseparator { | |
3d6dd546 | 219 | border: 1px solid #9C9CFF; |
f98e9249 | 220 | margin: 2px 0px; |
b1eaa419 | 221 | } |
222 | ||
e82e1bf4 | 223 | menulist > menupopup > menuseparator { |
3d6dd546 | 224 | border: 1px solid #9C9CFF; |
f98e9249 | 225 | margin: 2px 0px; |
b1eaa419 | 226 | } |
227 | ||
228 | /* ::::: autocomplete ::::: */ | |
229 | ||
230 | .autocomplete-history-popup > menuitem { | |
231 | max-width: none !important; | |
232 | } | |
233 | ||
f98e9249 RK |
234 | /* ::::: tree column picker ::::: */ |
235 | ||
b1eaa419 | 236 | .treecell-popupcell-menu { |
8caa872d | 237 | -moz-margin-start: -2px; |
b1eaa419 | 238 | list-style-image: url("chrome://global/skin/tree/columnpicker.gif"); |
239 | } |