Skip to content

Commit 48f1380

Browse files
committed
add css for tables
1 parent a13f5df commit 48f1380

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

css/main.css

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,3 +379,39 @@ header.header-post .post-heading .post-subheading {
379379
margin-top: 10px;
380380
}
381381
}
382+
383+
/* --- Tables --- */
384+
385+
.blog-post table {
386+
padding: 0;
387+
}
388+
.blog-post table tr {
389+
border-top: 1px solid #cccccc;
390+
background-color: #ffffff;
391+
margin: 0;
392+
padding: 0;
393+
}
394+
.blog-post table tr:nth-child(2n) {
395+
background-color: #f8f8f8;
396+
}
397+
.blog-post table tr th {
398+
font-weight: bold;
399+
border: 1px solid #cccccc;
400+
text-align: left;
401+
margin: 0;
402+
padding: 6px 13px;
403+
}
404+
.blog-post table tr td {
405+
border: 1px solid #cccccc;
406+
text-align: left;
407+
margin: 0;
408+
padding: 6px 13px;
409+
}
410+
.blog-post table tr th :first-child,
411+
.blog-post table tr td :first-child {
412+
margin-top: 0;
413+
}
414+
.blog-post table tr th :last-child,
415+
.blog-post table tr td :last-child {
416+
margin-bottom: 0;
417+
}

0 commit comments

Comments
 (0)