feat: add option geekdocDarkModeCode to enforce dark codeblocks (#429)
This commit is contained in:
parent
33ea5c37a9
commit
6545ceb24d
11 changed files with 117 additions and 91 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue