# HG changeset patch # User Paul Fisher # Date 1427136455 14400 # Node ID 811a1842cfe5f632145912d9bf2dc859e6ee3eeb # Parent 8e477ad46692d701dddac4e83d432ad09e5a4b17 hgweb: pull line numbers out of main flow of source content Pulls the autogenerated line number boxes outside of the padding box of the main content of .sourcelines, allowing the first tab to be properly sized and the line numbers to be outside the main source's margin when text is wrapped. diff -r 8e477ad46692 -r 811a1842cfe5 mercurial/templates/static/style-paper.css --- a/mercurial/templates/static/style-paper.css Mon Mar 23 15:41:43 2015 -0500 +++ b/mercurial/templates/static/style-paper.css Mon Mar 23 14:47:35 2015 -0400 @@ -239,8 +239,9 @@ .sourcelines > span { display: inline-block; + box-sizing: border-box; width: 100%; - padding: 1px 0px; + padding: 1px 0px 1px 5em; counter-increment: lineno; } @@ -251,8 +252,8 @@ -ms-user-select: none; user-select: none; display: inline-block; + margin-left: -5em; width: 4em; - margin-right: 1em; font-size: smaller; color: #999; text-align: right;