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:
parent
bc5c57112c
commit
32a07b5109
1 changed files with 8 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue