Improved blob UI master
authorCian Bagshaw <cian@cianb.xyz>
Sun, 28 Aug 2022 18:51:29 +0000 (19:51 +0100)
committerCian Bagshaw <cian@cianb.xyz>
Sun, 28 Aug 2022 18:51:29 +0000 (19:51 +0100)
Added style-agnostic, semi-alpha background to blob, including line numbers.
Also, increased font-size, and expanded blob to full width.

style.css

index 5a7865f..85c7362 100644 (file)
--- a/style.css
+++ b/style.css
@@ -165,8 +165,17 @@ div#cgit table.list a[href="/?s=owner"] { display: none; }
  *     code blobs
  */
 
-/* code background */
-div#cgit .lines .highlight { background-color: inherit !important; }
+/* blob */
+div#cgit table.blob {
+       width: 100%;
+       font-size: 14px;
+       background-color: rgba(100,100,100,0.3);
+}
+
+/* blob text */
+div#cgit table.blob .lines .highlight {
+       background-color: inherit ;
+}
 
 div#cgit table.list td.commitgraph {
        font-family: monospace;