From 179d4443b8c343abcef2e23a60d1102e99099ad3 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Sun, 27 Oct 2019 13:05:43 +0100 Subject: #92, Fix code block with lines spacing --- assets/_markdown.scss | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'assets') diff --git a/assets/_markdown.scss b/assets/_markdown.scss index 17fed6c..944c811 100644 --- a/assets/_markdown.scss +++ b/assets/_markdown.scss @@ -71,7 +71,6 @@ tr th, tr td { padding: $padding-8 $padding-16; - line-height: 1; border: $padding-1 solid $gray-200; } @@ -91,7 +90,6 @@ } dl { - // padding-left: $padding-16; dt { font-weight: bolder; margin-top: $padding-16; @@ -101,4 +99,16 @@ margin-left: $padding-16 * 2; } } + + // Special case for highlighted code with line numbers + .highlight table tr { + td:nth-child(1) pre { + margin: 0; + padding-right: 0; + } + td:nth-child(2) pre { + margin: 0; + padding-left: 0; + } + } } -- cgit v1.2.3