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