asciidoctor-skins icon indicating copy to clipboard operation
asciidoctor-skins copied to clipboard

Code background-color overwritten

Open GauntletPL opened this issue 5 years ago • 2 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 avatar Mar 21 '19 19:03 GauntletPL

@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!

dohliam avatar Mar 22 '19 07:03 dohliam

@GauntletPL Do you mind if I open a PR in your stead to fix this? I use the Fedora theme which this issue is prominent and needs to be fixed.

@dohliam I'll try to find time this weekend to work on this. Is it OK if I also format all CSS files using WebStorm?

9ao9ai9ar avatar Feb 21 '21 17:02 9ao9ai9ar

@9ao9ai9ar please, go ahead.

GauntletPL avatar Feb 23 '21 09:02 GauntletPL