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