diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2015-10-26 09:50:40 -0400 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2015-10-26 09:50:40 -0400 |
commit | fa2c9878d243e109f2e4d05e5d04556133485f30 (patch) | |
tree | 259156636b616d5d42f15e749f1cb5eaec9cce53 /web/sass-files | |
parent | 845b07ea5f3214c4dc939b7eb65dcfba4e1e0b2a (diff) | |
parent | 51032ae11de9158ea6a4a4be6b73c621b1c75f2a (diff) | |
download | chat-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')
-rw-r--r-- | web/sass-files/sass/partials/_post.scss | 16 |
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%; |