diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2022-08-21 23:40:07 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-21 23:40:07 -0600 |
| commit | e899f364a4e48679d1fa4adb2a10dfe4e9e764f4 (patch) | |
| tree | 5005d93279f6bc6a0f2080bef5cebe10d68d7edf /docs | |
| parent | a2c637f931c091a0950b12f21a597ef1db1b3e87 (diff) | |
resolves #2318 allow theme to specify width for image-based admonition icons (PR #2319)
* introduce scale theme key for admonition icon to scale down icon without affecting layout
* introduce width theme key for admonition icon to control width of image-based icon
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/modules/theme/pages/admonition.adoc | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/docs/modules/theme/pages/admonition.adoc b/docs/modules/theme/pages/admonition.adoc index 3e59a52b..cb4abc6c 100644 --- a/docs/modules/theme/pages/admonition.adoc +++ b/docs/modules/theme/pages/admonition.adoc @@ -296,6 +296,8 @@ 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. The path is resolved starting from the location of the AsciiDoc document and relative to the value of the `iconsdir` attribute. The image macro syntax is not supported for this key. +The width is controlled by the `width` key. +The `width` key is only used for image-based icons. [cols="3,5,6a"] |=== @@ -319,14 +321,23 @@ admonition: tip: name: fas-fire +|scale +|Number in range (0,1] + +(default: `2 / 3`) +|[source] +admonition: + icon: + note: + scale: 1 + |size |xref:language.adoc#values[Number] + -(default: `24`) +(default: `36`) |[source] admonition: icon: note: - size: 20 + size: 24 |stroke-color |xref:color.adoc[Color] + @@ -336,6 +347,15 @@ admonition: icon: important: stroke-color: #FF0000 + +|width +|xref:measurement-units.adoc[Measurement] + +(default: `36`) +|[source] +admonition: + icon: + important: + width: 24 |=== [#name] |
