Skip to content

Commit 6dc9fe4

Browse files
committed
change when horizontal rules are drawn
1 parent e9d8e0a commit 6dc9fe4

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

css/style.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -605,8 +605,8 @@ td:first-child {
605605
}
606606

607607
/* Create gray border after every 3rd row to visually separate packages */
608-
table tr:nth-of-type(4n) td {
609-
border-bottom: 1px solid rgba(128,128,128,0.2);
608+
table tr.border-top {
609+
border-top: 1px solid rgba(128,128,128,0.2);
610610
}
611611

612612

js/functions.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,13 @@ $( document ).ready(function(){
8888
}
8989

9090
//generating rows
91-
rows += '<tr>' +
92-
'<td>' + rowRole + '</td>' +
91+
if (index == 0) {
92+
rows += '<tr class="border-top">';
93+
} else {
94+
rows += '<tr>';
95+
}
96+
97+
rows += '<td>' + rowRole + '</td>' +
9398
'<td>' + rowSubRole + '</td>' +
9499
'<td>' + lead + '</td>' +
95100
'<td>' + rowDeputy + '</td>' +

0 commit comments

Comments
 (0)