summaryrefslogtreecommitdiffstats
path: root/web/sass-files/sass
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2015-10-26 09:50:40 -0400
committerHarrison Healey <harrisonmhealey@gmail.com>2015-10-26 09:50:40 -0400
commitfa2c9878d243e109f2e4d05e5d04556133485f30 (patch)
tree259156636b616d5d42f15e749f1cb5eaec9cce53 /web/sass-files/sass
parent845b07ea5f3214c4dc939b7eb65dcfba4e1e0b2a (diff)
parent51032ae11de9158ea6a4a4be6b73c621b1c75f2a (diff)
downloadchat-fa2c9878d243e109f2e4d05e5d04556133485f30.tar.gz
chat-fa2c9878d243e109f2e4d05e5d04556133485f30.tar.bz2
chat-fa2c9878d243e109f2e4d05e5d04556133485f30.zip
Merge pull request #1170 from florianorben/PLT-395
PLT-395: Add syntax highlighting to Markdown code blocks
Diffstat (limited to 'web/sass-files/sass')
-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 f5fc1631f..3fac1fed9 100644
--- a/web/sass-files/sass/partials/_post.scss
+++ b/web/sass-files/sass/partials/_post.scss
@@ -466,6 +466,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%;