db42afae2092d566788215d51a09bd9762855ef1
[themes.git] / LCARStrek / 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   background-color: #000000;
51   color: #FF9F00;
52   list-style-image: none;
53 }
54
55 menuitem[default="true"] {
56   font-weight: bold;
57 }  
58
59 menu[disabled="true"],
60 menuitem[disabled="true"],
61 menu[menuactive="true"][disabled="true"],
62 menuitem[menuactive="true"][disabled="true"] {
63   color: #8050B0;
64 }
65
66 /* ..... internal content .... */
67
68 .menu-text, 
69 .menu-accel,
70 .menu-iconic-left,
71 .menu-iconic-text,
72 .menu-iconic-accel {
73   margin: 0px 2px 0px 0px !important;
74   color: inherit;
75 }
76
77 .menu-text {
78   margin-left: 18px !important;
79   font-weight: inherit;
80 }
81
82 .menu-accel {
83   margin-left: 4px;
84   padding-right: 14px;
85 }
86
87 .menu-iconic-accel {
88   margin-left: 4px;
89   padding-right: 14px;
90 }
91
92 .menu-iconic-icon {
93   list-style-image: inherit;
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[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 0px 0px 2px;
124   border: none;
125 }
126
127 menubar > menu[menuactive="true"] {
128   background-color: #FFCF00;
129   color: #000000;
130   border: none;
131 }
132
133 menubar > menu[menuactive="true"][open="true"] {
134   background-color: #FF9F00;
135   color: #000000;
136   border: none;
137 }
138
139 /* ..... internal content .... */
140
141 .menubar-left {
142   margin: 0px 2px 0px 0px;
143   color: inherit;
144 }
145
146 .menubar-text {
147   margin: 0px 2px 0px 0px !important;
148   color: inherit;
149 }
150
151 /* ::::: menu/menuitems in popups ::::: */
152
153 menupopup > menu,
154 popup > menu,
155 menupopup > menuitem,
156 popup > menuitem {
157   padding: 2px;
158   max-width: 42em;
159 }
160
161 menupopup > menu[menuactive="true"],
162 menupopup > menuitem[menuactive="true"],
163 popup > menu[menuactive="true"],
164 popup > menuitem[menuactive="true"] {
165   background-color: #FFCF00;
166   color: #000000;
167 }
168
169 /* ::::: menu/menuitems in menulist popups ::::: */
170
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;
177   max-width: none;
178 }
179
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 {
184   display: none;
185 }
186
187 menulist > menupopup > menuitem[menuactive="true"] {
188   border: 1px dotted #FF9F00;
189 }
190
191 /* ::::: checkbox menuitem ::::: */
192
193 menuitem[checked="true"] {
194   list-style-image: url("chrome://global/skin/menu/menu-check.gif");
195 }
196
197 menuitem[checked="true"][disabled="true"] {
198   list-style-image: url("chrome://global/skin/menu/menu-check-disabled.gif");
199 }
200
201 menuitem[checked="true"][menuactive="true"] {
202    list-style-image: url("chrome://global/skin/menu/menu-check-hover.gif");
203 }
204
205 /* ::::: radio menuitem ::::: */
206
207 menuitem[checked="true"][type="radio"] {
208   list-style-image: url("chrome://global/skin/menu/menu-radio.gif");
209 }
210
211 menuitem[checked="true"][type="radio"][disabled="true"] {
212   list-style-image: url("chrome://global/skin/menu/menu-radio-disabled.gif");
213 }
214
215 menuitem[checked="true"][type="radio"][menuactive="true"] {
216   list-style-image: url("chrome://global/skin/menu/menu-radio-hover.gif");
217 }
218
219 /* ::::: menuseparator ::::: */
220
221 menuseparator {
222   border: 1px solid #9C9CFF; 
223   margin: 2px 0px 2px 0px;
224 }
225
226 menulist > menupopup > menuseparator,
227 .menulist-menupopup > menuseparator {
228   border: 1px solid #9C9CFF; 
229   margin: 2px 0px 2px 0px;
230 }
231
232 /* ::::: autocomplete ::::: */
233
234 .autocomplete-history-popup > menuitem {
235   max-width: none !important;
236 }
237
238 .treecell-popupcell-menu {
239   margin-left: -2px;
240   list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
241 }