]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
docs: regenerate highlight style and streamline background overwrite
authorBenjamin Franzke <benjaminfranzke@googlemail.com>
Tue, 17 May 2022 17:05:29 +0000 (19:05 +0200)
committerBenjamin Franzke <benjaminfranzke@googlemail.com>
Tue, 17 May 2022 21:00:18 +0000 (23:00 +0200)
 * 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)

docs/style.css

index fc2bd1c774ca7a37dadbd36ca28c86e3d09d6ae1..9393ee0a9b72693ecef01ae6e8801bbbf466f856 100644 (file)
@@ -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 */