summaryrefslogtreecommitdiffstats
path: root/web/sass-files
diff options
context:
space:
mode:
authorFlorian Orben <florian.orben@gmail.com>2015-10-24 03:25:26 +0200
committerFlorian Orben <florian.orben@gmail.com>2015-10-29 17:26:34 +0100
commit1e4510be3bb13c00583e14dbbcf99ade7a76c9bd (patch)
tree37dbba0913cee8cad56889271d36b4d66867d38c /web/sass-files
parent6683a4aaab1ffbdc91eeeb3cdaab6dbfd9a1f946 (diff)
downloadchat-1e4510be3bb13c00583e14dbbcf99ade7a76c9bd.tar.gz
chat-1e4510be3bb13c00583e14dbbcf99ade7a76c9bd.tar.bz2
chat-1e4510be3bb13c00583e14dbbcf99ade7a76c9bd.zip
highlight code in markdown blocks
Diffstat (limited to 'web/sass-files')
-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%;