Quantcast

Styling admonition block in asciidoctor-pdf

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Styling admonition block in asciidoctor-pdf

simpligility
Hi,

I would like to adjust the look of admonition blocks by giving it a border and a background colors. So far following the theme guide I am not having much luck. E.g.

admonition:
  background_color: #cc0000

should cause the admonition block to have a red background. Is this supposed to work? Any other ideas?

thx

Manfred
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Styling admonition block in asciidoctor-pdf

simpligility
Btw in terms of look I am thinking of something along these lines visible in the HTML here

http://books.sonatype.com/nexus-book/3.0/reference/preface.html#howtoread

Just using the default fontawesome icons and maybe including the vertical line that is there now by default.

Manfred
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Styling admonition block in asciidoctor-pdf

mojavelinux
Administrator
In reply to this post by simpligility
This is not yet possible for admonition blocks. Please file an issue to be able to control the border and background (which happen to be related in how they are implemented).

alpha.14 will introduce the ability to control the font properties as well as the appearance of the vertical rule (already implemented). But not yet the border and background color.

-Dan

On Tue, Oct 4, 2016 at 6:10 PM, simpligility [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi,

I would like to adjust the look of admonition blocks by giving it a border and a background colors. So far following the theme guide I am not having much luck. E.g.

admonition:
  background_color: #cc0000

should cause the admonition block to have a red background. Is this supposed to work? Any other ideas?

thx

Manfred


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Styling-admonition-block-in-asciidoctor-pdf-tp5038.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
|  
Report Content as Inappropriate

Re: Styling admonition block in asciidoctor-pdf

simpligility

I was about to file and issue only to find out that there is one already.

https://github.com/asciidoctor/asciidoctor-pdf/issues/444

I will keep an eye on that.

Manfred

mojavelinux [via Asciidoctor :: Discussion] wrote on 2016-10-04 17:31:

This is not yet possible for admonition blocks. Please file an issue to be able to control the border and background (which happen to be related in how they are implemented).
 
alpha.14 will introduce the ability to control the font properties as well as the appearance of the vertical rule (already implemented). But not yet the border and background color.
 
-Dan
 
On Tue, Oct 4, 2016 at 6:10 PM, simpligility [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi,

I would like to adjust the look of admonition blocks by giving it a border and a background colors. So far following the theme guide I am not having much luck. E.g.

admonition:
  background_color: #cc0000

should cause the admonition block to have a red background. Is this supposed to work? Any other ideas?

thx

Manfred  
If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Styling-admonition-block-in-asciidoctor-pdf-tp5038.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
 
If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Styling-admonition-block-in-asciidoctor-pdf-tp5038p5040.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Styling admonition block in asciidoctor-pdf, click here.
NAML
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Styling admonition block in asciidoctor-pdf

mojavelinux
Administrator
There you go. Perfect!

-Dan

On Tue, Oct 4, 2016 at 9:01 PM, simpligility [via Asciidoctor :: Discussion] <[hidden email]> wrote:

I was about to file and issue only to find out that there is one already.

https://github.com/asciidoctor/asciidoctor-pdf/issues/444

I will keep an eye on that.

Manfred

mojavelinux [via Asciidoctor :: Discussion] wrote on 2016-10-04 17:31:

This is not yet possible for admonition blocks. Please file an issue to be able to control the border and background (which happen to be related in how they are implemented).
 
alpha.14 will introduce the ability to control the font properties as well as the appearance of the vertical rule (already implemented). But not yet the border and background color.
 
-Dan
 
On Tue, Oct 4, 2016 at 6:10 PM, simpligility [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi,

I would like to adjust the look of admonition blocks by giving it a border and a background colors. So far following the theme guide I am not having much luck. E.g.

admonition:
  background_color: #cc0000

should cause the admonition block to have a red background. Is this supposed to work? Any other ideas?

thx

Manfred  
If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Styling-admonition-block-in-asciidoctor-pdf-tp5038.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
 
If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Styling-admonition-block-in-asciidoctor-pdf-tp5038p5040.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Styling admonition block in asciidoctor-pdf, click here.
NAML



If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Styling-admonition-block-in-asciidoctor-pdf-tp5038p5041.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
Loading...