Asciidoctor pdf - Custom admonition icons

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
24 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: Asciidoctor pdf - Custom admonition icons

mojavelinux
Administrator
Yeah! I'm thrilled to hear that! 🎉

Best,

-Dan

On Mon, Aug 12, 2019 at 4:37 PM be.wood [via Asciidoctor :: Discussion] <[hidden email]> wrote:
THANK YOU!!!!!

I figured I had to have something wrong, and whatever combination it was, this worked exactly as I expected.

I appreciate your help and the great tool you have created.

Brian


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Asciidoctor-pdf-Custom-admonition-icons-tp5850p7074.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux
Reply | Threaded
Open this post in threaded view
|

Re: Asciidoctor pdf - Custom admonition icons

lalebarde
Hi Dan,

If I have well understood, if I need only to change the color of the TIP admonition to be white in pdf, I have just to add in mypdf-theme.yml :

    extends: default
    admonition:
      icon:
        tip:
          stroke-color: 'ffffff'

but it remains black. I also tried without quotes around the color code.

My command is alright since other theming parameters are well taken into account.

Cheers,

Laurent
Reply | Threaded
Open this post in threaded view
|

Re: Asciidoctor pdf - Custom admonition icons

mojavelinux
Administrator
Right now, you have to use underscore in the property name for the stroke color. This is a bug. The hyphen is not being translated.

extends: default
admonition:
  icon:
    tip:
      stroke_color: 'ffffff'

Best,

-Dan

On Fri, Aug 16, 2019 at 3:46 PM lalebarde [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi Dan,

If I have well understood, if I need only to change the color of the TIP admonition to be white in pdf, I have just to add in mypdf-theme.yml :

    extends: default
    admonition:
      icon:
        tip:
          stroke-color: 'ffffff'

but it remains black. I also tried without quotes around the color code.

My command is alright since other theming parameters are well taken into account.

Cheers,

Laurent


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Asciidoctor-pdf-Custom-admonition-icons-tp5850p7091.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux
Reply | Threaded
Open this post in threaded view
|

Re: Asciidoctor pdf - Custom admonition icons

lalebarde
Thank you very much Dan !
12