javalent / admonitions

Adds admonition block-styled content to Obsidian.md
MIT License
1.07k stars 70 forks source link

Is it possible to put different style in each admonition type? #231

Closed Alexnoj closed 2 years ago

Alexnoj commented 2 years ago

Is it possible to put different style (form, color etc) in each admonition type and not global style for all types? image

valentine195 commented 2 years ago

If you go into Admonition settings, you can add new custom admonition types there. If you want to override a default, you can create a custom Admonition of the same type (for example, note).

Alexnoj commented 2 years ago

If you go into Admonition settings, you can add new custom admonition types there. If you want to override a default, you can create a custom Admonition of the same type (for example, note).

Yes, I know I can create new custom admonition. But I want to put in each admonition different style: background-color, border. Is possible?

valentine195 commented 2 years ago

You define the color when you create a custom admonition, yes. Or you can use CSS. Each admonition will receive a class .admonition-<type> (like .admonition-note)

Alexnoj commented 2 years ago

You define the color when you create a custom admonition, yes. Or you can use CSS. Each admonition will receive a class .admonition-<type> (like .admonition-note)

I will try it. ty