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;
20 -moz-image-region: auto;
23 menuitem[default="true"] {
27 menu[_moz-menuactive="true"],
28 menuitem[_moz-menuactive="true"],
29 .splitmenu-menuitem[_moz-menuactive="true"] {
30 background-color: #336699;
34 menu[disabled="true"],
35 menuitem[disabled="true"],
36 .splitmenu-menuitem[disabled="true"],
37 menu[_moz-menuactive="true"][disabled="true"],
38 menuitem[_moz-menuactive="true"][disabled="true"],
39 .splitmenu-menuitem[_moz-menuactive="true"][disabled="true"] {
45 -moz-padding-start: 2px;
47 -moz-margin-start: 0px;
48 border: 1px solid #CCD0DD;
51 menubar > menu[_moz-menuactive="true"] {
52 background-color: #CCD0DD;
54 border: 1px outset #CCD0DD;
57 menubar > menu[open] {
58 background-color: #CCD0DD;
60 border: 1px inset #CCD0DD;
63 menubar > menu:-moz-lwtheme {
64 -moz-appearance: none;
67 menubar > menu:-moz-window-inactive {
71 menuitem.spell-suggestion {
75 /* ::::: menu/menuitems in popups ::::: */
84 /* ::::: menu/menuitems in menulist popups ::::: */
86 .menulist-menupopup > menuitem,
87 menulist > menupopup > menuitem,
88 .menulist-menupopup > menu,
89 menulist > menupopup > menu {
94 /* ..... internal content .... */
99 margin-top: 0px !important;
100 margin-bottom: 0px !important;
101 -moz-margin-start: 0px !important;
102 -moz-margin-end: 2px !important;
107 -moz-margin-end: 3px !important;
111 -moz-margin-start: 19px !important;
112 font-weight: inherit;
118 -moz-margin-start: 1ex !important;
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;
145 -moz-margin-start: 3px;
146 -moz-margin-end: 0px;
148 list-style-image: url("chrome://global/skin/menu/menu-arrow.gif");
149 -moz-image-region: auto;
152 .menu-right[_moz-menuactive="true"] {
153 list-style-image: url("chrome://global/skin/menu/menu-arrow-hover.gif");
156 .menu-right[disabled="true"] {
157 list-style-image: url("chrome://global/skin/menu/menu-arrow-disabled.gif");
160 .menu-right:-moz-locale-dir(rtl) {
161 list-style-image: url("chrome://global/skin/menu/menu-arrow-rtl.gif");
164 .menu-right:-moz-locale-dir(rtl)[_moz-menuactive="true"] {
165 list-style-image: url("chrome://global/skin/menu/menu-arrow-hover-rtl.gif");
168 .menu-right:-moz-locale-dir(rtl)[disabled="true"] {
169 list-style-image: url("chrome://global/skin/menu/menu-arrow-disabled-rtl.gif");
175 -moz-margin-start: 0px;
176 -moz-margin-end: 2px;
181 margin: 0 1px !important;
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 {
192 /* ::::: checkbox menuitem ::::: */
194 menuitem[checked="true"] { /* [type="checkbox"] */
195 list-style-image: url("chrome://global/skin/menu/menu-check.gif");
198 menuitem[checked="true"][_moz-menuactive="true"] {
199 list-style-image: url("chrome://global/skin/menu/menu-check-hover.gif");
202 menuitem[checked="true"][disabled="true"] {
203 list-style-image: url("chrome://global/skin/menu/menu-check-disabled.gif");
206 /* ::::: radio menuitem ::::: */
208 menuitem[checked="true"][type="radio"] {
209 list-style-image: url("chrome://global/skin/menu/menu-radio.gif");
212 menuitem[checked="true"][type="radio"][_moz-menuactive="true"] {
213 list-style-image: url("chrome://global/skin/menu/menu-radio-hover.gif");
216 menuitem[checked="true"][type="radio"][disabled="true"] {
217 list-style-image: url("chrome://global/skin/menu/menu-radio-disabled.gif");
220 /* ::::: menuseparator ::::: */
223 border: 1px inset #CCD0DD;
227 menulist > menupopup > menuseparator,
228 .menulist-menupopup > menuseparator {
229 border: 1px inset #CCD0DD;
233 /* ::::: autocomplete ::::: */
235 .autocomplete-history-popup > menuitem {
236 max-width: none !important;
239 /* ::::: tree column picker ::::: */
241 .treecell-popupcell-menu {
242 -moz-margin-start: -2px;
243 list-style-image: url("chrome://global/skin/tree/columnpicker.gif");