mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-05-03 20:47:49 +08:00
feat:新增引用样式
This commit is contained in:
parent
bcfda7082b
commit
c94651eced
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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 {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user