mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +01:00
Use theme color behind codeblock borders
The PaperMod theme uses a border-radius for codeblocks by default. The div that contains the corresponding code element uses the default background color, independent of the selected theme (dark vs. light). This causes an incorrect coloring in the corners of code blocks. This commits overwrites the background color of the surrounding div with the current theme color.
This commit is contained in:
@ -49,6 +49,10 @@ pre {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
div.highlight div {
|
||||
background-color: var(--theme) !important;
|
||||
}
|
||||
|
||||
.copy-code {
|
||||
display: none;
|
||||
position: absolute;
|
||||
|
Reference in New Issue
Block a user