diff options
author | Jan Raasch <jan@janraasch.com> | 2021-08-09 18:56:14 +0200 |
---|---|---|
committer | Jan Raasch <jan@janraasch.com> | 2021-08-09 18:56:14 +0200 |
commit | d3a86c7c6d23cfe6f82d7d8405e3ab522e693a22 (patch) | |
tree | 28977abba4d9aa769b5adedf55be97df30d1ac45 /layouts/partials | |
parent | 623c415b65d28c72644ffc117d868ffbadee55b0 (diff) | |
download | hugo-bearcub-d3a86c7c6d23cfe6f82d7d8405e3ab522e693a22.tar.gz hugo-bearcub-d3a86c7c6d23cfe6f82d7d8405e3ab522e693a22.tar.bz2 |
Do not touch div.highlight styles
Closes #25
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/style.html | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/layouts/partials/style.html b/layouts/partials/style.html index 173aec9..97499d0 100644 --- a/layouts/partials/style.html +++ b/layouts/partials/style.html @@ -64,22 +64,20 @@ code { padding: 2px 5px; + } + + :not(div.highlight)>pre code, + :not(pre)>code { background-color: #f2f2f2; } pre code { - color: #222; display: block; padding: 20px; white-space: pre-wrap; font-size: 14px; } - div.highlight code { - background-color: unset; - color: initial; - } - blockquote { border-left: 1px solid #999; color: #222; @@ -141,14 +139,11 @@ color: #8cc2dd; } - code { + :not(div.highlight)>pre code, + :not(pre)>code { background-color: #777; } - pre code { - color: #ddd; - } - blockquote { color: #ccc; } |