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[_moz-menuactive="true"][disabled="true"],
62 menuitem[_moz-menuactive="true"][disabled="true"] {
66 /* ..... internal content .... */
71 margin: 0px 2px 0px 0px !important;
76 margin-left: 18px !important;
82 margin: 0px 2px 0px 7px !important;
88 list-style-image: inherit;
92 -moz-box-align: center;
93 -moz-box-pack: center;
98 /* ..... menu arrow box ..... */
101 margin: 0px 0px 0px 3px;
103 list-style-image: url("chrome://global/skin/menu/menu-arrow.gif");
106 .menu-right[_moz-menuactive="true"] {
107 list-style-image: url("chrome://global/skin/menu/menu-arrow-hover.gif");
110 .menu-right[disabled="true"] {
111 list-style-image: url("chrome://global/skin/menu/menu-arrow-disabled.gif") !important;
114 /* ::::: menu/menuitems in menubar ::::: */
117 padding: 2px 0px 2px 3px;
118 margin: 0px 0px 0px 2px;
122 menubar > menu[_moz-menuactive="true"] {
123 background-color: #FFCF00;
128 menubar > menu[_moz-menuactive="true"][open="true"] {
129 background-color: #FF9F00;
134 /* ..... internal content .... */
137 margin: 0px 2px 0px 0px;
142 margin: 0px 2px 0px 0px !important;
146 /* ::::: menu/menuitems in popups ::::: */
150 menupopup > menuitem,
156 menupopup > menu[_moz-menuactive="true"],
157 menupopup > menuitem[_moz-menuactive="true"],
158 popup > menu[_moz-menuactive="true"],
159 popup > menuitem[_moz-menuactive="true"] {
160 background-color: #FFCF00;
164 /* ::::: menu/menuitems in menulist popups ::::: */
166 .menulist-menupopup > menuitem,
167 menulist > menupopup > menuitem,
168 .menulist-menupopup > menu,
169 menulist > menupopup > menu {
170 border: 1px solid transparent;
171 padding: 1px 30px 1px 5px;
175 .menulist-menupopup > menuitem > .menu-iconic-left,
176 menulist > menupopup > menuitem > .menu-iconic-left,
177 .menulist-menupopup > menu > .menu-iconic-left,
178 menulist > menupopup > menu > .menu-iconic-left {
182 menulist > menupopup > menuitem[_moz-menuactive="true"] {
183 border: 1px dotted #FF9F00;
186 /* ::::: checkbox menuitem ::::: */
188 menuitem[checked="true"] {
189 list-style-image: url("chrome://global/skin/menu/menu-check.gif");
192 menuitem[checked="true"][disabled="true"] {
193 list-style-image: url("chrome://global/skin/menu/menu-check-disabled.gif");
196 menuitem[checked="true"][_moz-menuactive="true"] {
197 list-style-image: url("chrome://global/skin/menu/menu-check-hover.gif");
200 /* ::::: radio menuitem ::::: */
202 menuitem[checked="true"][type="radio"] {
203 list-style-image: url("chrome://global/skin/menu/menu-radio.gif");
206 menuitem[checked="true"][type="radio"][disabled="true"] {
207 list-style-image: url("chrome://global/skin/menu/menu-radio-disabled.gif");
210 menuitem[checked="true"][type="radio"][_moz-menuactive="true"] {
211 list-style-image: url("chrome://global/skin/menu/menu-radio-hover.gif");
214 /* ::::: menuseparator ::::: */
217 border: 1px solid #9C9CFF;
218 margin: 2px 0px 2px 0px;
221 menulist > menupopup > menuseparator,
222 .menulist-menupopup > menuseparator {
223 border: 1px solid #9C9CFF;
224 margin: 2px 0px 2px 0px;
227 /* ::::: autocomplete ::::: */
229 .autocomplete-history-popup > menuitem {
230 max-width: none !important;
233 .treecell-popupcell-menu {
235 list-style-image: url("chrome://global/skin/tree/columnpicker.gif");