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;
18 background-color: #000000;
20 list-style-image: none;
23 menuitem[default="true"] {
27 menu[_moz-menuactive="true"],
28 menuitem[_moz-menuactive="true"],
29 .splitmenu-menuitem[_moz-menuactive="true"] {
30 background-color: #FFCF00;
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"] {
46 -moz-margin-start: 2px;
50 menubar > menu[_moz-menuactive="true"] {
51 background-color: #FFCF00;
56 menubar > menu[open] {
57 background-color: #FF9F00;
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");
195 -moz-image-region: auto;
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");
210 -moz-image-region: auto;
213 menuitem[checked="true"][type="radio"][_moz-menuactive="true"] {
214 list-style-image: url("chrome://global/skin/menu/menu-radio-hover.gif");
217 menuitem[checked="true"][type="radio"][disabled="true"] {
218 list-style-image: url("chrome://global/skin/menu/menu-radio-disabled.gif");
221 /* ::::: menuseparator ::::: */
224 border: 1px solid #9C9CFF;
228 menulist > menupopup > menuseparator,
229 .menulist-menupopup > menuseparator {
230 border: 1px solid #9C9CFF;
234 /* ::::: autocomplete ::::: */
236 .autocomplete-history-popup > menuitem {
237 max-width: none !important;
240 /* ::::: tree column picker ::::: */
242 .treecell-popupcell-menu {
243 -moz-margin-start: -2px;
244 list-style-image: url("chrome://global/skin/tree/columnpicker.gif");