Skip to content

Commit 437ef01

Browse files
authored
Merge pull request #344 from The-OpenROAD-Project-staging/report-fixed-row-col
fix top row & left column in metrics table
2 parents 8aafb57 + 47c81a0 commit 437ef01

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

flow/util/genReportTable.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,26 @@ def getDiff(metric, gold, run, rules):
234234
table th {
235235
border-top: solid 2px;
236236
}
237+
.main-table th {
238+
position: sticky;
239+
top: 0;
240+
background-color: #727272;
241+
color: #e0e0e0;
242+
}
243+
.main-table th:nth-child(1),
244+
.main-table td:nth-child(1) {
245+
position: sticky;
246+
left: 0;
247+
}
248+
.main-table th:nth-child(1){
249+
z-index: 2;
250+
}
251+
.main-table tr:nth-of-type(even) td:nth-child(1) {
252+
background-color: #f3f3f3;
253+
}
254+
.main-table tr:nth-of-type(odd) td:nth-child(1) {
255+
background-color: #ffffff;
256+
}
237257
.main-table td:nth-child(3n+4) {
238258
border-left: dotted 1px;
239259
}

0 commit comments

Comments
 (0)