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:
TNeitzel 2021-12-25 08:56:08 +01:00
parent 4e2558d93c
commit a63112050a

View File

@ -49,6 +49,10 @@ pre {
position: relative;
}
div.highlight div {
background-color: var(--theme) !important;
}
.copy-code {
display: none;
position: absolute;