Skip to content

Commit 634307c

Browse files
Add GitHub-inspired CSS for markdown tables
1 parent 0fe0c91 commit 634307c

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

site-root/css/laddr/markdown.css

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/* Tables */
2+
.content-markdown table {
3+
display: block;
4+
width: 100%;
5+
overflow: auto;
6+
}
7+
8+
.content-markdown table th {
9+
font-weight: bold
10+
}
11+
12+
.content-markdown table th, .content-markdown table td {
13+
padding: 6px 13px;
14+
border: 1px solid #ddd
15+
}
16+
17+
.content-markdown table tr {
18+
border-top: 1px solid #ccc
19+
}
20+
21+
.content-markdown table tr:nth-child(2n) {
22+
background-color: #f8f8f8;
23+
background-color: rgba(0, 0, 0, 0.05);
24+
}

0 commit comments

Comments
 (0)