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 ::::: */
17 -moz-box-align: center;
19 background-color: #000000;
21 list-style-image: none;
22 -moz-image-region: auto;
25 menuitem[default="true"] {
29 menu[_moz-menuactive="true"],
30 menuitem[_moz-menuactive="true"],
31 .splitmenu-menuitem[_moz-menuactive="true"] {
32 background-color: #FFCF00;
36 menu[disabled="true"],
37 menuitem[disabled="true"],
38 .splitmenu-menuitem[disabled="true"],
39 menu[_moz-menuactive="true"][disabled="true"],
40 menuitem[_moz-menuactive="true"][disabled="true"],
41 .splitmenu-menuitem[_moz-menuactive="true"][disabled="true"] {
48 -moz-margin-start: 2px;
52 menubar > menu[_moz-menuactive="true"] {
53 background-color: #FFCF00;
58 menubar > menu[open] {
59 background-color: #FF9F00;
64 menubar > menu:-moz-lwtheme {
65 -moz-appearance: none;
68 menubar > menu:-moz-window-inactive {
72 menuitem.spell-suggestion {
76 /* ::::: menu/menuitems in popups ::::: */
82 menupopup > menucaption {
86 /* ::::: menu/menuitems in menulist popups ::::: */
88 menulist > menupopup > menuitem,
89 menulist > menupopup > menucaption,
90 menulist > menupopup > menu {
95 /* ..... internal content .... */
100 margin-top: 0px !important;
101 margin-bottom: 0px !important;
102 -moz-margin-start: 0px !important;
103 -moz-margin-end: 2px !important;
108 -moz-margin-end: 3px !important;
112 -moz-margin-start: 19px !important;
113 font-weight: inherit;
116 menucaption > .menu-text,
117 menucaption > .menu-iconic-text {
119 -moz-padding-start: 0 !important;
125 -moz-margin-start: 1ex !important;
130 margin-top: 0px !important;
131 margin-bottom: 0px !important;
132 -moz-margin-start: 7px !important;
133 -moz-margin-end: 2px !important;
134 -moz-padding-end: 14px;
150 -moz-margin-start: 3px;
151 -moz-margin-end: 0px;
153 list-style-image: url("chrome://global/skin/menu/menu-arrow.gif");
154 -moz-image-region: auto;
157 .menu-right[_moz-menuactive="true"] {
158 list-style-image: url("chrome://global/skin/menu/menu-arrow-hover.gif");
161 .menu-right[disabled="true"] {
162 list-style-image: url("chrome://global/skin/menu/menu-arrow-disabled.gif");
165 .menu-right:-moz-locale-dir(rtl) {
166 list-style-image: url("chrome://global/skin/menu/menu-arrow-rtl.gif");
169 .menu-right:-moz-locale-dir(rtl)[_moz-menuactive="true"] {
170 list-style-image: url("chrome://global/skin/menu/menu-arrow-hover-rtl.gif");
173 .menu-right:-moz-locale-dir(rtl)[disabled="true"] {
174 list-style-image: url("chrome://global/skin/menu/menu-arrow-disabled-rtl.gif");
180 -moz-margin-start: 0px;
181 -moz-margin-end: 2px;
186 margin: 0 1px !important;
190 menulist > menupopup > menuitem > .menu-iconic-left,
191 menulist > menupopup > menucaption > .menu-iconic-left,
192 menulist > menupopup > menu > .menu-iconic-left {
196 /* ::::: checkbox menuitem ::::: */
198 menuitem[checked="true"] { /* [type="checkbox"] */
199 list-style-image: url("chrome://global/skin/menu/menu-check.gif");
202 menuitem[checked="true"][_moz-menuactive="true"] {
203 list-style-image: url("chrome://global/skin/menu/menu-check-hover.gif");
206 menuitem[checked="true"][disabled="true"] {
207 list-style-image: url("chrome://global/skin/menu/menu-check-disabled.gif");
210 menuitem[checked="true"] .menu-iconic-icon {
215 /* ::::: radio menuitem ::::: */
217 menuitem[checked="true"][type="radio"] {
218 list-style-image: url("chrome://global/skin/menu/menu-radio.gif");
221 menuitem[checked="true"][type="radio"][_moz-menuactive="true"] {
222 list-style-image: url("chrome://global/skin/menu/menu-radio-hover.gif");
225 menuitem[checked="true"][type="radio"][disabled="true"] {
226 list-style-image: url("chrome://global/skin/menu/menu-radio-disabled.gif");
229 /* ::::: menuseparator ::::: */
232 border: 1px solid #9C9CFF;
236 menulist > menupopup > menuseparator {
237 border: 1px solid #9C9CFF;
241 /* ::::: autocomplete ::::: */
243 .autocomplete-history-popup > menuitem {
244 max-width: none !important;
247 /* ::::: tree column picker ::::: */
249 .treecell-popupcell-menu {
250 -moz-margin-start: -2px;
251 list-style-image: url("chrome://global/skin/tree/columnpicker.gif");