fix: mini icons
This commit is contained in:
parent
64ac6c4516
commit
3cd8cc54b7
|
|
@ -40,7 +40,7 @@ const marked = new Marked()
|
|||
renderer(token) {
|
||||
if (!token.meta.name) {
|
||||
const style = globalIconPrefix ? `style="--icon-src: url('${globalIconPrefix}/${token.text}.png')"` : '';
|
||||
return `<icon ${style} class="icon-${token.text}"></icon>`;
|
||||
return `<icon ${style} class="icon-${token.text} ${token.attrs?.class || ""}"></icon>`;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,6 +13,11 @@ icon, pull{
|
|||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
icon.mini{
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
pull{
|
||||
margin-right: -.5em;
|
||||
width: 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue