Sidebar styling

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

Sidebar styling

Mark S
I'm using asciidoctor-pdf. In my theme-pdf.yml file I have:

sidebar:
    font-family: Serif
    background-color: #EEEEEE
sidebar-title:
    font-family: Helvetica

This works as expected.

But I'd really like to have two (or even three) different sidebar styles. I tried using roles but couldn't get them to work. Is it possible to have different sidebar styles?
Reply | Threaded
Open this post in threaded view
|

Re: Sidebar styling

mojavelinux
Administrator
The theming system in Asciidoctor PDF does not currently support the ability to apply styles to a block. There's an open issue to consider supporting this feature in a limited capacity. See https://github.com/asciidoctor/asciidoctor-pdf/issues/483 (the issue talks about paragraphs, but once it is implemented for paragraphs, it can likely be extended to other blocks.

Best Regards,

-Dan

On Wed, Jan 6, 2021 at 3:45 AM Mark S [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I'm using asciidoctor-pdf. In my theme-pdf.yml file I have:

sidebar:
    font-family: Serif
    background-color: #EEEEEE
sidebar-title:
    font-family: Helvetica

This works as expected.

But I'd really like to have two (or even three) different sidebar styles. I tried using roles but couldn't get them to work. Is it possible to have different sidebar styles?


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/Sidebar-styling-tp8431.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen (he, him, his) | @mojavelinux | https://twitter.com/mojavelinux
Reply | Threaded
Open this post in threaded view
|

Re: Sidebar styling

Mark S
OK thanks for letting me know.