summaryrefslogtreecommitdiffstats
path: root/web/sass-files/sass/partials/_post.scss
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2015-10-30 09:21:53 -0400
committerHarrison Healey <harrisonmhealey@gmail.com>2015-10-30 09:21:53 -0400
commitc2cd58a33f52c6567e39d8ba563425dc06916d41 (patch)
tree492f80236bf30aa05514f1428296cf6b0432f435 /web/sass-files/sass/partials/_post.scss
parentb686e51cfde4c50fba8e2797a532c8813ee8aade (diff)
parentd630567c91d01d5b78be84ac1a5e638e4e72516c (diff)
downloadchat-c2cd58a33f52c6567e39d8ba563425dc06916d41.tar.gz
chat-c2cd58a33f52c6567e39d8ba563425dc06916d41.tar.bz2
chat-c2cd58a33f52c6567e39d8ba563425dc06916d41.zip
Merge pull request #1220 from florianorben/PLT-395
PLT-395: Add syntax highlighting to Markdown code blocks
Diffstat (limited to 'web/sass-files/sass/partials/_post.scss')
-rw-r--r--web/sass-files/sass/partials/_post.scss16
1 files changed, 16 insertions, 0 deletions
diff --git a/web/sass-files/sass/partials/_post.scss b/web/sass-files/sass/partials/_post.scss
index 11816efd9..7709e17f3 100644
--- a/web/sass-files/sass/partials/_post.scss
+++ b/web/sass-files/sass/partials/_post.scss
@@ -473,6 +473,22 @@ body.ios {
white-space: nowrap;
cursor: pointer;
}
+ .post-body--code {
+ font-size: .97em;
+ position:relative;
+ .post-body--code__language {
+ position: absolute;
+ right: 0;
+ background: #fff;
+ cursor: default;
+ padding: 0.3em 0.5em 0.1em;
+ border-bottom-left-radius: 4px;
+ @include opacity(.3);
+ }
+ code {
+ white-space: pre;
+ }
+ }
}
.create-reply-form-wrap {
width: 100%;