diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2022-05-17 19:05:29 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2022-05-17 23:00:18 +0200 |
commit | 62bbb96d0070ea3a2097ebc350ffadc9752eee55 (patch) | |
tree | ea8c9d245566a25efd4cf7174eba0806690d2c60 | |
parent | 818e46ae7c3159ef3026930c1a4330f66344b2d1 (diff) | |
download | systemd-62bbb96d0070ea3a2097ebc350ffadc9752eee55.tar.gz |
docs: regenerate highlight style and streamline background overwrite
* Update to rougify 3.26.1 styling
* Adapt background overwrite by removing default background color
and only adding explicit overwrites for syntax error
(error stylings appear for example in json-excerpts –
see HACKING.md – and are therefore hidden by our css)
-rw-r--r-- | docs/style.css | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/docs/style.css b/docs/style.css index fc2bd1c774..9393ee0a9b 100644 --- a/docs/style.css +++ b/docs/style.css @@ -128,7 +128,8 @@ tbody td { vertical-align: top; } -/* Github Code Highlighting */ +/* Rouge Code Highlight, github style */ +/* Generated with: rougify style github | sed '/background-color: #f8f8f8/d' */ .highlight table td { padding: 5px; } .highlight table pre { margin: 0; } .highlight .cm { @@ -235,6 +236,10 @@ tbody td { .highlight .m, .highlight .mb, .highlight .mx { color: #009999; } +.highlight .sa { + color: #000000; + font-weight: bold; +} .highlight .sb { color: #d14; } @@ -268,7 +273,7 @@ tbody td { .highlight .ss { color: #990073; } -.highlight .s, .highlight .sa, .highlight .dl { +.highlight .s, .highlight .dl { color: #d14; } .highlight .na { @@ -335,9 +340,6 @@ tbody td { .highlight .w { color: #bbbbbb; } -.highlight { - background-color: #f8f8f8; -} /* Code Blocks */ @@ -348,8 +350,9 @@ tbody td { overflow: auto; } -.highlighter-rouge * { - background-color: white; +.highlighter-rouge .highlight .err { + background: transparent !important; + color: inherit !important; } /* Inline Code */ |