Skip to content
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

Custom CSS using a :stylesheet: #747

Closed
john-cj opened this issue Jul 26, 2019 · 1 comment
Closed

Custom CSS using a :stylesheet: #747

john-cj opened this issue Jul 26, 2019 · 1 comment

Comments

@john-cj
Copy link

john-cj commented Jul 26, 2019

Is there a way to use custom CSS without adding it to the extension itself? Adding to the extension is a good option, but for me it is not very convenient.

This is what I have tried:

:stylesheet: C:\Test\mystyles.css

Doesn't work. As well, as this:

:stylesheet!:

There is a workaround to use include, yes.

include::C:\Test\Styles.adoc[]
Styles.adoc:

++++
<style>
...
</style>
++++

This workaround isn't good, mainly, because it is necessary to override a lot of existing rules. E.g.

include::C:\Static\mystyles.adoc[]

Good code:

----
Code
----

Bad code:

[.bad]
----
Code
----
.bad pre {background-color: rgba(255, 96, 92, .2) !important;}
@john-cj john-cj changed the title Custom CSS (yes, I know, it is possible) Custom CSS using a :stylesheet: Jul 26, 2019
@john-cj
Copy link
Author

john-cj commented Jul 26, 2019

I think I need to post it in another repository: asciidoctor/asciidoctor-browser-extension#296

@john-cj john-cj closed this as completed Jul 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant