Replies: 1 comment 2 replies
-
you could try using the general admonition along with a "class" argument as a non-hacky solution. e.g.:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to change some of the default admonition icons, colors, and especially titles.
As an example, I'd like to change the Danger admonition to say "Example" instead of "Danger" and change the icon to the same one used for "important" (the circled "!").
I assume that this should be doable in css and I see some of it in the theme.css, but I don't seem to be able to change them if I put different, say, icon in a separate css file inside of _static. I can change other aspects of rendering in that same private css file.
So instead of
--pst-icon-admonition-danger: var(--pst-icon-exclamation-triangle);
I make it
--pst-icon-admonition-danger: var(--pst-icon-exclamation-circle);
It still renders as the stock danger admonition.
Is this doable? More importantly, is changing the title doable? Danger, Error, Caution are not useful to me and I would like to repurpose their appearances.
I realize I can use the general admonition and specify the title, but they would all be blue and I'd like different of my new admonitions to be different colors.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions