From 7ab81f0fdc8d6eb56eb48b78b86a4b581101d9e2 Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Mon, 13 Apr 2020 22:52:22 +0800 Subject: Apply primer CSS to post summary --- assets/sass/_markdown.scss | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'assets') diff --git a/assets/sass/_markdown.scss b/assets/sass/_markdown.scss index c6deabb..5ca2b70 100644 --- a/assets/sass/_markdown.scss +++ b/assets/sass/_markdown.scss @@ -1,8 +1,6 @@ // primer CSS markdown color remap -#post-content { - &.markdown-body { - font-family: inherit !important; - } +@mixin markdown-remap { + font-family: inherit !important; h1, h2, h3, h4, h5, h6 { color: $color-primary; @@ -35,4 +33,21 @@ } @include link-secondary(); +} + +#post-content { + &.markdown-body { + @include markdown-remap(); + } +} + +#post-summary { + &.markdown-body { + @include markdown-remap(); + + // do not show heads in summary + h1, h2, h3, h4, h5, h6 { + display: none; + } + } } \ No newline at end of file -- cgit v1.2.3