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" 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); }