> basic
1300 lines...
also, the line numbers dont actually align with the lines:
https://git.kernel.dk/cgit/liburing/tree/examples/proxy.c#n1...
1300 lines...
also, the line numbers dont actually align with the lines:
https://git.kernel.dk/cgit/liburing/tree/examples/proxy.c#n1...
The weird thing is both are controlled by a single CSS rule,
div#cgit pre {
font-family: "Source Code Pro", "Courier New", monospace;
}
(Changing to just `monospace` fixes it.)I'm not sure how two elements could have different fonts with that. I'm possibly missing something obscure, but it really feels like a browser bug.
div#cgit pre, div#cgit code { ... }
(The buggy CSS is not present in the the official cgit repository, so I assume the owner of kernel.dk is running a patched version of cgit.)and yeah, this is why you don't abuse side-by-side divs ... actually, that's a table ... and instead just make your number unselectable (there are several ways to do this).
Needs .linenumbers { line-height: 12pt } but I think vertical line spacing within text node cannot be precisely controlled and is browser dependent.