Skip to content

Commit 7ff05a8

Browse files
authored
feat: add some css to the HTML format report (#99)
feat: add some css to the HTML format report
1 parent 355c216 commit 7ff05a8

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

pkg/runner/data/html.html

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,35 @@
1616
width: 100%;
1717
height: 60px;
1818
}
19+
table {
20+
border-collapse: collapse;
21+
width: 100%;
22+
}
23+
24+
caption {
25+
font-size: 1.2em;
26+
font-weight: bold;
27+
padding: 8px;
28+
background-color: #46723d48;
29+
}
30+
31+
th, td {
32+
padding: 8px;
33+
text-align: left;
34+
border-bottom: 1px solid #ddd;
35+
}
36+
37+
th {
38+
background-color: #f9f9f9;
39+
}
40+
41+
tr:nth-child(even) {
42+
background-color: #f5f5f5;
43+
}
44+
45+
tr:hover {
46+
background-color: #f9f9f9;
47+
}
1948
</style>
2049
</head>
2150
<body>

pkg/runner/testdata/report.html

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,35 @@
1616
width: 100%;
1717
height: 60px;
1818
}
19+
table {
20+
border-collapse: collapse;
21+
width: 100%;
22+
}
23+
24+
caption {
25+
font-size: 1.2em;
26+
font-weight: bold;
27+
padding: 8px;
28+
background-color: #46723d48;
29+
}
30+
31+
th, td {
32+
padding: 8px;
33+
text-align: left;
34+
border-bottom: 1px solid #ddd;
35+
}
36+
37+
th {
38+
background-color: #f9f9f9;
39+
}
40+
41+
tr:nth-child(even) {
42+
background-color: #f5f5f5;
43+
}
44+
45+
tr:hover {
46+
background-color: #f9f9f9;
47+
}
1948
</style>
2049
</head>
2150
<body>

0 commit comments

Comments
 (0)