diff --git a/admin/css/style.css b/admin/css/style.css index 071cffb4..0d0fa276 100644 --- a/admin/css/style.css +++ b/admin/css/style.css @@ -1111,6 +1111,16 @@ a.operate-reply { padding: 10px 20px; } #wmd-preview img { max-width: 100%; } + #wmd-preview code, #wmd-preview pre { + background: #F6F6F3; + font-size: .92857em; } + #wmd-preview pre { + padding: 1em; } + #wmd-preview blockquote { + margin: 1em 1.5em; + padding-left: 1.5em; + border-left: 4px solid #E9E9E6; + color: #777; } /** * Jquery Timepicker diff --git a/admin/scss/components/_editor.scss b/admin/scss/components/_editor.scss index af191471..999a0572 100644 --- a/admin/scss/components/_editor.scss +++ b/admin/scss/components/_editor.scss @@ -66,4 +66,15 @@ background: #FFF; padding: 10px 20px; img { max-width: 100%; } + code, pre { + background: #F6F6F3; + font-size: .92857em; + } + pre { padding: 1em; } + blockquote { + margin: 1em 1.5em; + padding-left: 1.5em; + border-left: 4px solid #E9E9E6; + color: #777; + } } \ No newline at end of file diff --git a/usr/themes/replica/style.css b/usr/themes/replica/style.css index ba8ce8fd..f06ab626 100644 --- a/usr/themes/replica/style.css +++ b/usr/themes/replica/style.css @@ -322,12 +322,12 @@ textarea { /* ----------------- * Content format *--------------- */ -.post-content, .comment-content, #wmd-preview { +.post-content, .comment-content { line-height: 1.5; word-break: break-all; word-wrap: break-word; } -.post-content h2, .comment-content h2, #wmd-preview h2 { +.post-content h2, .comment-content h2 { font-size: 1.28571em; } .post-content img, .comment-content img {