修改预览样式

This commit is contained in:
fen 2013-10-23 11:35:37 +08:00
parent 893d60eef2
commit 55cf54b65f
3 changed files with 23 additions and 2 deletions

View File

@ -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

View File

@ -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;
}
}

View File

@ -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 {