From d4abb9d34bca7ed171c46cf32b3e301e583bcfd0 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Mon, 25 Mar 2019 19:47:21 +0100 Subject: #31, Make tables prettier --- assets/_markdown.scss | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'assets') diff --git a/assets/_markdown.scss b/assets/_markdown.scss index cb62a2f..1fe1a50 100644 --- a/assets/_markdown.scss +++ b/assets/_markdown.scss @@ -54,7 +54,18 @@ $block-border-radius: 0.15rem; :last-child { margin-bottom: 0; } } - table tr td { - padding: $padding-8; + table { + border-spacing: 0; + border-collapse: collapse; + + tr th, tr td { + padding: $padding-8 $padding-16; + line-height: 1; + border: 1px solid $gray-200; + } + + tr:nth-child(2n) { + background: $gray-100; + } } } \ No newline at end of file -- cgit v1.2.3