From ce0b07cf658439feaf747b9f19d6920bf17749d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Tue, 12 Oct 2021 17:15:56 +0200 Subject: [PATCH] theme: default color for code block fallback - fix --- exampleSite/config.toml | 4 ++-- static/css/theme.css | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 09b7a55afb..c162ede1ea 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -17,7 +17,7 @@ relativeURLs = true disableLandingPageButton = true disableMermaid = false titleSeparator = "::" - dthemeVariant = "relearn" + themeVariant = "relearn" disableSeoHiddenPages = true [outputs] @@ -25,7 +25,7 @@ relativeURLs = true [markup] [markup.highlight] - sstyle = "base16-snazzy" # choose a color theme or create your own + style = "base16-snazzy" # choose a color theme or create your own guessSyntax = false # if set to true, avoid unstyled code if no language was given but mermaid code fences will not work anymore [markup.goldmark.renderer] diff --git a/static/css/theme.css b/static/css/theme.css index e63fa20d20..36d47d9867 100644 --- a/static/css/theme.css +++ b/static/css/theme.css @@ -621,9 +621,11 @@ code.copy-to-clipboard-inline { border-right-width: 0; } pre { + background-color: #272822; border: 0; border-radius: 2px; - -webkit-print-color-adjust: economy; + color: #f8f8f2; + -webkit-print-color-adjust: economy; color-adjust: economy; line-height: 1.15; padding: 1rem;