Different background color on input/output code blocks
Closed this issue · 2 comments
yanaga commented
I believe it would be much easier to read the tutorial if we could have different background colors for input/output. Having something like this would probably allow us to automatically create the copy button on the section.
I google a lot to try to find how to add a css style to a section in Antora, but had no success. @lordofthejars, any tips? I can do it, but I just need some light on this subject.
lordofthejars commented
Yes you need to provide it as a supplemental-ui:
https://github.com/redhat-developer-demos/rhd-tutorial-template/tree/master/supplemental-ui
And register them:
https://github.com/redhat-developer-demos/rhd-tutorial-template/blob/master/supplemental-ui/partials/footer-scripts.hbs
Missatge de Edson Yanaga <notifications@github.com> del dia dg., 3 de maig
2020 a les 22:11:
… I believe it would be much easier to read the tutorial if we could have
different background colors for input/output. Having something like this
would probably allow us to automatically create the copy button on the
section.
I google a lot to try to find how to add a css style to a section in
Antora, but had no success. @lordofthejars
<https://github.com/lordofthejars>, any tips? I can do it, but I just
need some light on this subject.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#15>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AALSMYJRRZ7OKTPA5QM2FB3RPXFYHANCNFSM4MYIVX6Q>
.
yanaga commented
I already know how to create a supplemental-ui, but I don't know how to apply a css in a piece of asciidoc so that it will include my additional css style.
I already have the css style in my supplemental-ui. How do I apply it to block of text?