About status icons #6912
-
I found that the icon of the article status can only reference svg, right? It cannot directly use the built-in icon library, right? such as :root { |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello @W1ndys, Using https://squidfunk.github.io/mkdocs-material/reference/icons-emojis/ you can search for an emoji and later right click on the result and open the SVG image in a new tab: Copy that 1 single line text into the CSS in a special url, make sure it's all on a single line: Reference: |
Beta Was this translation helpful? Give feedback.
Hello @W1ndys,
the
:material-test-tube:
syntax is limited to the Markdown (.md) content as it's later parsed with the pymdown markdown extension. So you're right you have to use a url with the SVG in the CSS override for the status type.Using https://squidfunk.github.io/mkdocs-material/reference/icons-emojis/ you can search for an emoji and later right click on the result and open the SVG image in a new tab:
https://raw.githubusercontent.com/squidfunk/mkdocs-material/master/material/templates/.icons/material/test-tube.svg
then right click again and open the source view:
view-source:https://raw.githubusercontent.com/squidfunk/mkdocs-material/master/material/templates/.icons/material/test-…