aboutsummaryrefslogtreecommitdiff
path: root/assets/_markdown.scss
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2019-10-27 13:05:43 +0100
committerAlex Shpak <alex-shpak@users.noreply.github.com>2019-10-27 13:05:43 +0100
commit179d4443b8c343abcef2e23a60d1102e99099ad3 (patch)
treea4385b330e47ee935a7ae00ac084227a93538560 /assets/_markdown.scss
parent1c7fa1d9749c1dc61847e6ae24db6b198731c791 (diff)
#92, Fix code block with lines spacing
Diffstat (limited to 'assets/_markdown.scss')
-rw-r--r--assets/_markdown.scss14
1 files changed, 12 insertions, 2 deletions
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;
+ }
+ }
}