-
-
Notifications
You must be signed in to change notification settings - Fork 787
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
Allow to specify multiple stylesheets #3471
Comments
Since
But what should we do if
My proposal is to use So in the first example above, It could also work when the file is not the last one:
Here, In the second example,
@mojavelinux What do you think? |
Current behavior
Currently, it's only possible to define a single custom stylesheet using the
stylesheet
attribute.For instance, the following command will use the stylesheet named
custom.css
:In this case,
custom.css
will replace the default Asciidoctor stylesheet.New behavior
In order to promote, re-usability and composability, I think it could be useful to define multiple stylesheets.
Consider the following example:
In the above examples, we can override just a few variables in
client-y-variables.css
andclient-z-variables.css
while using the same dark theme.Another use case would be to use the bundled Asciidoctor stylesheet, yet still be able to override some styles.
Similarly to Asciidoctor PDF, we could refer to the bundled stylesheet using the
GEM_DATA_DIR
constant:This feature could be added at a later stage.
The text was updated successfully, but these errors were encountered: