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 list-style-image: none;
53 menuitem[default="true"] {
57 menu[disabled="true"],
58 menuitem[disabled="true"],
59 menu[menuactive="true"][disabled="true"],
60 menuitem[menuactive="true"][disabled="true"] {
64 /* ..... internal content .... */
71 margin: 0px 2px 0px 0px !important;
76 margin-left: 18px !important;
91 list-style-image: inherit;
95 -moz-box-align: center;
96 -moz-box-pack: center;
101 /* ..... menu arrow box ..... */
104 margin: 0px 0px 0px 3px;
106 list-style-image: url("chrome://global/skin/menu/menu-arrow.gif");
109 .menu-right[menuactive="true"] {
110 list-style-image: url("chrome://global/skin/menu/menu-arrow-hover.gif");
113 .menu-right[disabled="true"] {
114 list-style-image: url("chrome://global/skin/menu/menu-arrow-disabled.gif") !important;
117 /* ::::: menu/menuitems in menubar ::::: */
120 padding: 2px 0px 2px 3px;
121 margin: 0px 2px 0px 0px;
122 border: 1px solid #CCD0DD;
125 menubar > menu[menuactive="true"] {
126 border: 1px outset #CCD0DD;
129 menubar > menu[menuactive="true"][open="true"] {
130 border: 1px inset #CCD0DD;
133 /* ..... internal content .... */
136 margin: 0px 2px 0px 0px;
141 margin: 0px 2px 0px 0px !important;
145 /* ::::: menu/menuitems in popups ::::: */
149 menupopup > menuitem,
155 menupopup > menu[menuactive="true"],
156 menupopup > menuitem[menuactive="true"],
157 popup > menu[menuactive="true"],
158 popup > menuitem[menuactive="true"] {
159 background-color: #336699;
163 /* ::::: menu/menuitems in menulist popups ::::: */
165 .menulist-menupopup > menuitem,
166 menulist > menupopup > menuitem,
167 .menulist-menupopup > menu,
168 menulist > menupopup > menu {
169 border: 1px solid transparent;
170 padding: 1px 16px 1px 5px;
172 /* font-size: smaller;
173 color: -moz-FieldText */
176 .menulist-menupopup > menuitem > .menu-iconic-left,
177 menulist > menupopup > menuitem > .menu-iconic-left,
178 .menulist-menupopup > menu > .menu-iconic-left,
179 menulist > menupopup > menu > .menu-iconic-left {
183 menulist > menupopup > menuitem[menuactive="true"] {
184 border: 1px dotted #666699;
187 /* ::::: checkbox menuitem ::::: */
189 menuitem[checked="true"] {
190 list-style-image: url("chrome://global/skin/menu/menu-check.gif");
193 menuitem[checked="true"][disabled="true"] {
194 list-style-image: url("chrome://global/skin/menu/menu-check-disabled.gif");
197 menuitem[checked="true"][menuactive="true"] {
198 list-style-image: url("chrome://global/skin/menu/menu-check-hover.gif");
201 /* ::::: radio menuitem ::::: */
203 menuitem[checked="true"][type="radio"] {
204 list-style-image: url("chrome://global/skin/menu/menu-radio.gif");
207 menuitem[checked="true"][type="radio"][disabled="true"] {
208 list-style-image: url("chrome://global/skin/menu/menu-radio-disabled.gif");
211 menuitem[checked="true"][type="radio"][menuactive="true"] {
212 list-style-image: url("chrome://global/skin/menu/menu-radio-hover.gif");
215 /* ::::: menuseparator ::::: */
218 border: 1px inset #CCD0DD;
219 margin: 2px 0px 2px 0px;
222 menulist > menupopup > menuseparator,
223 .menulist-menupopup > menuseparator {
224 border: 1px inset #CCD0DD;
225 margin: 2px 0px 2px 0px;
228 /* ::::: autocomplete ::::: */
230 .autocomplete-history-popup > menuitem {
231 max-width: none !important;
234 .treecell-popupcell-menu {
236 list-style-image: url("chrome://global/skin/tree/columnpicker.gif");