Skip to content

Commit

Permalink
add workaround to set width of container for admonition icon
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Mar 6, 2024
1 parent e9aabe2 commit 5d79b13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/modules/theme/pages/admonition.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ In other words, the `icon` category _cannot_ be declared multiple times and its

A font-based icon is placed in a container with a width 1.5 times the size of the icon.
This is done to give the icon more padding than the textual label.
This behavior will be configurable starting in Asciidoctor PDF 3.
This behavior can be overridden by assigning a value to the `label-min-width` key, which becomes the width of the container for the icon.
A more direct way of configuring the width of this container will be available in Asciidoctor PDF 3.

The `image` key is only relevant when image-based icons are used (`icons=image`).
It's an alternative to using the `icon` attribute on the admonition block.
Expand Down

0 comments on commit 5d79b13

Please sign in to comment.