git » git-arr » commit c96d0db

style: Make line numbers grey

author Alberto Bertogli
2017-08-27 13:46:52 UTC
committer Alberto Bertogli
2017-08-27 14:29:10 UTC
parent 9c8a6d2408ea3d3ea241767444a5921144867e7e

style: Make line numbers grey

When using pygments, make the line numbers grey.

This was the intention all along, but the <a> style overrides the <div>
style and the grey colour does not take effect.

This patch fixes the problem by setting the style specifically to <a>
within the line numbers div.

static/git-arr.css +3 -1

diff --git a/static/git-arr.css b/static/git-arr.css
index 2a0f7c1..7fc6efd 100644
--- a/static/git-arr.css
+++ b/static/git-arr.css
@@ -183,9 +183,11 @@ table.blob-binary tr.etc {
 /* Pygments overrides. */
 div.linenodiv {
     padding-right: 0.5em;
-    color: gray;
     font-size: medium;
 }
+div.linenodiv a {
+    color: gray;
+}
 div.source_code {
     background: inherit;
     font-size: medium;