Compact(?) Admonition boxes #6090
Andre601
started this conversation in
Show and tell
Replies: 1 comment 2 replies
-
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Was playing around with the shortcodes.py squidfunk uses to create a "warning" box for my documentation.
After a lot of CSS headaches did I get a result that looks good. And I was so happy with it that I decided to make an antire collection of what I call "Compact Admonition Boxes".
Here is a preview:

There is a small visual issue where the text will stick close to the icon's background if it goes on a new line...
Feedback to improve the CSS is always welcome!
The Py code used (As a hook):
admo.py
The CSS Used:
admo.css
Beta Was this translation helpful? Give feedback.
All reactions