From: Benjamin Franzke Date: Tue, 17 May 2022 17:05:29 +0000 (+0200) Subject: docs: regenerate highlight style and streamline background overwrite X-Git-Tag: v251~14^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=62bbb96d0070ea3a2097ebc350ffadc9752eee55;p=thirdparty%2Fsystemd.git 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) --- diff --git a/docs/style.css b/docs/style.css index fc2bd1c774c..9393ee0a9b7 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 */