darshandsoni / asciidoctor-skins

Control how your asciidoctor powered documentation looks

Home Page:https://darshandsoni.com/asciidoctor-skins

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Code background-color overwritten

GauntletPL opened this issue · comments

When using source highlighter like highlightjs, background-color property for code tag is not displayed properly (by this I mean, it does not use highlightjs styles), because of this line ((snippet below is taken from fedora theme))
code{color:var(--white);background-color: var(--highlightcolor) !important}

I suggest changing it to something similar to how it is defined in asciidoctor.css
:not(pre)>code{color:var(--white);background-color: var(--highlightcolor)}

@GauntletPL Thanks for looking into this! Would you be interested in opening a PR to fix this? If so, we'd be happy to merge it!

@9ao9ai9ar please, go ahead.