start 2.41 cycle (yes, leaving out 2.39 and 2.40)
[themes.git] / EarlyBlue / global / menu.css
CommitLineData
9099c61d
RK
1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
128000f4 4
74d14f90 5/* ===== menu.css =======================================================
6 == Styles used by XUL menu-related elements.
7 ======================================================================= */
8
df8c26c4
RK
9@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
10
74d14f90 11/* ::::: menu/menuitem ::::: */
12
76983f4c 13menu,
8a933f1e 14menuitem,
ed351b91 15menucaption,
8a933f1e 16.splitmenu-menuitem {
74d14f90 17 -moz-box-align: center;
df8c26c4 18 max-width: 42em;
74d14f90 19 color: #000000;
20 list-style-image: none;
ac5a507f 21 -moz-image-region: auto;
74d14f90 22}
23
24menuitem[default="true"] {
25 font-weight: bold;
76983f4c 26}
74d14f90 27
df8c26c4 28menu[_moz-menuactive="true"],
8a933f1e
RK
29menuitem[_moz-menuactive="true"],
30.splitmenu-menuitem[_moz-menuactive="true"] {
df8c26c4
RK
31 background-color: #336699;
32 color: #FFFFFF;
33}
34
74d14f90 35menu[disabled="true"],
36menuitem[disabled="true"],
8a933f1e 37.splitmenu-menuitem[disabled="true"],
7c110a07 38menu[_moz-menuactive="true"][disabled="true"],
8a933f1e
RK
39menuitem[_moz-menuactive="true"][disabled="true"],
40.splitmenu-menuitem[_moz-menuactive="true"][disabled="true"] {
74d14f90 41 color: #999999;
42}
43
df8c26c4 44menubar > menu {
938117ba
RK
45 padding: 2px 1px;
46 -moz-padding-start: 2px;
02920d2b
RK
47 margin: 0px 2px;
48 -moz-margin-start: 0px;
df8c26c4
RK
49 border: 1px solid #CCD0DD;
50}
51
52menubar > menu[_moz-menuactive="true"] {
53 background-color: #CCD0DD;
54 color: #000000;
55 border: 1px outset #CCD0DD;
56}
57
58menubar > menu[open] {
59 background-color: #CCD0DD;
60 color: #000000;
61 border: 1px inset #CCD0DD;
62}
63
35775405
RK
64menubar > menu:-moz-lwtheme {
65 -moz-appearance: none;
66}
67
68menubar > menu:-moz-window-inactive {
69 color: #808080;
70}
71
df8c26c4
RK
72menuitem.spell-suggestion {
73 font-weight: bold;
74}
75
76/* ::::: menu/menuitems in popups ::::: */
77
78menupopup > menu,
79popup > menu,
80menupopup > menuitem,
ed351b91
RK
81popup > menuitem,
82menupopup > menucaption {
df8c26c4
RK
83 padding: 2px;
84}
85
86/* ::::: menu/menuitems in menulist popups ::::: */
87
df8c26c4 88menulist > menupopup > menuitem,
ed351b91 89menulist > menupopup > menucaption,
df8c26c4 90menulist > menupopup > menu {
569543b3 91 padding: 1px 5px;
df8c26c4
RK
92 max-width: none;
93}
94
74d14f90 95/* ..... internal content .... */
96
76983f4c 97.menu-text,
74d14f90 98.menu-iconic-left,
9ca9f6bd 99.menu-iconic-text {
df8c26c4
RK
100 margin-top: 0px !important;
101 margin-bottom: 0px !important;
102 -moz-margin-start: 0px !important;
103 -moz-margin-end: 2px !important;
74d14f90 104 color: inherit;
105}
106
938117ba
RK
107.menu-iconic-left {
108 -moz-margin-end: 3px !important;
109}
110
74d14f90 111.menu-text {
938117ba 112 -moz-margin-start: 19px !important;
74d14f90 113 font-weight: inherit;
114}
115
ed351b91
RK
116menucaption > .menu-text,
117menucaption > .menu-iconic-text {
118 font-weight: bold;
119 -moz-padding-start: 0 !important;
120}
121
76983f4c 122.menu-description {
123 font-style: italic;
124 color: #808080;
df8c26c4 125 -moz-margin-start: 1ex !important;
76983f4c 126}
127
9ca9f6bd 128.menu-accel,
74d14f90 129.menu-iconic-accel {
df8c26c4
RK
130 margin-top: 0px !important;
131 margin-bottom: 0px !important;
132 -moz-margin-start: 7px !important;
133 -moz-margin-end: 2px !important;
134 -moz-padding-end: 14px;
9ca9f6bd 135 color: inherit;
74d14f90 136}
137
4d12b027
RK
138.menu-iconic-icon {
139/*
140 width: 16px;
141 height: 16px;
142*/
143}
144
74d14f90 145.menu-iconic-left {
74d14f90 146 width: 16px;
74d14f90 147}
148
74d14f90 149.menu-right {
df8c26c4
RK
150 margin-top: 0px;
151 margin-bottom: 0px;
152 -moz-margin-start: 3px;
153 -moz-margin-end: 0px;
74d14f90 154 width: 8px;
155 list-style-image: url("chrome://global/skin/menu/menu-arrow.gif");
ddc494fc 156 -moz-image-region: auto;
74d14f90 157}
158
7c110a07 159.menu-right[_moz-menuactive="true"] {
74d14f90 160 list-style-image: url("chrome://global/skin/menu/menu-arrow-hover.gif");
161}
162
163.menu-right[disabled="true"] {
df8c26c4 164 list-style-image: url("chrome://global/skin/menu/menu-arrow-disabled.gif");
74d14f90 165}
166
18f5421a 167.menu-right:-moz-locale-dir(rtl) {
df8c26c4 168 list-style-image: url("chrome://global/skin/menu/menu-arrow-rtl.gif");
74d14f90 169}
170
18f5421a 171.menu-right:-moz-locale-dir(rtl)[_moz-menuactive="true"] {
df8c26c4 172 list-style-image: url("chrome://global/skin/menu/menu-arrow-hover-rtl.gif");
74d14f90 173}
174
18f5421a 175.menu-right:-moz-locale-dir(rtl)[disabled="true"] {
df8c26c4 176 list-style-image: url("chrome://global/skin/menu/menu-arrow-disabled-rtl.gif");
74d14f90 177}
178
74d14f90 179.menubar-left {
df8c26c4
RK
180 margin-top: 0px;
181 margin-bottom: 0px;
182 -moz-margin-start: 0px;
183 -moz-margin-end: 2px;
74d14f90 184 color: inherit;
185}
186
187.menubar-text {
df8c26c4 188 margin: 0 1px !important;
74d14f90 189 color: inherit;
190}
191
df8c26c4 192menulist > menupopup > menuitem > .menu-iconic-left,
ed351b91 193menulist > menupopup > menucaption > .menu-iconic-left,
df8c26c4
RK
194menulist > menupopup > menu > .menu-iconic-left {
195 display: none;
74d14f90 196}
197
198/* ::::: checkbox menuitem ::::: */
199
df8c26c4 200menuitem[checked="true"] { /* [type="checkbox"] */
74d14f90 201 list-style-image: url("chrome://global/skin/menu/menu-check.gif");
202}
203
7c110a07 204menuitem[checked="true"][_moz-menuactive="true"] {
74d14f90 205 list-style-image: url("chrome://global/skin/menu/menu-check-hover.gif");
206}
207
1697de53 208menuitem[checked="true"][disabled="true"] {
209 list-style-image: url("chrome://global/skin/menu/menu-check-disabled.gif");
210}
211
74d14f90 212/* ::::: radio menuitem ::::: */
213
214menuitem[checked="true"][type="radio"] {
215 list-style-image: url("chrome://global/skin/menu/menu-radio.gif");
216}
217
7c110a07 218menuitem[checked="true"][type="radio"][_moz-menuactive="true"] {
74d14f90 219 list-style-image: url("chrome://global/skin/menu/menu-radio-hover.gif");
220}
221
1697de53 222menuitem[checked="true"][type="radio"][disabled="true"] {
223 list-style-image: url("chrome://global/skin/menu/menu-radio-disabled.gif");
224}
225
74d14f90 226/* ::::: menuseparator ::::: */
227
228menuseparator {
76983f4c 229 border: 1px inset #CCD0DD;
df8c26c4 230 margin: 2px 0px;
74d14f90 231}
232
e82e1bf4 233menulist > menupopup > menuseparator {
76983f4c 234 border: 1px inset #CCD0DD;
df8c26c4 235 margin: 2px 0px;
74d14f90 236}
237
238/* ::::: autocomplete ::::: */
239
240.autocomplete-history-popup > menuitem {
241 max-width: none !important;
242}
243
df8c26c4
RK
244/* ::::: tree column picker ::::: */
245
74d14f90 246.treecell-popupcell-menu {
8caa872d 247 -moz-margin-start: -2px;
259c0f10 248 list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
d2f0d128 249}