-
Notifications
You must be signed in to change notification settings - Fork 499
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
Changing border_width in YAML theme file has no effect on admonition block borders #444
Comments
Going through the Ruby code it seems this is the offending line: The bounding box border is set to 0:
From the comments in the code it looks like the admonition block formatting is filled with I'll give it a whirl on my side and see how it goes. |
I tried adding As this is my first foray into Ruby and Prawn I'll wait for some wiser folk to chirp up. Maybe I'll pluck up the courage to dig a bit deeper. |
It's now possible to control the width of the vertical line between the label / icon and the content. It's now called column_rule so as not to confuse it with a border around the block, which is not yet implemented. |
The focus of this issue is to add a border around the whole block. The request to set the background color should be filed as a separate issue if it cannot be implemented at the same time. I'll wait until this issue has a proposed solution before opening that other issue. |
Version
My Wish
I want to add a border (and background colour) to the admonition blocks in my PDF output.
What I've Tried
The admonition section of my YAML theme file looks like this:
background_color
has no effect (I added that).border_color
changes the colour of the vertical separator line between the icon and the text.border_width
doesn't have the desired effect. I've altered this value to5
but:The only way I've managed to achieve anything near to what I'm hoping for is by enclosing my admonitions in a sidebar block as such:
Question
Any tips on how to achieve my wish?
The text was updated successfully, but these errors were encountered: