mirror of
https://github.com/miniflux/v2.git
synced 2025-09-15 18:57:04 +00:00
Merge dd964ed51f
into 87e65f800e
This commit is contained in:
commit
3bd56e610b
2 changed files with 7 additions and 5 deletions
|
@ -88,7 +88,7 @@ func (f *funcMap) Map() template.FuncMap {
|
||||||
"theme_color": model.ThemeColor,
|
"theme_color": model.ThemeColor,
|
||||||
"icon": func(iconName string) template.HTML {
|
"icon": func(iconName string) template.HTML {
|
||||||
return template.HTML(fmt.Sprintf(
|
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"),
|
route.Path(f.router, "appIcon", "filename", "sprite.svg"),
|
||||||
iconName,
|
iconName,
|
||||||
))
|
))
|
||||||
|
|
|
@ -175,8 +175,8 @@ a:hover {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
#header-menu .icon,
|
#header-menu a>svg,
|
||||||
.page-header ul a .icon {
|
.page-header ul a>svg {
|
||||||
margin-bottom: 2px;
|
margin-bottom: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -929,14 +929,16 @@ article.category-has-unread {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Icons */
|
/* Icons */
|
||||||
.icon,
|
a>svg,
|
||||||
|
button>svg,
|
||||||
.icon-label {
|
.icon-label {
|
||||||
vertical-align: text-bottom;
|
vertical-align: text-bottom;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-right: 2px;
|
margin-right: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon {
|
a>svg,
|
||||||
|
button>svg {
|
||||||
width: 16px;
|
width: 16px;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue