add list icon to bookmarks menu

This commit is contained in:
bmFtZQ 2021-05-14 17:52:08 +08:00 committed by GitHub
parent 095c9d0c8b
commit b22a751e2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 7 deletions

View file

@ -69,8 +69,9 @@
#bookmarks-menu-button, #bookmarks-menu-button,
#appMenu-library-bookmarks-button, #appMenu-library-bookmarks-button,
#panelMenu_toggleBookmarksMenu { #panelMenu_toggleBookmarksMenu,
list-style-image: url(star.svg) !important; #appMenu-bookmarks-button {
list-style-image: url(star.svg#list) !important;
} }
#library-button, #library-button,
@ -548,10 +549,6 @@ richlistitem[originaltype="loginsFooter"] .ac-site-icon,
list-style-image: url(new-private-window.svg) !important; list-style-image: url(new-private-window.svg) !important;
} }
#appMenu-bookmarks-button {
list-style-image: url(star.svg) !important;
}
#appMenu-history-button { #appMenu-history-button {
list-style-image: url(history.svg) !important; list-style-image: url(history.svg) !important;
} }

View file

@ -1,9 +1,10 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"> <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16">
<style> <style>
#fill:not(:target),#fill:target+path{display:none} path:not(:target,:last-child),path:target~:last-child{display:none}
</style> </style>
<g style="fill:context-fill;fill-opacity:context-fill-opacity"> <g style="fill:context-fill;fill-opacity:context-fill-opacity">
<path id="fill" d="M8 .342a.987.987 0 0 0-.896.556l-1.93 3.913-4.317.627a1 1 0 0 0-.554 1.705l3.123 3.045-.737 4.298a1 1 0 0 0 1.45 1.055L8 13.511l3.86 2.03a1 1 0 0 0 1.45-1.055l-.736-4.299 3.123-3.044a1 1 0 0 0-.554-1.705l-4.317-.627L8.896.898A.987.987 0 0 0 8 .342z"/> <path id="fill" d="M8 .342a.987.987 0 0 0-.896.556l-1.93 3.913-4.317.627a1 1 0 0 0-.554 1.705l3.123 3.045-.737 4.298a1 1 0 0 0 1.45 1.055L8 13.511l3.86 2.03a1 1 0 0 0 1.45-1.055l-.736-4.299 3.123-3.044a1 1 0 0 0-.554-1.705l-4.317-.627L8.896.898A.987.987 0 0 0 8 .342z"/>
<path id="list" d="M8.002.342A.992.992 0 0 0 7.104.9l-1.93 3.91-4.317.628a1.001 1.001 0 0 0-.554 1.707l3.123 3.044-.737 4.3a1 1 0 0 0 1.452 1.052l4.093-2.15a.5.5 0 0 0-.466-.887l-4.092 2.152.736-4.299a1 1 0 0 0-.287-.884L1.002 6.428 5.318 5.8a.998.998 0 0 0 .752-.547l1.932-3.912 2.023 4.101a.999.999 0 0 0 .897.557H15.5a.5.5 0 1 0 0-1h-4.578L8.898.9a.989.989 0 0 0-.896-.558zM10.5 8a.5.5 0 1 0 0 1h5a.5.5 0 0 0 0-1h-5zm0 3a.5.5 0 1 0 0 1h5a.5.5 0 0 0 0-1h-5z"/>
<path d="M8 .342a.987.987 0 0 0-.896.556l-1.93 3.913-4.317.627a1 1 0 0 0-.554 1.705l3.123 3.045-.737 4.298a1 1 0 0 0 1.45 1.055L8 13.511l3.86 2.03a1 1 0 0 0 1.45-1.055l-.736-4.299 3.123-3.044a1 1 0 0 0-.554-1.705l-4.317-.627L8.896.898A.987.987 0 0 0 8 .342zm0 1 1.93 3.912a1 1 0 0 0 .754.547l4.314.627-3.123 3.045a1 1 0 0 0-.287.884l.738 4.3-3.861-2.03a.998.998 0 0 0-.93 0l-3.861 2.03.738-4.3a1 1 0 0 0-.287-.884L1 6.428 5.316 5.8c.326-.048.609-.252.754-.547L8 1.342z"/> <path d="M8 .342a.987.987 0 0 0-.896.556l-1.93 3.913-4.317.627a1 1 0 0 0-.554 1.705l3.123 3.045-.737 4.298a1 1 0 0 0 1.45 1.055L8 13.511l3.86 2.03a1 1 0 0 0 1.45-1.055l-.736-4.299 3.123-3.044a1 1 0 0 0-.554-1.705l-4.317-.627L8.896.898A.987.987 0 0 0 8 .342zm0 1 1.93 3.912a1 1 0 0 0 .754.547l4.314.627-3.123 3.045a1 1 0 0 0-.287.884l.738 4.3-3.861-2.03a.998.998 0 0 0-.93 0l-3.861 2.03.738-4.3a1 1 0 0 0-.287-.884L1 6.428 5.316 5.8c.326-.048.609-.252.754-.547L8 1.342z"/>
</g> </g>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 971 B

After

Width:  |  Height:  |  Size: 1.4 KiB

Before After
Before After