Combine asciidoctor styles with another - question

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

Combine asciidoctor styles with another - question

ch007m
Hi,

By default, asciidoctor includes its own css file (defined here : asciidoctor/lib/asciidoctor/backends/_stylesheets.rb) but supports also to apply a stylesheet (http://asciidoctor.org/docs/user-manual/#applying-a-theme).

As 'applying its custom stylesheet' means that we replace the by default asciidoctor css style by its own, is it nevertheless possible to include in HTML generated a css style PLUS also the by default asciidoctor

<link rel="stylesheet" href="./asciidoctor.css">
<link rel="stylesheet" href="./myOwn.css">

asciidoctor -a stylesdir=mystylesheets/ -a stylesheet=mystyles.css -a stylesheet=myOwn.css mysample.adoc

OR

is it required in this case to create its own style as described here (http://asciidoctor.org/docs/user-manual/#stylesheet-factory, http://asciidoctor.org/docs/user-manual/#creating-a-theme)   ?
Charles Moulliard
Apache Committer / Technologist Evangelist / Blogger / MiddleWare Specialist
Twitter : @cmoulliard
Reply | Threaded
Open this post in threaded view
|

Re: Combine asciidoctor styles with another - question

LightGuardjp
I think there are two ways of going about doing this:

1. Create your own style sheet as you have linked
2. Modify the backend to allow another style sheet. 

For ease of portability with others, the custom stylesheet is probably the easiest.

Your idea about having multiple stylesheet attributes probably will not work as one will take precedence over the other (probably the last one).


On Mon, Nov 25, 2013 at 5:50 AM, ch007m [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi,

By default, asciidoctor includes its own css file (defined here : asciidoctor/lib/asciidoctor/backends/_stylesheets.rb) but supports also to apply a stylesheet (http://asciidoctor.org/docs/user-manual/#applying-a-theme).

As 'applying its custom stylesheet' means that we replace the by default asciidoctor css style by its own, is it nevertheless possible to include in HTML generated a css style PLUS also the by default asciidoctor

<link rel="stylesheet" href="./asciidoctor.css">
<link rel="stylesheet" href="./myOwn.css">

asciidoctor -a stylesdir=mystylesheets/ -a stylesheet=mystyles.css -a stylesheet=myOwn.css mysample.adoc

OR

is it required in this case to create its own style as described here (http://asciidoctor.org/docs/user-manual/#stylesheet-factory, http://asciidoctor.org/docs/user-manual/#creating-a-theme)   ?


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Combine-asciidoctor-styles-with-another-question-tp1082.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--