hgweb: pull line numbers out of main flow of source content
authorPaul Fisher <pfish@google.com>
Mon, 23 Mar 2015 14:47:35 -0400
changeset 24427 811a1842cfe5
parent 24426 8e477ad46692
child 24428 586d33f47dca
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.
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;