-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
pelican-bootstrap3: improve compatiblity with pygments.css #172
Comments
The problem does not lie with pelican-bootstrap3. The The only solution for now, is to include a rule |
I was just wondering whether there is a generic way to clear bootstrap's BTW: depending on the Pygments style, there are more |
Note that the This works for me with bootstrap (my code is classed as 'codehilight'): .codehilite pre { color: inherit; background: inherit; background-color: inherit; font-style: inherit; text-decoration: inherit; font-weight: inherit; } |
That doesn't actually solve the aforementioned problem. Somehow, the CSS that Pygments outputs by default, isn't specific enough, so you'll end up with the background color as defined by your Bootswatch theme or Bootstrap. |
It would be great if one could apply a new pygments style to
pelican-bootstrap3
by simply replacingpygments.css
.At present, one has to copy the
.highlight
directive forcolor
andbackground-color
ofpygments.css
over to a.highlight pre
directive instyle.css
in order to override thepre
directive ofbootstrap.min.css
in order to arrive at the proper pygments style.I am not a CSS guru, but if someone would give me a hint how a proper solution in CSS would look like I would be happy to contribute a patch.
The text was updated successfully, but these errors were encountered: