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
This commit is contained in:
Zhongyue Luo 2014-04-10 11:02:29 +08:00
parent 1c94a45a40
commit 7b7836e5c6

View File

@ -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; }