Skip to content

Commit 2e445d8

Browse files
committed
Polish the HTML coverage layout
1 parent 3ef273a commit 2e445d8

1 file changed

Lines changed: 16 additions & 8 deletions

File tree

pytest_strawberry/html_report.py

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
--low: #b91c1c;
4141
--low-soft: #fef2f2;
4242
--radius: 1rem;
43-
font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
43+
font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
4444
sans-serif;
4545
font-feature-settings: "cv02", "cv03", "cv04", "cv11";
4646
font-synthesis: none;
@@ -66,8 +66,7 @@
6666
.page {
6767
isolation: isolate;
6868
width: 100%;
69-
max-width: 68rem;
70-
margin-inline: auto;
69+
max-width: 90rem;
7170
padding: 1.5rem 1rem;
7271
}
7372
@@ -270,14 +269,23 @@
270269
.type-summary-row::before {
271270
position: absolute;
272271
left: 0.5rem;
272+
top: 50%;
273+
width: 0.375rem;
274+
height: 0.375rem;
275+
border-right: 1.5px solid currentColor;
276+
border-bottom: 1.5px solid currentColor;
273277
color: var(--text-muted);
274-
content: "+";
275-
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
276-
font-weight: 600;
278+
content: "";
279+
transform: translateY(-60%) rotate(-45deg);
277280
}
278281
279282
.type[open] > .type-summary-row::before {
280-
content: "-";
283+
transform: translateY(-75%) rotate(45deg);
284+
}
285+
286+
.type[open] > .type-summary-row {
287+
border-bottom: 1px solid var(--border);
288+
background: var(--surface);
281289
}
282290
283291
.type-summary-row:hover {
@@ -426,7 +434,7 @@
426434
427435
@media (min-width: 48rem) {
428436
.page {
429-
padding: 2.5rem 1.5rem 2rem;
437+
padding: 2.5rem 3rem 2rem;
430438
}
431439
432440
h1 {

0 commit comments

Comments
 (0)