spring-io / spring-asciidoctor-backends

A backend for Asciidoctor used to produce Spring styled HTML
Apache License 2.0
79 stars 16 forks source link

Fix CSS for admonition titles #84

Closed odrotbohm closed 1 year ago

odrotbohm commented 1 year ago

The CSS for the Font Awesome-based admonition icons miss a font-family declaration for the actual admonition title and thus render in Times:

Screenshot 2023-07-27 at 20 49 45

This is fixed by explicitly declaring font-family: var(--font-family); for the already existing .doc .admonitionblock .icon i::after declaration in asciidoctor.css:

Screenshot 2023-07-27 at 20 50 00