Consider adding FontAwesome icons for admonitions in base.css #3780
Labels
Theme-general
Issues involving the theme related code within MkDocs
Theme-mkdocs
Issues specifically involving the mkdocs theme.
Font Awesome is already included in MkDocs.
So it makes sense to use it to add icons to the default admonitions.
See the following CSS for example:
I'm on an older version of MkDocs, so the above is tested for Font Awesome 4.7 on MkDocs 1.5.2.
But the same concept with small tweaks should work for the latest version.
It may also make sense to include the Font Awesome icons in the HTML, rather than with the CSS hack above.
Example:
Note: I extracted the
content: "\f1e2"
values directly fromfont-awesome.css
(v.4.7.0):https://github.com/FortAwesome/Font-Awesome/blob/4.x/css/font-awesome.css
The text was updated successfully, but these errors were encountered: