summaryrefslogtreecommitdiffstats
path: root/userContent/static
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-03-13 14:39:10 +0100
committerHolger Levsen <holger@layer-acht.org>2015-03-13 14:40:31 +0100
commit1ff7243f2cd9886c043803a641eb8b38870fe8f6 (patch)
treef19139334916a284955df346a31af440b542ef99 /userContent/static
parentde741705e69967ffdad078d06c8afd15e23c041c (diff)
downloadjenkins.debian.net-1ff7243f2cd9886c043803a641eb8b38870fe8f6.tar.xz
reproducible: use CSS for numbering the rows
Diffstat (limited to 'userContent/static')
-rw-r--r--userContent/static/style.css12
1 files changed, 12 insertions, 0 deletions
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;