1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
|
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
@import url("chrome://global/skin/menu-scrolling.css");
/* ===== menu.css =======================================================
== Styles used by XUL menu-related elements.
======================================================================= */
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* ::::: menu/menuitem ::::: */
menupopup,
menubar {
font: menu;
}
menu,
menuitem,
menucaption {
appearance: auto;
-moz-default-appearance: menuitem;
-moz-box-align: center;
padding: 4px 6px;
max-width: 42em;
list-style-image: none;
-moz-image-region: auto;
/* Specify our background to avoid triggering reflows on hover. This is an
* optimization, as backgrounds don't disable theming on XUL elements, but
* also papers over bug 1653832. */
background-color: initial;
}
menu:where([_moz-menuactive="true"]),
menuitem:where([_moz-menuactive="true"]) {
color: -moz-menuhovertext;
background-color: -moz-menuhover;
}
menuitem[customoptionstyling="true"],
menucaption[customoptionstyling="true"] {
appearance: none;
}
menu:where([disabled="true"]),
menuitem:where([disabled="true"]),
menucaption:where([disabled="true"]) {
color: GrayText;
}
menubar > menu {
padding: .3em .4em;
}
menubar:-moz-lwtheme > menu {
appearance: none;
text-shadow: none;
}
menubar:-moz-lwtheme > menu:not([open]) {
text-shadow: inherit;
}
menubar > menu:not([open], [disabled="true"]) {
color: inherit;
}
menubar > menu[open] {
color: -moz-menubarhovertext;
background-color: -moz-menuhover;
}
menuitem[default="true"],
menuitem.spell-suggestion,
menucaption {
font-weight: bold;
}
/* ::::: menu/menuitems in menulist popups ::::: */
menulist > menupopup {
font: inherit;
}
menulist > menupopup > :is(menuitem, menucaption, menu) {
max-width: none;
}
/* ..... internal content .... */
.menu-text,
.menu-iconic-left,
.menu-iconic-text {
margin-top: 0 !important;
margin-bottom: 0 !important;
margin-inline-start: 0 !important;
margin-inline-end: 2px !important;
}
.menu-text {
/* This is (18 + the size of end-padding on .menu-iconic-left)px */
margin-inline-start: 21px !important;
}
.menu-accel,
.menu-iconic-accel {
margin-top: 0 !important;
margin-bottom: 0 !important;
margin-inline-start: 7px !important;
}
.menu-accel-container {
-moz-box-pack: end;
}
.menu-iconic-left {
min-width: 16px;
/* We can only hardcode this, to make the default GTK icon<->label spacing */
padding-inline-end: 3px !important;
}
.menu-iconic-icon {
width: 16px;
height: 16px;
}
.menu-right {
margin-top: 0;
margin-bottom: 0;
margin-inline-start: 6px;
margin-inline-end: 0;
width: 1ex;
height: 1ex;
/* These next two rules are needed to prevent inheritance and thus ugliness */
list-style-image: none;
-moz-image-region: auto;
appearance: auto;
-moz-default-appearance: menuarrow;
}
.menubar-left {
margin-top: 0;
margin-bottom: 0;
margin-inline-start: 0;
margin-inline-end: 2px;
}
.menubar-text {
margin: 0 1px !important;
}
menulist > menupopup > :is(menuitem, menucaption, menu) > .menu-iconic-left {
display: none;
}
/* ::::: checkbox menuitem ::::: */
menuitem:is([type="checkbox"], [checked="true"]) {
appearance: auto !important;
-moz-default-appearance: checkmenuitem !important;
}
/* ::::: radio menuitem ::::: */
menuitem[type="radio"] {
appearance: auto !important;
-moz-default-appearance: radiomenuitem !important;
}
/* ::::: menuseparator ::::: */
menuseparator {
appearance: auto;
-moz-default-appearance: menuseparator;
}
|