Fix <pre> HTML tag to follow theme settings

The <pre> tag was set to a fixed background color that on the light
theme happened to be the same color of the text, making it impossible
to read.

This changes the background color to follow the theme setting using
the secondary light/dark color as background.
This commit is contained in:
Alessio Di Mauro 2021-08-06 15:55:03 +02:00
parent bc5c57112c
commit 32a07b5109
No known key found for this signature in database
GPG key ID: 90CB045BD3994701

View file

@ -239,7 +239,14 @@ code {
}
pre {
background: #212020;
[data-theme=dark] & {
background-color: $dark-background-secondary;
}
[data-theme=light] & {
background-color: $light-background-secondary;
}
padding: 10px 10px 10px 20px;
border-radius: 8px;
font-size: 0.95rem;