-
Notifications
You must be signed in to change notification settings - Fork 500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow color to be specified for a font-based icon #349
Comments
Currently, the workaround is to use Prawn-specific markup to set the color:
|
Why another attribute?
My code:
In HTML output icon with color and admonition with color, but PDF output - admonition with color, icon - WITHOUT color
|
I agree that a role (aka class) would be better. But that would mean we need to implement generic roles in the theme. We could make that part of this fix, or at least a simplified version of it (where we just look for the color). |
Something like this in the theme:
And this in the AsciiDoc:
I'd be happy with that. (I put the role under the role category so it doesn't conflict with other top-level category names). |
When can this feature appear in Asciidoctor-pdf? |
I've already scheduled it for the next alpha, so I will try to stick to that if I can. Right now I'm busy working on the next release of Asciidoctor core. |
mojavelinux, thank you |
Roles for inline elements are now supported. Now we just need to apply the role to the icon. |
Allow the
color
attribute to be specified on theicon
macro to control the color of the font. The color can be specified using any format that is permitted in the PDF theme file (see /~https://github.com/asciidoctor/asciidoctor-pdf/blob/master/docs/theming-guide.adoc#colors).Example:
The text was updated successfully, but these errors were encountered: