feat:新增引用样式

This commit is contained in:
lifei6671 2018-09-04 10:22:02 +08:00
parent bcfda7082b
commit c94651eced
4 changed files with 40 additions and 4 deletions

View File

@ -19,10 +19,7 @@
word-wrap: break-word;
text-align: left
}
.editormd-preview-container-body blockquote,.editormd-preview-container blockquote p {
font-size: 14px;
color: #999;
}
.editormd-preview-container blockquote, .editormd-html-preview blockquote{
font-style: normal;
}

View File

@ -3841,6 +3841,14 @@
font-size: 14px;
font-style: italic;
}
.editormd-preview-container blockquote.default, .editormd-html-preview blockquote.default {
border-left: 5px solid #D0E3F0;
margin: 8px 0;
padding: 8px 16px;
background-color: #F0F7FD;
color: #0382AD;
}
.editormd-preview-container p code, .editormd-html-preview p code {
margin-left: 5px;
margin-right: 4px;

View File

@ -3124,6 +3124,7 @@
margin-left: 0;
font-size: 14px;
font-style: italic;
line-height:1.7em;
}
.editormd-preview-container p code, .editormd-html-preview p code {
margin-left: 5px;
@ -3188,6 +3189,35 @@
font-family: "YaHei Consolas Hybrid", Consolas, "Microsoft YaHei", "Malgun Gothic", "Segoe UI", Helvetica, Arial !important;
}
.editormd-preview-container blockquote.default, .editormd-html-preview blockquote.default {
border-left: 5px solid #D0E3F0;
margin: 8px 0;
padding: 8px 16px;
background-color: #F0F7FD;
color: #0382AD;
font-size: 14px;
}
.editormd-preview-container blockquote.info, .editormd-html-preview blockquote.info {
border-left-color: #5bc0de;
color: #5bc0de;
background-color: #f4f8fa
}
.editormd-preview-container blockquote.warning, .editormd-html-preview blockquote.warning {
background-color: #fcf8f2;
border-color: #f0ad4e;
color: #f0ad4e
}
.editormd-preview-container blockquote.danger, .editormd-html-preview blockquote.danger {
color: #d9534f;
background-color: #fdf7f7;
border-color: #d9534f
}
.editormd-preview-container blockquote.success, .editormd-html-preview blockquote.success {
background-color: #f3f8f3;
border-color: #50af51;
color: #50af51
}
/*! Pretty printing styles. Used with prettify.js. */
/* SPAN elements with the classes below are added by prettyprint. */
.pln {

View File

@ -3474,6 +3474,7 @@
markedRenderer.blockquote = function($quote) {
console.log($quote)
var $class = "default";
if($quote.indexOf("[info]") === 0){
$class = "info";
$quote = $quote.substr(6);