diff --git a/css/main.css b/css/main.css index 1208181..54f246c 100644 --- a/css/main.css +++ b/css/main.css @@ -370,3 +370,39 @@ header.header-post .post-heading .post-subheading { margin-top: 10px; } } + +/* --- Tables --- */ + +.blog-post table { + padding: 0; +} +.blog-post table tr { + border-top: 1px solid #cccccc; + background-color: #ffffff; + margin: 0; + padding: 0; +} +.blog-post table tr:nth-child(2n) { + background-color: #f8f8f8; +} +.blog-post table tr th { + font-weight: bold; + border: 1px solid #cccccc; + text-align: left; + margin: 0; + padding: 6px 13px; +} +.blog-post table tr td { + border: 1px solid #cccccc; + text-align: left; + margin: 0; + padding: 6px 13px; +} +.blog-post table tr th :first-child, +.blog-post table tr td :first-child { + margin-top: 0; +} +.blog-post table tr th :last-child, +.blog-post table tr td :last-child { + margin-bottom: 0; +}