-
Notifications
You must be signed in to change notification settings - Fork 331
/
context_menus_more_proton.css
72 lines (68 loc) · 2.61 KB
/
context_menus_more_proton.css
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
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/context_menus_more_proton.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */
/* Adds more proton-like styling to context menus. Rounded rows, and more consistent padding. This is only going to work on Win10+ */
:root{
--arrowpanel-menuitem-margin: 0 8px;
--arrowpanel-menuitem-padding-block: 8px;
--arrowpanel-menuitem-padding-inline: 8px;
--arrowpanel-menuitem-border-radius: 4px;
--panel-separator-margin-vertical: 4px;
--button-hover-bgcolor: rgb(82, 82, 94);
}
:root[uidensity="compact"] menupopup:not(.in-menulist){
--panel-padding: 4px 0 !important;
--arrowpanel-menuitem-padding-block: 8px;
}
/* OPTIONAL Set custom context menu colors below */
/*
menupopup:not(.in-menulist){
--panel-background: #eb2a33 !important;
--panel-color: #4aa !important;
--panel-separator-color: #f00 !important;
--panel-border-color: ThreeDShadow !important;
}
menupopup > menuseparator{
border-color: var(--panel-separator-color,ThreeDShadow) !important;
}
*/
menupopup{
--panel-item-hover-bgcolor: var(--button-hover-bgcolor);
--panel-border-radius: var(--arrowpanel-border-radius) !important;
}
menupopup > menuitem,
menupopup > menu{
appearance: none !important;
margin: var(--arrowpanel-menuitem-margin) !important;
min-height: 24px !important;
padding: var(--arrowpanel-menuitem-padding-block) var(--arrowpanel-menuitem-padding-inline) !important;
border-radius: var(--arrowpanel-menuitem-border-radius) !important;
background-color: transparent !important;
}
#context-navigation{
padding-inline: var(--arrowpanel-menuitem-padding-inline) !important;
}
.menu-right{
margin-inline-end: initial !important;
}
menupopup:not(.in-menulist){
--panel-padding: var(--arrowpanel-menuitem-padding-block) 0 !important;
}
:root[uidensity="compact"] #context-navigation{
padding-block: 0 !important;
}
menuseparator:not(.in-menulist){
margin-block: var(--panel-separator-margin-vertical) !important;
}
#context-navigation > menuitem[_moz-menuactive] .menu-iconic-icon{
border-radius: var(--arrowpanel-menuitem-border-radius) !important;
}
#context-navigation > menuitem[_moz-menuactive]:not([disabled]) .menu-iconic-icon,
menupopup > menuitem[_moz-menuactive],
menupopup > menu[_moz-menuactive]{
background-color: var(--panel-item-hover-bgcolor) !important;
color: var(--panel-color,inherit) !important;
}
menupopup > menuitem[disabled][_moz-menuactive],
menupopup > menu[disabled][_moz-menuactive]{
background-color: var(--menuitem-disabled-hover-background-color) !important;
}