diff mercurial/templates/static/style-paper.css @ 14563:81fc9678b018

paper, coal: define the diffstat templates The templates output the filename, the total number of changes to the file and a bar graph of the adds and removes. The filename is a link into the diff output. The diffstat is not yet displayed, but it can be manually added to the changeset page template.
author Steven Brown <StevenGBrown@gmail.com>
date Thu, 09 Jun 2011 01:19:39 +0800
parents 1708a0cad774
children 1ae119269ddc
line wrap: on
line diff
--- a/mercurial/templates/static/style-paper.css	Thu Jun 09 01:15:49 2011 +0800
+++ b/mercurial/templates/static/style-paper.css	Thu Jun 09 01:19:39 2011 +0800
@@ -94,6 +94,26 @@
 .minusline { color: #dc143c; } /* crimson */
 .atline { color: purple; }
 
+.diffstat-file {
+  white-space: nowrap;
+  font-size: 90%;
+}
+.diffstat-total {
+  white-space: nowrap;
+  font-size: 90%;
+}
+.diffstat-graph {
+  width: 100%;
+}
+.diffstat-add {
+  background-color: green;
+  float: left;
+}
+.diffstat-remove {
+  background-color: red;
+  float: left;
+}
+
 .navigate {
   text-align: right;
   font-size: 60%;