From 1ff7243f2cd9886c043803a641eb8b38870fe8f6 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 13 Mar 2015 14:39:10 +0100 Subject: reproducible: use CSS for numbering the rows --- userContent/static/style.css | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'userContent/static/style.css') diff --git a/userContent/static/style.css b/userContent/static/style.css index e28cb94e..fb9b8192 100644 --- a/userContent/static/style.css +++ b/userContent/static/style.css @@ -129,6 +129,7 @@ h3 { } table { + counter-reset: rowNumber; /* used for automatic row count with CSS */ border: 1px solid #ddd; border-radius: 0.5em; border-collapse: collapse; @@ -161,6 +162,17 @@ tr:nth-child(odd) { background-color: #fafafa; } +/* automatic row count with CSS */ +table.scheduled tr:not(:first-child) { + counter-increment: rowNumber; +} +table.scheduled tr td:first-child::before { + content: counter(rowNumber); + min-width: 1em; + margin-right: 0.5em; +} +/* end automatic row count with CSS */ + a.bug-patch:after { content: "+"; color: red; -- cgit v1.2.3-70-g09d2