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

Adidoks sass overrides Zola syntax highlighting in code blocks #23

Closed
ajyoon opened this issue Dec 4, 2021 · 0 comments · Fixed by #24
Closed

Adidoks sass overrides Zola syntax highlighting in code blocks #23

ajyoon opened this issue Dec 4, 2021 · 0 comments · Fixed by #24

Comments

@ajyoon
Copy link
Contributor

ajyoon commented Dec 4, 2021

Zola applies syntax highlighting at the element level, but for basic background and text colors it applies them to the <pre> tag, not the <code> tag. But Adidoks provides a style which sets these colors on the <code> element, it overrides Zola's theming in standard <pre><code>...</code></pre> structures.

code {
background: $beige;
color: $black;
padding: 0.25rem 0.5rem;
}

As a result, the background color of code blocks does not match the Zola-defined theme, and can result in hard-to-read displays like this example on the default Zola theme:

1

which should look like this:

2

ajyoon added a commit to ajyoon/adidoks that referenced this issue Dec 4, 2021
Geal added a commit to biscuit-auth/website that referenced this issue Dec 4, 2021
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

Successfully merging a pull request may close this issue.

1 participant