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
|
/* 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-shared.css");
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* Internal content */
.menu-text,
.menu-iconic-text,
.menu-accel,
.menu-iconic-accel {
margin: 0;
}
.menu-iconic-icon {
height: 16px;
margin-block: -2px;
margin-inline-end: 6px;
/* Empty icons shouldn't take up room, so we need to compensate
* the 6px margin-end with a negative margin-start.
*/
margin-inline-start: -6px;
}
/* menuitems with icons */
.menuitem-iconic > .menu-iconic-left > .menu-iconic-icon,
.menu-iconic > .menu-iconic-left > .menu-iconic-icon,
menuitem[image] > .menu-iconic-left > .menu-iconic-icon {
margin-inline-start: 0;
width: 16px;
}
/* menu/menuitems in menubar */
menubar > menu {
appearance: none;
padding-block: 2px;
padding-inline: 7px 5px;
margin: 1px 0;
}
menubar > menu[_moz-menuactive="true"] {
color: inherit;
background-color: transparent;
}
menubar > menu[_moz-menuactive="true"][open="true"] {
color: -moz-menuhovertext;
background-color: -moz-menuhover;
}
/* Internal content */
.menubar-left {
margin: 0 2px;
}
.menubar-text {
margin: 0 1px;
}
/* menu/menuitems in popups */
menupopup > menu,
menupopup > menuitem,
menupopup > menucaption {
max-width: 42em;
}
/* menu/menuitems in menulist popups */
menulist > menupopup {
font: inherit;
color: FieldText;
}
menulist > menupopup > menuitem,
menulist > menupopup > menucaption,
menulist > menupopup > menu {
max-width: none;
}
/* checked menuitems */
menupopup[needsgutter] {
/* although only menuitems may be checked, apply this to
menus and menucaptions as well to maintain alignment */
> menu,
> menuitem,
> menucaption {
padding-inline-start: 0;
&::before {
content: '\2713'; /* a checkmark */
display: inline-block;
vertical-align: middle;
line-height: 0;
visibility: hidden;
padding-inline: 4px;
font-weight: bold;
}
}
> menuitem:is([checked="true"], [selected="true"])::before {
visibility: inherit;
}
}
|