From 9eac99afc4ba4bd96b37b33bf8556b5cd879c60d Mon Sep 17 00:00:00 2001 From: Asaad Mahmood Date: Sat, 21 Nov 2015 01:00:18 +0500 Subject: Updating markdown stuff --- web/sass-files/sass/partials/_markdown.scss | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) (limited to 'web/sass-files/sass/partials/_markdown.scss') diff --git a/web/sass-files/sass/partials/_markdown.scss b/web/sass-files/sass/partials/_markdown.scss index ea5ccd2d2..6d1ecbfa0 100644 --- a/web/sass-files/sass/partials/_markdown.scss +++ b/web/sass-files/sass/partials/_markdown.scss @@ -9,11 +9,26 @@ } } #post-list { - .markdown-inline-img { - -moz-force-broken-image-icon: 1; - max-height: 500px; - height: 500px; - } + .markdown-inline-img { + -moz-force-broken-image-icon: 1; + max-height: 500px; + height: 500px; + } +} + +.post-body--code { + position: relative; +} + +.post-body--code__language { + position: absolute; + top: 0; + right: 0; + color: #fff; + background: #21586D; + padding: 4px 10px 5px 10px; + font-size: 13px; + opacity: 0.7; } .post__body { @@ -25,6 +40,9 @@ border: 0 none; @include opacity(0.2); } + code { + white-space: pre; + } } .markdown__table { background: #fff; -- cgit v1.2.3-1-g7c22