diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-03-25 19:47:21 +0100 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-03-25 19:47:21 +0100 |
commit | d4abb9d34bca7ed171c46cf32b3e301e583bcfd0 (patch) | |
tree | 3ca3209c49932aa957434d5c73efb3de456cc30b /assets | |
parent | c0a0aac386bdc4033243366d892fed45f0a03f39 (diff) |
#31, Make tables prettier
Diffstat (limited to 'assets')
-rw-r--r-- | assets/_markdown.scss | 15 |
1 files changed, 13 insertions, 2 deletions
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 |