Skip to content

Commit fbab5cc

Browse files
committed
freeze 2nd row of the report table as a header
Signed-off-by: Matt Liberty <[email protected]>
1 parent 804d525 commit fbab5cc

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

flow/util/genReportTable.py

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,20 @@ def getDiff(metric, gold, run, rules):
244244
background-color: #727272;
245245
color: #e0e0e0;
246246
}
247+
.main-table tr:nth-of-type(even) td:nth-child(1) {
248+
background-color: #f3f3f3;
249+
}
250+
.main-table tr:nth-of-type(odd) td:nth-child(1) {
251+
background-color: #ffffff;
252+
}
253+
.main-table tr:nth-child(2),
254+
.main-table tr:nth-child(2) td:nth-child(1) {
255+
position: sticky;
256+
top: 44px;
257+
background-color: #727272;
258+
color: #e0e0e0;
259+
z-index: 2;
260+
}
247261
.main-table th:nth-child(1),
248262
.main-table td:nth-child(1) {
249263
position: sticky;
@@ -252,12 +266,6 @@ def getDiff(metric, gold, run, rules):
252266
.main-table th:nth-child(1){
253267
z-index: 2;
254268
}
255-
.main-table tr:nth-of-type(even) td:nth-child(1) {
256-
background-color: #f3f3f3;
257-
}
258-
.main-table tr:nth-of-type(odd) td:nth-child(1) {
259-
background-color: #ffffff;
260-
}
261269
.main-table td:nth-child(3n+4) {
262270
border-left: dotted 1px;
263271
}

0 commit comments

Comments
 (0)