Skip to content

Commit 7705505

Browse files
committed
Fix contrastive coloring of table rows in light/dark themes
1 parent 14cee57 commit 7705505

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

_sass/spec/base.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,12 @@ body,
313313
border: var(--main-table-pre-border);
314314
}
315315

316+
// In the original Primer theme, every other row is colored contrastively.
317+
// In dark themes, it doesn't look great.
318+
table tr:nth-child(2n) {
319+
background-color: var(--main-table-pre-bg-color, #f6f8fa);
320+
}
321+
316322
blockquote {
317323
color: var(--main-blockquote-text-color);
318324
}

0 commit comments

Comments
 (0)