1. cburroughs
  2. coverage.py

Commits

Ned Batchelder  committed fb2df17

Remove some noise from the HTML reports, and use a 2px stripe to always show line status.

  • Participants
  • Parent commits 8292e84
  • Branches default

Comments (0)

Files changed (2)

File coverage/htmlfiles/pyfile.html

View file
             <span class='pc_cov'>{{pc_cov|format_pct}}%</span>
         </h1>
         <h2 class='stats'>
-            Stats:
             {{n_stm}} statements
             <span class='run hide' onclick='toggle_lines(this, "run")'>{{n_run}} run</span>
             <span class='exc' onclick='toggle_lines(this, "exc")'>{{n_exc}} excluded</span>

File coverage/htmlfiles/style.css

View file
 
 /* Header styles */
 .content {
-    padding: 1em 3em;
+    padding: 1em 3em .5em 3em;
     }
 
 h1 {
-    font-size: 1.5em;
+    font-size: 1.25em;
 }
 
 h2.stats {
     margin-top: .5em;
+    font-size: 1em;
 }
 .stats span {
     border: 1px solid;
     padding: .1em .25em;
+    margin: 0 .1em;
     cursor: pointer;
-    border-color: #888 #ccc #ccc #888;
+    border-color: #999 #ccc #ccc #999;
 }
 .stats span.hide {
-    border-color: #ccc #888 #888 #ccc;
+    border-color: #ccc #999 #999 #ccc;
 }
 
 /* Source file styles */
 .text p {
     margin: 0;
     padding: 0 0 0 .5em;
+    border-left: 2px solid #ffffff;
     white-space: nowrap;  
     }
 
 .text p.mis {
     background: #ffdddd;
+    border-left: 2px solid #ff0000;
     }
 .text p.run {
     background: #ddffdd;
+    border-left: 2px solid #00ff00;
     }
 .text p.exc {
     background: #eeeeee;
+    border-left: 2px solid #808080;
     }
 .text p.hide {
     background: inherit;