1 /* ***** BEGIN LICENSE BLOCK *****
2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 * The contents of this file are subject to the Mozilla Public License Version
5 * 1.1 (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
7 * http://www.mozilla.org/MPL/
9 * Software distributed under the License is distributed on an "AS IS" basis,
10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 * for the specific language governing rights and limitations under the
14 * The Original Code is "Classic" theme of mozilla.org code.
16 * The Initial Developer of the Original Code is
17 * the Mozilla Organization.
18 * Portions created by the Initial Developer are Copyright (C) 1998-2001
19 * the Initial Developer. All Rights Reserved.
22 * Robert Kaiser <KaiRo@KaiRo.at>
24 * Alternatively, the contents of this file may be used under the terms of
25 * either the GNU General Public License Version 2 or later (the "GPL"), or
26 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27 * in which case the provisions of the GPL or the LGPL are applicable instead
28 * of those above. If you wish to allow use of your version of this file only
29 * under the terms of either the GPL or the LGPL, and not to allow others to
30 * use your version of this file under the terms of the MPL, indicate your
31 * decision by deleting the provisions above and replace them with the notice
32 * and other provisions required by the GPL or the LGPL. If you do not delete
33 * the provisions above, a recipient may use your version of this file under
34 * the terms of any one of the MPL, the GPL or the LGPL.
36 * ***** END LICENSE BLOCK ***** */
38 /* ===== menu.css =======================================================
39 == Styles used by XUL menu-related elements.
40 ======================================================================= */
42 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
44 /* ::::: menu/menuitem ::::: */
48 -moz-box-align: center;
51 background-color: #000000;
53 list-style-image: none;
56 menuitem[default="true"] {
60 menu[_moz-menuactive="true"],
61 menuitem[_moz-menuactive="true"] {
62 background-color: #FFCF00;
66 menu[disabled="true"],
67 menuitem[disabled="true"],
68 menu[_moz-menuactive="true"][disabled="true"],
69 menuitem[_moz-menuactive="true"][disabled="true"] {
76 -moz-margin-start: 2px;
80 menubar > menu[_moz-menuactive="true"] {
81 background-color: #FFCF00;
86 menubar > menu[open] {
87 background-color: #FF9F00;
92 menuitem.spell-suggestion {
96 /* ::::: menu/menuitems in popups ::::: */
100 menupopup > menuitem,
105 /* ::::: menu/menuitems in menulist popups ::::: */
107 .menulist-menupopup > menuitem,
108 menulist > menupopup > menuitem,
109 .menulist-menupopup > menu,
110 menulist > menupopup > menu {
113 -moz-padding-start: 1px;
114 -moz-padding-end: 22px;
118 /* ..... internal content .... */
123 margin-top: 0px !important;
124 margin-bottom: 0px !important;
125 -moz-margin-start: 0px !important;
126 -moz-margin-end: 2px !important;
131 -moz-margin-start: 18px !important;
132 font-weight: inherit;
138 -moz-margin-start: 1ex !important;
143 margin-top: 0px !important;
144 margin-bottom: 0px !important;
145 -moz-margin-start: 7px !important;
146 -moz-margin-end: 2px !important;
147 -moz-padding-end: 14px;
165 -moz-margin-start: 3px;
166 -moz-margin-end: 0px;
168 list-style-image: url("chrome://global/skin/menu/menu-arrow.gif");
169 -moz-image-region: auto;
172 .menu-right[_moz-menuactive="true"] {
173 list-style-image: url("chrome://global/skin/menu/menu-arrow-hover.gif");
176 .menu-right[disabled="true"] {
177 list-style-image: url("chrome://global/skin/menu/menu-arrow-disabled.gif");
180 .menu-right[chromedir="rtl"] {
181 list-style-image: url("chrome://global/skin/menu/menu-arrow-rtl.gif");
184 .menu-right[chromedir="rtl"][_moz-menuactive="true"] {
185 list-style-image: url("chrome://global/skin/menu/menu-arrow-hover-rtl.gif");
188 .menu-right[chromedir="rtl"][disabled="true"] {
189 list-style-image: url("chrome://global/skin/menu/menu-arrow-disabled-rtl.gif");
195 -moz-margin-start: 0px;
196 -moz-margin-end: 2px;
201 margin: 0 1px !important;
205 .menulist-menupopup > menuitem > .menu-iconic-left,
206 menulist > menupopup > menuitem > .menu-iconic-left,
207 .menulist-menupopup > menu > .menu-iconic-left,
208 menulist > menupopup > menu > .menu-iconic-left {
212 /* ::::: checkbox menuitem ::::: */
214 menuitem[checked="true"] { /* [type="checkbox"] */
215 list-style-image: url("chrome://global/skin/menu/menu-check.gif");
218 menuitem[checked="true"][_moz-menuactive="true"] {
219 list-style-image: url("chrome://global/skin/menu/menu-check-hover.gif");
222 menuitem[checked="true"][disabled="true"] {
223 list-style-image: url("chrome://global/skin/menu/menu-check-disabled.gif");
226 /* ::::: radio menuitem ::::: */
228 menuitem[checked="true"][type="radio"] {
229 list-style-image: url("chrome://global/skin/menu/menu-radio.gif");
232 menuitem[checked="true"][type="radio"][_moz-menuactive="true"] {
233 list-style-image: url("chrome://global/skin/menu/menu-radio-hover.gif");
236 menuitem[checked="true"][type="radio"][disabled="true"] {
237 list-style-image: url("chrome://global/skin/menu/menu-radio-disabled.gif");
240 /* ::::: menuseparator ::::: */
243 border: 1px solid #9C9CFF;
247 menulist > menupopup > menuseparator,
248 .menulist-menupopup > menuseparator {
249 border: 1px solid #9C9CFF;
253 /* ::::: autocomplete ::::: */
255 .autocomplete-history-popup > menuitem {
256 max-width: none !important;
259 /* ::::: tree column picker ::::: */
261 .treecell-popupcell-menu {
262 -moz-margin-start: -2px;
263 list-style-image: url("chrome://global/skin/tree/columnpicker.gif");