css: add syntax highlighting
This commit is contained in:
parent
d8239cbb73
commit
c376d39022
1 changed files with 73 additions and 0 deletions
73
style.css
73
style.css
|
@ -245,3 +245,76 @@ h5 {
|
|||
h6 {
|
||||
--heading-size: 1.3rem;
|
||||
}
|
||||
|
||||
|
||||
/* Syntax highlighting */
|
||||
|
||||
/* pandoc's "breezedark" style */
|
||||
@media (prefers-color-scheme: dark) {
|
||||
code span { color: #cfcfc2; } /* Normal */
|
||||
code span.al { color: #95da4c; background-color: #4d1f24; font-weight: bold; } /* Alert */
|
||||
code span.an { color: #3f8058; } /* Annotation */
|
||||
code span.at { color: #2980b9; } /* Attribute */
|
||||
code span.bn { color: #f67400; } /* BaseN */
|
||||
code span.bu { color: #7f8c8d; } /* BuiltIn */
|
||||
code span.cf { color: #fdbc4b; font-weight: bold; } /* ControlFlow */
|
||||
code span.ch { color: #3daee9; } /* Char */
|
||||
code span.cn { color: #27aeae; font-weight: bold; } /* Constant */
|
||||
code span.co { color: #7a7c7d; } /* Comment */
|
||||
code span.cv { color: #7f8c8d; } /* CommentVar */
|
||||
code span.do { color: #a43340; } /* Documentation */
|
||||
code span.dt { color: #2980b9; } /* DataType */
|
||||
code span.dv { color: #f67400; } /* DecVal */
|
||||
code span.er { color: #da4453; text-decoration: underline; } /* Error */
|
||||
code span.ex { color: #0099ff; font-weight: bold; } /* Extension */
|
||||
code span.fl { color: #f67400; } /* Float */
|
||||
code span.fu { color: #8e44ad; } /* Function */
|
||||
code span.im { color: #27ae60; } /* Import */
|
||||
code span.in { color: #c45b00; } /* Information */
|
||||
code span.kw { color: #cfcfc2; font-weight: bold; } /* Keyword */
|
||||
code span.op { color: #cfcfc2; } /* Operator */
|
||||
code span.ot { color: #27ae60; } /* Other */
|
||||
code span.pp { color: #27ae60; } /* Preprocessor */
|
||||
code span.re { color: #2980b9; background-color: #153042; } /* RegionMarker */
|
||||
code span.sc { color: #3daee9; } /* SpecialChar */
|
||||
code span.ss { color: #da4453; } /* SpecialString */
|
||||
code span.st { color: #f44f4f; } /* String */
|
||||
code span.va { color: #27aeae; } /* Variable */
|
||||
code span.vs { color: #da4453; } /* VerbatimString */
|
||||
code span.wa { color: #da4453; } /* Warning */
|
||||
}
|
||||
|
||||
/* pandoc's "kate" style */
|
||||
@media (prefers-color-scheme: light) {
|
||||
code span { color: #1f1c1b; } /* Normal */
|
||||
code span.al { color: #bf0303; background-color: #f7e6e6; font-weight: bold; } /* Alert */
|
||||
code span.an { color: #ca60ca; } /* Annotation */
|
||||
code span.at { color: #0057ae; } /* Attribute */
|
||||
code span.bn { color: #b08000; } /* BaseN */
|
||||
code span.bu { color: #644a9b; font-weight: bold; } /* BuiltIn */
|
||||
code span.cf { color: #1f1c1b; font-weight: bold; } /* ControlFlow */
|
||||
code span.ch { color: #924c9d; } /* Char */
|
||||
code span.cn { color: #aa5500; } /* Constant */
|
||||
code span.co { color: #898887; } /* Comment */
|
||||
code span.cv { color: #0095ff; } /* CommentVar */
|
||||
code span.do { color: #607880; } /* Documentation */
|
||||
code span.dt { color: #0057ae; } /* DataType */
|
||||
code span.dv { color: #b08000; } /* DecVal */
|
||||
code span.er { color: #bf0303; text-decoration: underline; } /* Error */
|
||||
code span.ex { color: #0095ff; font-weight: bold; } /* Extension */
|
||||
code span.fl { color: #b08000; } /* Float */
|
||||
code span.fu { color: #644a9b; } /* Function */
|
||||
code span.im { color: #ff5500; } /* Import */
|
||||
code span.in { color: #b08000; } /* Information */
|
||||
code span.kw { color: #1f1c1b; font-weight: bold; } /* Keyword */
|
||||
code span.op { color: #1f1c1b; } /* Operator */
|
||||
code span.ot { color: #006e28; } /* Other */
|
||||
code span.pp { color: #006e28; } /* Preprocessor */
|
||||
code span.re { color: #0057ae; background-color: #e0e9f8; } /* RegionMarker */
|
||||
code span.sc { color: #3daee9; } /* SpecialChar */
|
||||
code span.ss { color: #ff5500; } /* SpecialString */
|
||||
code span.st { color: #bf0303; } /* String */
|
||||
code span.va { color: #0057ae; } /* Variable */
|
||||
code span.vs { color: #bf0303; } /* VerbatimString */
|
||||
code span.wa { color: #bf0303; } /* Warning */
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue