changeset 24427:811a1842cfe5

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.
author Paul Fisher <pfish@google.com>
date Mon, 23 Mar 2015 14:47:35 -0400
parents 8e477ad46692
children 586d33f47dca
files mercurial/templates/static/style-paper.css
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;