Skip to content

Commit 52e770e

Browse files
KianNHkodster28
authored andcommitted
[Docs Site] Add alternating table shading (cloudflare#23695)
* [Docs Site] Add alternating table shading * update hex * update padding --------- Co-authored-by: kodster28 <[email protected]>
1 parent fbe1042 commit 52e770e

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/styles/table.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,23 @@
44
table * {
55
overflow-wrap: normal;
66
}
7+
8+
/*
9+
First and last row padding
10+
*/
11+
.sl-markdown-content
12+
:is(th:first-child, td:first-child):not(:where(.not-content *)) {
13+
padding-inline-start: 1rem;
14+
}
15+
16+
.sl-markdown-content
17+
:is(th:last-child, td:last-child):not(:where(.not-content *)) {
18+
padding-inline-end: 1rem;
19+
}
20+
21+
/*
22+
Alternating row shading
23+
*/
24+
.sl-markdown-content tr:nth-child(2n):not(:where(.not-content *)) {
25+
background-color: var(--sl-color-gray-7, #1f1f1f);
26+
}

0 commit comments

Comments
 (0)