From 55cf54b65f66df62e79032ef13a36f53112b412b Mon Sep 17 00:00:00 2001 From: fen Date: Wed, 23 Oct 2013 11:35:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A2=84=E8=A7=88=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/css/style.css | 10 ++++++++++ admin/scss/components/_editor.scss | 11 +++++++++++ usr/themes/replica/style.css | 4 ++-- 3 files changed, 23 insertions(+), 2 deletions(-) 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 {