feat: add option geekdocDarkModeCode to enforce dark codeblocks (#429)

This commit is contained in:
Robert Kaussow 2022-05-31 14:14:01 +02:00 committed by GitHub
parent 33ea5c37a9
commit 6545ceb24d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 117 additions and 91 deletions

View file

@ -106,6 +106,9 @@ enableRobotsTXT = true
# bright spots while using the dark mode.
geekdocDarkModeDim = false
# (Optional, default false) Enforce code blocks to always use the dark color theme.
geekdocDarkModeCode = false
# (Optional, default true) Display a "Back to top" link in the site footer.
geekdocBackToTop = true
@ -225,6 +228,9 @@ params:
# bright spots while using the dark mode.
geekdocDarkModeDim: false
# (Optional, default false) Enforce code blocks to always use the dark color theme.
geekdocDarkModeCode: false
# (Optional, default true) Display a "Back to top" link in the site footer.
geekdocBackToTop: true

View file

@ -6,7 +6,7 @@
/* Light mode theming */
:root,
:root[color-mode="light"] {
:root[color-theme="light"] {
--header-background: #4ec58a;
--header-font-color: #ffffff;
@ -76,7 +76,7 @@
}
/* Dark mode theming */
:root[color-mode="dark"] {
:root[color-theme="dark"] {
--header-background: #4ec58a;
--header-font-color: #ffffff;