aboutsummaryrefslogtreecommitdiff
path: root/book/theme/highlight.css
diff options
context:
space:
mode:
authorSoso2023-01-21 19:24:40 +0000
committerGitHub2023-01-21 19:24:40 +0000
commit8347139ff582341246975f047f04b4848f6e5af9 (patch)
tree182b6a4d4dff42c430b0df2b8ee41f6a4a5d3ea5 /book/theme/highlight.css
parent42b040141632e332c837765f2eb1538ec9c53a8a (diff)
book: Use per-theme syntax-highlighting CSS variables (#5406)
Until this patch, all themes used the Colibri values for syntax highlighting. This made the documentation very hard to read in some light themes.
Diffstat (limited to 'book/theme/highlight.css')
-rw-r--r--book/theme/highlight.css16
1 files changed, 8 insertions, 8 deletions
diff --git a/book/theme/highlight.css b/book/theme/highlight.css
index 8dce7d65..a2db0500 100644
--- a/book/theme/highlight.css
+++ b/book/theme/highlight.css
@@ -7,12 +7,12 @@ code.hljs {
padding:3px 5px
}
.hljs {
- background:#2f1e2e;
- color:#a39e9b
+ background: var(--hljs-background);
+ color: var(--hljs-color);
}
.hljs-comment,
.hljs-quote {
- color:#8d8687
+ color: var(--hljs-quote)
}
.hljs-link,
.hljs-meta,
@@ -23,7 +23,7 @@ code.hljs {
.hljs-tag,
.hljs-template-variable,
.hljs-variable {
- color:#ef6155
+ color: var(--hljs-variable)
}
.hljs-built_in,
.hljs-deletion,
@@ -31,22 +31,22 @@ code.hljs {
.hljs-number,
.hljs-params,
.hljs-type {
- color:#f99b15
+ color: var(--hljs-type)
}
.hljs-attribute,
.hljs-section,
.hljs-title {
- color:#fec418
+ color: var(--hljs-title)
}
.hljs-addition,
.hljs-bullet,
.hljs-string,
.hljs-symbol {
- color:#48b685
+ color: var(--hljs-symbol)
}
.hljs-keyword,
.hljs-selector-tag {
- color:#815ba4
+ color: var(--hljs-selector-tag)
}
.hljs-emphasis {
font-style:italic