From 5e176ef9a041931e325c0ab739711b773e03e63d Mon Sep 17 00:00:00 2001 From: Amit Merchant Date: Sat, 27 Jul 2019 14:23:56 +0530 Subject: [PATCH] Add support for html tables --- style.scss | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/style.scss b/style.scss index 22767b2..3b0afff 100644 --- a/style.scss +++ b/style.scss @@ -86,6 +86,46 @@ p { margin: 15px 0; } +table { + padding: 0; +} + +table tr { + border-top: 1px solid #cccccc; + background-color: white; + margin: 0; + padding: 0; +} + +table tr:nth-child(2n) { + background-color: #f8f8f8; +} + +table tr th { + font-weight: bold; + border: 1px solid #cccccc; + text-align: left; + margin: 0; + padding: 6px 13px; +} + +table tr td { + border: 1px solid #cccccc; + text-align: left; + margin: 0; + padding: 6px 13px; +} + +table tr th :first-child, +table tr td :first-child { + margin-top: 0; +} + +table tr th :last-child, +table tr td :last-child { + margin-bottom: 0; +} + /*.detailed .entry p:first-of-type:first-letter { float: left; margin: 0.13em 0.05em 0 -0.05em;