some small adjustments to make it work better
[themes.git] / EarlyBlue / global / menu.css
1 /* ***** BEGIN LICENSE BLOCK *****
2  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
3  *
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/
8  *
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
12  * License.
13  *
14  * The Original Code is "Classic" theme of mozilla.org code.
15  *
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.
20  *
21  * Contributor(s):
22  *   Robert Kaiser <KaiRo@KaiRo.at>
23  *
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.
35  *
36  * ***** END LICENSE BLOCK ***** */
37
38 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
39
40 /* ===== menu.css =======================================================
41   == Styles used by XUL menu-related elements.
42   ======================================================================= */
43
44 /* ::::: menu/menuitem ::::: */
45
46 menu,
47 menuitem {
48   -moz-box-align: center;
49   color: #000000;
50   list-style-image: none;
51 }
52
53 menuitem[default="true"] {
54   font-weight: bold;
55 }
56
57 menu[disabled="true"],
58 menuitem[disabled="true"],
59 menu[_moz-menuactive="true"][disabled="true"],
60 menuitem[_moz-menuactive="true"][disabled="true"] {
61   color: #999999;
62 }
63
64 /* ..... internal content .... */
65
66 .menu-text,
67 .menu-iconic-left,
68 .menu-iconic-text {
69   margin: 0px 2px 0px 0px !important;
70   color: inherit;
71 }
72
73 .menu-text {
74   margin-left: 18px !important;
75   font-weight: inherit;
76 }
77
78 .menu-description {
79   font-style: italic;
80   color: #808080;
81   margin-left: 1ex !important;
82 }
83
84 .menu-accel,
85 .menu-iconic-accel {
86   margin: 0px 2px 0px 7px !important;
87   padding-right: 14px;
88   color: inherit;
89 }
90
91 menuitem[type="checkbox"] > .menu-iconic-left > .menu-iconic-icon,
92 menuitem[type="radio"] > .menu-iconic-left > .menu-iconic-icon {
93 /*  width: 16px; */
94 }
95
96 .menu-iconic-left {
97   -moz-box-align: center;
98   -moz-box-pack: center;
99   width: 16px;
100 /*  height: 16px; */
101 }
102
103 /* ..... menu arrow box ..... */
104
105 .menu-right {
106   margin: 0px 0px 0px 3px;
107   width: 8px;
108   list-style-image: url("chrome://global/skin/menu/menu-arrow.gif");
109 }
110
111 .menu-right[_moz-menuactive="true"] {
112   list-style-image: url("chrome://global/skin/menu/menu-arrow-hover.gif");
113 }
114
115 .menu-right[disabled="true"] {
116   list-style-image: url("chrome://global/skin/menu/menu-arrow-disabled.gif") !important;
117 }
118
119 /* ::::: menu/menuitems in menubar ::::: */
120
121 menubar > menu {
122   padding: 2px 0px 2px 3px;
123   margin: 0px 2px 0px 0px;
124   border: 1px solid #CCD0DD;
125 }
126
127 menubar > menu[_moz-menuactive="true"] {
128   border: 1px outset #CCD0DD;
129 }
130
131 menubar > menu[_moz-menuactive="true"][open="true"] {
132   border: 1px inset #CCD0DD;
133 }
134
135 /* ..... internal content .... */
136
137 .menubar-left {
138   margin: 0px 2px 0px 0px;
139   color: inherit;
140 }
141
142 .menubar-text {
143   margin: 0px 2px 0px 0px !important;
144   color: inherit;
145 }
146
147 /* ::::: menu/menuitems in popups ::::: */
148
149 menupopup > menu,
150 popup > menu,
151 menupopup > menuitem,
152 popup > menuitem {
153   padding: 2px;
154   max-width: 42em;
155 }
156
157 menupopup > menu[_moz-menuactive="true"],
158 menupopup > menuitem[_moz-menuactive="true"],
159 popup > menu[_moz-menuactive="true"],
160 popup > menuitem[_moz-menuactive="true"] {
161   background-color: #336699;
162   color: #FFFFFF;
163 }
164
165 /* ::::: menu/menuitems in menulist popups ::::: */
166
167 .menulist-menupopup > menuitem,
168 menulist > menupopup > menuitem,
169 .menulist-menupopup > menu,
170 menulist > menupopup > menu {
171   border: 1px solid transparent;
172   padding: 1px 22px 1px 1px;
173   max-width: none;
174 }
175
176 menulist > menupopup > menuitem[_moz-menuactive="true"] {
177   border: 1px dotted #666699;
178 }
179
180 /* ::::: checkbox menuitem ::::: */
181
182 menuitem[checked="true"] {
183   list-style-image: url("chrome://global/skin/menu/menu-check.gif");
184 }
185
186 menuitem[checked="true"][disabled="true"] {
187   list-style-image: url("chrome://global/skin/menu/menu-check-disabled.gif");
188 }
189
190 menuitem[checked="true"][_moz-menuactive="true"] {
191   list-style-image: url("chrome://global/skin/menu/menu-check-hover.gif");
192 }
193
194 /* ::::: radio menuitem ::::: */
195
196 menuitem[checked="true"][type="radio"] {
197   list-style-image: url("chrome://global/skin/menu/menu-radio.gif");
198 }
199
200 menuitem[checked="true"][type="radio"][disabled="true"] {
201   list-style-image: url("chrome://global/skin/menu/menu-radio-disabled.gif");
202 }
203
204 menuitem[checked="true"][type="radio"][_moz-menuactive="true"] {
205   list-style-image: url("chrome://global/skin/menu/menu-radio-hover.gif");
206 }
207
208 /* ::::: menuseparator ::::: */
209
210 menuseparator {
211   border: 1px inset #CCD0DD;
212   margin: 2px 0px 2px 0px;
213 }
214
215 menulist > menupopup > menuseparator,
216 .menulist-menupopup > menuseparator {
217   border: 1px inset #CCD0DD;
218   margin: 2px 0px 2px 0px;
219 }
220
221 /* ::::: autocomplete ::::: */
222
223 .autocomplete-history-popup > menuitem {
224   max-width: none !important;
225 }
226
227 .treecell-popupcell-menu {
228   margin-left: -2px;
229   list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
230 }