From 7b7836e5c6347b8ac67f610fa2e6a96b9352249f Mon Sep 17 00:00:00 2001 From: Zhongyue Luo Date: Thu, 10 Apr 2014 11:02:29 +0800 Subject: [PATCH] Fixes git repository browser line number misalignment When browsing the source code in Chrome, the lines and line numbers are not aligned. Setting a font family and font size fixes this problem. Change-Id: I6809e7bf6eab869f2c686db73019bf70fdb51430 --- .../openstack_project/files/git/openstack.css | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/modules/openstack_project/files/git/openstack.css b/modules/openstack_project/files/git/openstack.css index 6c436a0354..0f7b64323d 100644 --- a/modules/openstack_project/files/git/openstack.css +++ b/modules/openstack_project/files/git/openstack.css @@ -67,6 +67,23 @@ div#cgit table.list tr.nohover:hover { background: #eef3f5; } +div#cgit table.blob td.lines { + margin: 0; padding: 0 0 0 0.5em; + vertical-align: top; + color: black; + font-family: monospace; + font-size: 14px; +} + +div#cgit table.blob td.linenumbers { + margin: 0; padding: 0 0.5em 0 0.5em; + vertical-align: top; + text-align: right; + border-right: 1px solid gray; + font-family: monospace; + font-size: 14px; +} + /* Syntax highlighting */ div#cgit table.blob .num { color:#2928ff; } div#cgit table.blob .esc { color:#ff00ff; }