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 ::::: */
49 -moz-box-align: center;
52 list-style-image: none;
55 menuitem[default="true"] {
59 menu[_moz-menuactive="true"],
60 menuitem[_moz-menuactive="true"],
61 .splitmenu-menuitem[_moz-menuactive="true"] {
62 background-color: #336699;
66 menu[disabled="true"],
67 menuitem[disabled="true"],
68 .splitmenu-menuitem[disabled="true"],
69 menu[_moz-menuactive="true"][disabled="true"],
70 menuitem[_moz-menuactive="true"][disabled="true"],
71 .splitmenu-menuitem[_moz-menuactive="true"][disabled="true"] {
77 -moz-padding-start: 3px;
79 -moz-margin-start: 0px;
80 border: 1px solid #CCD0DD;
83 menubar > menu[_moz-menuactive="true"] {
84 background-color: #CCD0DD;
86 border: 1px outset #CCD0DD;
89 menubar > menu[open] {
90 background-color: #CCD0DD;
92 border: 1px inset #CCD0DD;
95 menubar > menu:-moz-lwtheme {
96 -moz-appearance: none;
99 menubar > menu:-moz-window-inactive {
103 menuitem.spell-suggestion {
107 /* ::::: menu/menuitems in popups ::::: */
111 menupopup > menuitem,
116 /* ::::: menu/menuitems in menulist popups ::::: */
118 .menulist-menupopup > menuitem,
119 menulist > menupopup > menuitem,
120 .menulist-menupopup > menu,
121 menulist > menupopup > menu {
126 /* ..... internal content .... */
131 margin-top: 0px !important;
132 margin-bottom: 0px !important;
133 -moz-margin-start: 0px !important;
134 -moz-margin-end: 2px !important;
139 -moz-margin-start: 18px !important;
140 font-weight: inherit;
146 -moz-margin-start: 1ex !important;
151 margin-top: 0px !important;
152 margin-bottom: 0px !important;
153 -moz-margin-start: 7px !important;
154 -moz-margin-end: 2px !important;
155 -moz-padding-end: 14px;
173 -moz-margin-start: 3px;
174 -moz-margin-end: 0px;
176 list-style-image: url("chrome://global/skin/menu/menu-arrow.gif");
177 -moz-image-region: auto;
180 .menu-right[_moz-menuactive="true"] {
181 list-style-image: url("chrome://global/skin/menu/menu-arrow-hover.gif");
184 .menu-right[disabled="true"] {
185 list-style-image: url("chrome://global/skin/menu/menu-arrow-disabled.gif");
188 .menu-right:-moz-locale-dir(rtl) {
189 list-style-image: url("chrome://global/skin/menu/menu-arrow-rtl.gif");
192 .menu-right:-moz-locale-dir(rtl)[_moz-menuactive="true"] {
193 list-style-image: url("chrome://global/skin/menu/menu-arrow-hover-rtl.gif");
196 .menu-right:-moz-locale-dir(rtl)[disabled="true"] {
197 list-style-image: url("chrome://global/skin/menu/menu-arrow-disabled-rtl.gif");
203 -moz-margin-start: 0px;
204 -moz-margin-end: 2px;
209 margin: 0 1px !important;
213 .menulist-menupopup > menuitem > .menu-iconic-left,
214 menulist > menupopup > menuitem > .menu-iconic-left,
215 .menulist-menupopup > menu > .menu-iconic-left,
216 menulist > menupopup > menu > .menu-iconic-left {
220 /* ::::: checkbox menuitem ::::: */
222 menuitem[checked="true"] { /* [type="checkbox"] */
223 list-style-image: url("chrome://global/skin/menu/menu-check.gif");
226 menuitem[checked="true"][_moz-menuactive="true"] {
227 list-style-image: url("chrome://global/skin/menu/menu-check-hover.gif");
230 menuitem[checked="true"][disabled="true"] {
231 list-style-image: url("chrome://global/skin/menu/menu-check-disabled.gif");
234 /* ::::: radio menuitem ::::: */
236 menuitem[checked="true"][type="radio"] {
237 list-style-image: url("chrome://global/skin/menu/menu-radio.gif");
240 menuitem[checked="true"][type="radio"][_moz-menuactive="true"] {
241 list-style-image: url("chrome://global/skin/menu/menu-radio-hover.gif");
244 menuitem[checked="true"][type="radio"][disabled="true"] {
245 list-style-image: url("chrome://global/skin/menu/menu-radio-disabled.gif");
248 /* ::::: menuseparator ::::: */
251 border: 1px inset #CCD0DD;
255 menulist > menupopup > menuseparator,
256 .menulist-menupopup > menuseparator {
257 border: 1px inset #CCD0DD;
261 /* ::::: autocomplete ::::: */
263 .autocomplete-history-popup > menuitem {
264 max-width: none !important;
267 /* ::::: tree column picker ::::: */
269 .treecell-popupcell-menu {
270 -moz-margin-start: -2px;
271 list-style-image: url("chrome://global/skin/tree/columnpicker.gif");