-
Notifications
You must be signed in to change notification settings - Fork 336
/
iconized_places_context_menu.css
97 lines (95 loc) · 3.35 KB
/
iconized_places_context_menu.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
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
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/iconized_places_context_menu.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */
/* Adds icons to menuitems in context menus of bookmarks toolbar
* as well as bookmarks and history sidebars.
* Note that this won't work if you have native context menus,
* such as ones used on MacOS */
:where(#placesContext > menu:not(.menu-iconic))::before,
:where(#placesContext > menuitem:not(.menuitem-iconic))::before{
display: flex;
padding-inline-end: 8px;
padding-top: 2px;
width: 16px;
height: 16px;
align-items: center;
justify-content: center;
content: url("chrome://browser/skin/tab.svg");
-moz-context-properties: fill;
fill: currentColor;
}
:where(#placesContext > menu),
:where(#placesContext > menuitem){
padding-inline-start: 1em !important;
}
#placesContext > menuitem[type="checkbox"]::before{
content: url("chrome://devtools/skin/images/checkbox.svg");
}
#placesContext > menuitem[type="checkbox"] > .menu-iconic-left{
display: none;
}
#placesContext > menuitem[type="checkbox"][_moz-menuactive]::before,
#placesContext > menuitem[type="checkbox"][checked="true"]::before{
background: no-repeat center left url("chrome://global/skin/icons/check.svg");
}
#placesContext_openBookmarkContainer\:tabs::before,
#placesContext_openBookmarkLinks\:tabs::before{
content: url("chrome://global/skin/icons/edit-copy.svg");
}
#placesContext_open\:newtab::before{
content: url("chrome://global/skin/icons/open-in-new.svg");
}
#placesContext_openContainer\:tabs::before,
#placesContext_openLinks\:tabs::before{
content: url("chrome://global/skin/icons/edit-copy.svg");
}
#placesContext_open\:newwindow::before{
content: url("chrome://browser/skin/window.svg");
}
#placesContext_open\:newprivatewindow::before{
content: url("chrome://browser/skin/privateBrowsing.svg");
}
#placesContext_showInFolder::before,
#placesContext_new\:folder::before{
content: url("chrome://global/skin/icons/folder.svg");
}
#placesContext_show_bookmark\:info::before,
#placesContext_show\:info::before,
#placesContext_show_folder\:info::before{
content: url("chrome://global/skin/icons/edit.svg");
}
#placesContext_deleteFolder::before,
#placesContext_deleteBookmark::before,
#placesContext_delete::before,
#placesContext_delete_history::before{
content: url("chrome://global/skin/icons/delete.svg");
}
#placesContext_deleteHost::before{
content: url("chrome://browser/skin/forget.svg");
}
#placesContext_sortBy\:name::before{
content: url("chrome://browser/skin/sort.svg");
}
#placesContext_copy::before{
content: url("chrome://devtools/skin/images/copy.svg");
}
#placesContext_cut::before{
content: url("chrome://browser/skin/edit-cut.svg");
}
#placesContext_paste_group::before,
#placesContext_paste::before{
content: url("chrome://browser/skin/edit-paste.svg");
}
#placesContext_new\:bookmark::before,
#placesContext_createBookmark::before{
content: url("chrome://browser/skin/bookmark-hollow.svg");
}
#placesContext > #toggle_PersonalToolbar::before{
content: url("chrome://browser/skin/bookmarks-toolbar.svg");
}
#placesContext_showAllBookmarks::before{
content: url("chrome://browser/skin/library.svg");
}
#placesContext_new\:separator::before{
content: url("chrome://global/skin/reader/content-width-20.svg");
transform: scale(0.85);
}