From 3a03fb77e59d9e201c5afe43273b82fe701a8c93 Mon Sep 17 00:00:00 2001 From: Andreas Schaeffer Date: Wed, 2 Oct 2024 20:47:53 +0200 Subject: [PATCH 1/2] Fix code blocks background and text colors --- theme/css/chrome.css | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/theme/css/chrome.css b/theme/css/chrome.css index 9dff5e9..c7729e5 100644 --- a/theme/css/chrome.css +++ b/theme/css/chrome.css @@ -230,8 +230,17 @@ a:hover > .hljs { text-decoration: underline; } -.theme .hljs, -.navy .hljs { +.theme :not(pre) > .hljs { + background: var(--surface-1); +} + +.theme pre > .hljs { + color: var(--text-1); + background: var(--surface-2); +} + +.theme details pre > .hljs { + color: var(--text-1); background: var(--surface-1); } From 88989de5d739773facb47b26e342ca5a4f553bd1 Mon Sep 17 00:00:00 2001 From: Andreas Schaeffer Date: Wed, 2 Oct 2024 20:50:28 +0200 Subject: [PATCH 2/2] Start workflow when theme has been changed --- .github/workflows/book.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/book.yml b/.github/workflows/book.yml index c04dc75..51e6b60 100644 --- a/.github/workflows/book.yml +++ b/.github/workflows/book.yml @@ -14,6 +14,7 @@ on: branches: [ main ] paths: - "src/**" + - "theme/**" - "book.css" - "book.toml" - "README.md"