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 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
40 /* ===== menu.css =======================================================
41 == Styles used by XUL menu-related elements.
42 ======================================================================= */
44 /* ::::: menu/menuitem ::::: */
48 -moz-box-align: center;
50 background-color: #000000;
52 list-style-image: none;
55 menuitem[default="true"] {
59 menu[disabled="true"],
60 menuitem[disabled="true"],
61 menu[menuactive="true"][disabled="true"],
62 menuitem[menuactive="true"][disabled="true"] {
66 /* ..... internal content .... */
73 margin: 0px 2px 0px 0px !important;
78 margin-left: 18px !important;
93 list-style-image: inherit;
97 -moz-box-align: center;
98 -moz-box-pack: center;
103 /* ..... menu arrow box ..... */
106 margin: 0px 0px 0px 3px;
108 list-style-image: url("chrome://global/skin/menu/menu-arrow.gif");
111 .menu-right[menuactive="true"] {
112 list-style-image: url("chrome://global/skin/menu/menu-arrow-hover.gif");
115 .menu-right[disabled="true"] {
116 list-style-image: url("chrome://global/skin/menu/menu-arrow-disabled.gif") !important;
119 /* ::::: menu/menuitems in menubar ::::: */
122 padding: 2px 0px 2px 3px;
123 margin: 0px 0px 0px 2px;
127 menubar > menu[menuactive="true"] {
128 background-color: #FFCF00;
133 menubar > menu[menuactive="true"][open="true"] {
134 background-color: #FF9F00;
139 /* ..... internal content .... */
142 margin: 0px 2px 0px 0px;
147 margin: 0px 2px 0px 0px !important;
151 /* ::::: menu/menuitems in popups ::::: */
155 menupopup > menuitem,
161 menupopup > menu[menuactive="true"],
162 menupopup > menuitem[menuactive="true"],
163 popup > menu[menuactive="true"],
164 popup > menuitem[menuactive="true"] {
165 background-color: #FFCF00;
169 /* ::::: menu/menuitems in menulist popups ::::: */
171 .menulist-menupopup > menuitem,
172 menulist > menupopup > menuitem,
173 .menulist-menupopup > menu,
174 menulist > menupopup > menu {
175 border: 1px solid transparent;
176 padding: 1px 16px 1px 5px;
180 .menulist-menupopup > menuitem > .menu-iconic-left,
181 menulist > menupopup > menuitem > .menu-iconic-left,
182 .menulist-menupopup > menu > .menu-iconic-left,
183 menulist > menupopup > menu > .menu-iconic-left {
187 menulist > menupopup > menuitem[menuactive="true"] {
188 border: 1px dotted #FF9F00;
191 /* ::::: checkbox menuitem ::::: */
193 menuitem[checked="true"] {
194 list-style-image: url("chrome://global/skin/menu/menu-check.gif");
197 menuitem[checked="true"][disabled="true"] {
198 list-style-image: url("chrome://global/skin/menu/menu-check-disabled.gif");
201 menuitem[checked="true"][menuactive="true"] {
202 list-style-image: url("chrome://global/skin/menu/menu-check-hover.gif");
205 /* ::::: radio menuitem ::::: */
207 menuitem[checked="true"][type="radio"] {
208 list-style-image: url("chrome://global/skin/menu/menu-radio.gif");
211 menuitem[checked="true"][type="radio"][disabled="true"] {
212 list-style-image: url("chrome://global/skin/menu/menu-radio-disabled.gif");
215 menuitem[checked="true"][type="radio"][menuactive="true"] {
216 list-style-image: url("chrome://global/skin/menu/menu-radio-hover.gif");
219 /* ::::: menuseparator ::::: */
222 border: 1px solid #9C9CFF;
223 margin: 2px 0px 2px 0px;
226 menulist > menupopup > menuseparator,
227 .menulist-menupopup > menuseparator {
228 border: 1px solid #9C9CFF;
229 margin: 2px 0px 2px 0px;
232 /* ::::: autocomplete ::::: */
234 .autocomplete-history-popup > menuitem {
235 max-width: none !important;
238 .treecell-popupcell-menu {
240 list-style-image: url("chrome://global/skin/tree/columnpicker.gif");