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;
21 -moz-image-region: auto;
24 menuitem[default="true"] {
28 menu[_moz-menuactive="true"],
29 menuitem[_moz-menuactive="true"] {
30 background-color: #FFCF00;
34 menu[disabled="true"],
35 menuitem[disabled="true"],
36 menu[_moz-menuactive="true"][disabled="true"],
37 menuitem[_moz-menuactive="true"][disabled="true"] {
44 margin-inline-start: 2px;
48 menubar > menu[_moz-menuactive="true"] {
49 background-color: #FFCF00;
54 menubar > menu[open] {
55 background-color: #FF9F00;
60 menubar > menu:-moz-lwtheme {
61 -moz-appearance: none;
64 menubar > menu:-moz-window-inactive {
68 menuitem.spell-suggestion {
72 /* ::::: menu/menuitems in popups ::::: */
78 menupopup > menucaption {
82 /* ::::: menu/menuitems in menulist popups ::::: */
84 menulist > menupopup > menuitem,
85 menulist > menupopup > menucaption,
86 menulist > menupopup > menu {
91 /* ..... internal content .... */
96 margin-top: 0px !important;
97 margin-bottom: 0px !important;
98 margin-inline-start: 0px !important;
99 margin-inline-end: 2px !important;
104 margin-inline-end: 3px !important;
108 margin-inline-start: 19px !important;
109 font-weight: inherit;
112 menucaption > .menu-text,
113 menucaption > .menu-iconic-text {
115 padding-inline-start: 0 !important;
121 margin-inline-start: 1ex !important;
126 margin-top: 0px !important;
127 margin-bottom: 0px !important;
128 margin-inline-start: 7px !important;
129 margin-inline-end: 2px !important;
130 padding-inline-end: 14px;
146 margin-inline-start: 3px;
147 margin-inline-end: 0px;
149 list-style-image: url("chrome://global/skin/menu/menu-arrow.gif");
150 -moz-image-region: auto;
153 .menu-right[_moz-menuactive="true"] {
154 list-style-image: url("chrome://global/skin/menu/menu-arrow-hover.gif");
157 .menu-right[disabled="true"] {
158 list-style-image: url("chrome://global/skin/menu/menu-arrow-disabled.gif");
161 .menu-right:-moz-locale-dir(rtl) {
162 list-style-image: url("chrome://global/skin/menu/menu-arrow-rtl.gif");
165 .menu-right:-moz-locale-dir(rtl)[_moz-menuactive="true"] {
166 list-style-image: url("chrome://global/skin/menu/menu-arrow-hover-rtl.gif");
169 .menu-right:-moz-locale-dir(rtl)[disabled="true"] {
170 list-style-image: url("chrome://global/skin/menu/menu-arrow-disabled-rtl.gif");
176 margin-inline-start: 0px;
177 margin-inline-end: 2px;
182 margin: 0 1px !important;
186 menulist > menupopup > menuitem > .menu-iconic-left,
187 menulist > menupopup > menucaption > .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 menuitem[checked="true"] .menu-iconic-icon {
211 /* ::::: radio menuitem ::::: */
213 menuitem[checked="true"][type="radio"] {
214 list-style-image: url("chrome://global/skin/menu/menu-radio.gif");
217 menuitem[checked="true"][type="radio"][_moz-menuactive="true"] {
218 list-style-image: url("chrome://global/skin/menu/menu-radio-hover.gif");
221 menuitem[checked="true"][type="radio"][disabled="true"] {
222 list-style-image: url("chrome://global/skin/menu/menu-radio-disabled.gif");
225 /* ::::: menuseparator ::::: */
228 border: 1px solid #9C9CFF;
232 menulist > menupopup > menuseparator {
233 border: 1px solid #9C9CFF;
237 /* ::::: autocomplete ::::: */
239 .autocomplete-history-popup > menuitem {
240 max-width: none !important;