mirror of
https://github.com/miniflux/v2.git
synced 2025-09-30 19:22:11 +00:00
refactor(css): use css to scale svg icons
There is no need to specify `class="icon"` on al svg icons, as all svg are used as icons anyway. But just in case, let's specify this in the css only for svg directly under `a` and `buttons`, to be on the safe-side.
This commit is contained in:
parent
fa85a0eff4
commit
dd964ed51f
2 changed files with 7 additions and 5 deletions
|
@ -86,7 +86,7 @@ func (f *funcMap) Map() template.FuncMap {
|
|||
"theme_color": model.ThemeColor,
|
||||
"icon": func(iconName string) template.HTML {
|
||||
return template.HTML(fmt.Sprintf(
|
||||
`<svg class="icon" aria-hidden="true"><use href="%s#icon-%s"/></svg>`,
|
||||
`<svg aria-hidden="true"><use href="%s#icon-%s"/></svg>`,
|
||||
route.Path(f.router, "appIcon", "filename", "sprite.svg"),
|
||||
iconName,
|
||||
))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue