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/. */
5 /* ===== menu.css =======================================================
6 == Styles used by XUL menu-related elements.
7 ======================================================================= */
9 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
11 /* ::::: menu/menuitem ::::: */
16 -moz-box-align: center;
19 list-style-image: none;
22 menuitem[default="true"] {
26 menu[_moz-menuactive="true"],
27 menuitem[_moz-menuactive="true"],
28 .splitmenu-menuitem[_moz-menuactive="true"] {
29 background-color: #336699;
33 menu[disabled="true"],
34 menuitem[disabled="true"],
35 .splitmenu-menuitem[disabled="true"],
36 menu[_moz-menuactive="true"][disabled="true"],
37 menuitem[_moz-menuactive="true"][disabled="true"],
38 .splitmenu-menuitem[_moz-menuactive="true"][disabled="true"] {
44 -moz-padding-start: 2px;
46 -moz-margin-start: 0px;
47 border: 1px solid #CCD0DD;
50 menubar > menu[_moz-menuactive="true"] {
51 background-color: #CCD0DD;
53 border: 1px outset #CCD0DD;
56 menubar > menu[open] {
57 background-color: #CCD0DD;
59 border: 1px inset #CCD0DD;
62 menubar > menu:-moz-lwtheme {
63 -moz-appearance: none;
66 menubar > menu:-moz-window-inactive {
70 menuitem.spell-suggestion {
74 /* ::::: menu/menuitems in popups ::::: */
83 /* ::::: menu/menuitems in menulist popups ::::: */
85 .menulist-menupopup > menuitem,
86 menulist > menupopup > menuitem,
87 .menulist-menupopup > menu,
88 menulist > menupopup > menu {
93 /* ..... internal content .... */
98 margin-top: 0px !important;
99 margin-bottom: 0px !important;
100 -moz-margin-start: 0px !important;
101 -moz-margin-end: 2px !important;
106 -moz-margin-end: 3px !important;
110 -moz-margin-start: 19px !important;
111 font-weight: inherit;
117 -moz-margin-start: 1ex !important;
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;
144 -moz-margin-start: 3px;
145 -moz-margin-end: 0px;
147 list-style-image: url("chrome://global/skin/menu/menu-arrow.gif");
148 -moz-image-region: auto;
151 .menu-right[_moz-menuactive="true"] {
152 list-style-image: url("chrome://global/skin/menu/menu-arrow-hover.gif");
155 .menu-right[disabled="true"] {
156 list-style-image: url("chrome://global/skin/menu/menu-arrow-disabled.gif");
159 .menu-right:-moz-locale-dir(rtl) {
160 list-style-image: url("chrome://global/skin/menu/menu-arrow-rtl.gif");
163 .menu-right:-moz-locale-dir(rtl)[_moz-menuactive="true"] {
164 list-style-image: url("chrome://global/skin/menu/menu-arrow-hover-rtl.gif");
167 .menu-right:-moz-locale-dir(rtl)[disabled="true"] {
168 list-style-image: url("chrome://global/skin/menu/menu-arrow-disabled-rtl.gif");
174 -moz-margin-start: 0px;
175 -moz-margin-end: 2px;
180 margin: 0 1px !important;
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 {
191 /* ::::: checkbox menuitem ::::: */
193 menuitem[checked="true"] { /* [type="checkbox"] */
194 list-style-image: url("chrome://global/skin/menu/menu-check.gif");
197 menuitem[checked="true"][_moz-menuactive="true"] {
198 list-style-image: url("chrome://global/skin/menu/menu-check-hover.gif");
201 menuitem[checked="true"][disabled="true"] {
202 list-style-image: url("chrome://global/skin/menu/menu-check-disabled.gif");
205 /* ::::: radio menuitem ::::: */
207 menuitem[checked="true"][type="radio"] {
208 list-style-image: url("chrome://global/skin/menu/menu-radio.gif");
211 menuitem[checked="true"][type="radio"][_moz-menuactive="true"] {
212 list-style-image: url("chrome://global/skin/menu/menu-radio-hover.gif");
215 menuitem[checked="true"][type="radio"][disabled="true"] {
216 list-style-image: url("chrome://global/skin/menu/menu-radio-disabled.gif");
219 /* ::::: menuseparator ::::: */
222 border: 1px inset #CCD0DD;
226 menulist > menupopup > menuseparator,
227 .menulist-menupopup > menuseparator {
228 border: 1px inset #CCD0DD;
232 /* ::::: autocomplete ::::: */
234 .autocomplete-history-popup > menuitem {
235 max-width: none !important;
238 /* ::::: tree column picker ::::: */
240 .treecell-popupcell-menu {
241 -moz-margin-start: -2px;
242 list-style-image: url("chrome://global/skin/tree/columnpicker.gif");