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 background-color: #000000;
54 list-style-image: none;
57 menuitem[default="true"] {
61 menu[_moz-menuactive="true"],
62 menuitem[_moz-menuactive="true"],
63 .splitmenu-menuitem[_moz-menuactive="true"] {
64 background-color: #FFCF00;
68 menu[disabled="true"],
69 menuitem[disabled="true"],
70 .splitmenu-menuitem[disabled="true"],
71 menu[_moz-menuactive="true"][disabled="true"],
72 menuitem[_moz-menuactive="true"][disabled="true"],
73 .splitmenu-menuitem[_moz-menuactive="true"][disabled="true"] {
80 -moz-margin-start: 2px;
84 menubar > menu[_moz-menuactive="true"] {
85 background-color: #FFCF00;
90 menubar > menu[open] {
91 background-color: #FF9F00;
96 menubar > menu:-moz-lwtheme {
97 -moz-appearance: none;
100 menubar > menu:-moz-window-inactive {
104 menuitem.spell-suggestion {
108 /* ::::: menu/menuitems in popups ::::: */
112 menupopup > menuitem,
117 /* ::::: menu/menuitems in menulist popups ::::: */
119 .menulist-menupopup > menuitem,
120 menulist > menupopup > menuitem,
121 .menulist-menupopup > menu,
122 menulist > menupopup > menu {
127 /* ..... internal content .... */
132 margin-top: 0px !important;
133 margin-bottom: 0px !important;
134 -moz-margin-start: 0px !important;
135 -moz-margin-end: 2px !important;
140 -moz-margin-end: 3px !important;
144 -moz-margin-start: 19px !important;
145 font-weight: inherit;
151 -moz-margin-start: 1ex !important;
156 margin-top: 0px !important;
157 margin-bottom: 0px !important;
158 -moz-margin-start: 7px !important;
159 -moz-margin-end: 2px !important;
160 -moz-padding-end: 14px;
178 -moz-margin-start: 3px;
179 -moz-margin-end: 0px;
181 list-style-image: url("chrome://global/skin/menu/menu-arrow.gif");
182 -moz-image-region: auto;
185 .menu-right[_moz-menuactive="true"] {
186 list-style-image: url("chrome://global/skin/menu/menu-arrow-hover.gif");
189 .menu-right[disabled="true"] {
190 list-style-image: url("chrome://global/skin/menu/menu-arrow-disabled.gif");
193 .menu-right:-moz-locale-dir(rtl) {
194 list-style-image: url("chrome://global/skin/menu/menu-arrow-rtl.gif");
197 .menu-right:-moz-locale-dir(rtl)[_moz-menuactive="true"] {
198 list-style-image: url("chrome://global/skin/menu/menu-arrow-hover-rtl.gif");
201 .menu-right:-moz-locale-dir(rtl)[disabled="true"] {
202 list-style-image: url("chrome://global/skin/menu/menu-arrow-disabled-rtl.gif");
208 -moz-margin-start: 0px;
209 -moz-margin-end: 2px;
214 margin: 0 1px !important;
218 .menulist-menupopup > menuitem > .menu-iconic-left,
219 menulist > menupopup > menuitem > .menu-iconic-left,
220 .menulist-menupopup > menu > .menu-iconic-left,
221 menulist > menupopup > menu > .menu-iconic-left {
225 /* ::::: checkbox menuitem ::::: */
227 menuitem[checked="true"] { /* [type="checkbox"] */
228 list-style-image: url("chrome://global/skin/menu/menu-check.gif");
231 menuitem[checked="true"][_moz-menuactive="true"] {
232 list-style-image: url("chrome://global/skin/menu/menu-check-hover.gif");
235 menuitem[checked="true"][disabled="true"] {
236 list-style-image: url("chrome://global/skin/menu/menu-check-disabled.gif");
239 /* ::::: radio menuitem ::::: */
241 menuitem[checked="true"][type="radio"] {
242 list-style-image: url("chrome://global/skin/menu/menu-radio.gif");
245 menuitem[checked="true"][type="radio"][_moz-menuactive="true"] {
246 list-style-image: url("chrome://global/skin/menu/menu-radio-hover.gif");
249 menuitem[checked="true"][type="radio"][disabled="true"] {
250 list-style-image: url("chrome://global/skin/menu/menu-radio-disabled.gif");
253 /* ::::: menuseparator ::::: */
256 border: 1px solid #9C9CFF;
260 menulist > menupopup > menuseparator,
261 .menulist-menupopup > menuseparator {
262 border: 1px solid #9C9CFF;
266 /* ::::: autocomplete ::::: */
268 .autocomplete-history-popup > menuitem {
269 max-width: none !important;
272 /* ::::: tree column picker ::::: */
274 .treecell-popupcell-menu {
275 -moz-margin-start: -2px;
276 list-style-image: url("chrome://global/skin/tree/columnpicker.gif");