/*
|--------------------------------------------------------------------------
| Mweb 可用的 基于 Laravel-china 的样式
|--------------------------------------------------------------------------
|
| Author : Mark (zhaody901@126.com)
|
*/
.markdown-body {
font-family: NotoSansHans-Regular, AvenirNext-Regular, arial,
Hiragino Sans GB, "Microsoft Yahei", "Hiragino Sans GB",
"WenQuanYi Micro Hei", sans-serif;
font-size: 15px;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
color: #555;
overflow: hidden;
line-height: 1.6;
word-wrap: break-word;
padding: 0.8em 1.2em;
}
.markdown-body a {
background: transparent;
color: #05a1a2;
text-decoration: none;
}
.markdown-body a:active,
.markdown-body a:hover {
outline: 0;
color: #22ddde;
}
.markdown-body ol li {
margin: 8px 0;
}
.markdown-body pre[class*="language-"] {
margin: 1.2em 0 !important;
}
.markdown-body strong {
font-weight: 700;
}
.markdown-body h1 {
margin: 0.67em 0;
font-size: 30px;
padding-bottom: 0.3em;
line-height: 1.2;
border-bottom: 2px solid #eee;
}
.markdown-body img {
border: 0;
max-width: 100%;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
margin: 15px 0;
overflow: hidden;
border: 0;
border-bottom: 1px solid #ddd;
height: 4px;
padding: 0;
background-color: #e7e7e7;
}
.markdown-body table {
border-collapse: collapse;
border-spacing: 0;
display: block;
width: 100%;
overflow: auto;
margin: 25px 0;
}
.markdown-body td,
.markdown-body th {
padding: 0;
}
.markdown-body * {
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body a:hover,
.markdown-body a:focus,
.markdown-body a:active {
text-decoration: none;
}
.markdown-body hr:before,
.markdown-body hr:after {
display: table;
content: " ";
}
.markdown-body hr:after {
clear: both;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
position: relative;
margin-top: 1em;
margin-bottom: 1em;
font-weight: 700;
line-height: 1.4;
}
.markdown-body h2 {
padding-bottom: 0.3em;
font-size: 21px;
line-height: 1.225;
border-bottom: 2px solid #eee;
}
.markdown-body h3 {
font-size: 16px;
line-height: 1.43;
}
.markdown-body h4 {
font-size: 14px;
}
.markdown-body h5 {
font-size: 12px;
}
.markdown-body h6 {
font-size: 11px;
color: #777;
}
.markdown-body blockquote {
font-family: monaco, Consolas, monospace;
font-size: inherit;
color: #777;
border-left: 4px solid #ddd;
margin: 15px 0 !important;
background-color: #f7f7f7;
padding: 6px 8px 6px 12px;
}
.markdown-body ul,
.markdown-body ol {
margin-top: 0;
margin-bottom: 0;
padding-left: 2em;
}
.markdown-body ol ol {
list-style-type: lower-roman;
}
.markdown-body dd {
margin-left: 0;
}
.markdown-body code,
.markdown-body pre {
font-family: monaco, Consolas, "Liberation Mono", Menlo, Courier, monospace;
font-size: 13px;
margin-top: 0;
margin-bottom: 0;
overflow: auto;
background: rgba(249, 248, 247, 0.53);
border: 1px solid #efefef;
border-radius: 0;
}
.markdown-body .markdown-body > :first-child {
margin-top: 0 !important;
}
.markdown-body .markdown-body > :last-child {
margin-bottom: 0 !important;
}
.markdown-body .anchor {
position: absolute;
top: 0;
bottom: 0;
left: 0;
display: block;
padding-right: 6px;
padding-left: 30px;
margin-left: -30px;
}
.markdown-body .anchor:focus {
outline: none;
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 12px;
}
.markdown-body ol ol,
.markdown-body ol ul {
margin-top: 0;
margin-bottom: 0;
}
.markdown-body li > p {
margin-top: 16px;
}
.markdown-body dl {
padding: 0;
}
.markdown-body dl dt {
padding: 0;
margin-top: 16px;
font-size: 1em;
font-style: italic;
font-weight: 700;
}
.markdown-body dl dd {
padding: 0 16px;
margin-bottom: 16px;
}
.markdown-body blockquote > :first-child {
margin-top: 12px;
}
.markdown-body blockquote > :last-child {
margin-bottom: 12px;
}
.markdown-body table th {
font-weight: 700;
}
.markdown-body table th,
.markdown-body table td {
padding: 6px 13px;
border: 1px solid #ddd;
}
.markdown-body table tr {
background-color: #fff;
border-top: 1px solid #ccc;
}
.markdown-body table tr:nth-child(2n) {
background-color: #f8f8f8;
}
.markdown-body img:not(.emoji) {
border: 1px solid #ddd;
box-shadow: 0 0 30px #ccc;
-moz-box-shadow: 0 0 30px #ccc;
-webkit-box-shadow: 0 0 30px #ccc;
margin-bottom: 30px;
margin-top: 10px;
}
.markdown-body code {
margin: 5px;
color: #858080;
border-radius: 4px;
background-color: #f9fafa;
border: 1px solid #e4e4e4;
max-width: 740px;
overflow-x: auto;
font-size: 0.9em;
padding: 1px 2px;
}
.markdown-body code:before,
.markdown-body code:after {
letter-spacing: -0.2em;
content: "\00a0";
}
.markdown-body pre > code {
padding: 0;
margin: 0;
font-size: 13px;
white-space: pre;
background: transparent;
border: 0;
color: #e6e8d3;
}
.markdown-body p > code {
margin-left: 0;
}
.markdown-body .highlight {
margin-bottom: 16px;
background: #fff;
}
.markdown-body .highlight pre,
.markdown-body pre {
padding: 0.5em;
font-size: 1.15em;
color: #2d2d2d;
background: none;
font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
word-wrap: normal;
line-height: 1.15;
-moz-tab-size: 4;
tab-size: 4;
-webkit-hyphens: none;
-ms-hyphens: none;
hyphens: none;
margin: 0.6em 0 !important;
overflow: auto;
background: rgba(249, 248, 247, 0.53);
border: 1px solid #efefef;
border-radius: 0;
}
.markdown-body .highlight pre {
margin-bottom: 0;
}
.markdown-body pre {
word-wrap: normal;
}
.markdown-body pre code {
color: #2d2d2d;
display: inline;
max-width: initial;
padding: 0;
margin: 0;
overflow: initial;
line-height: 1.5;
word-wrap: normal;
background-color: transparent;
border: 0;
}
.markdown-body pre code:before,
.markdown-body pre code:after {
content: normal;
}
.markdown-body > h2:first-child {
margin-top: 0.4em;
}
.markdown-body blockquote {
margin: 15px 0;
}
/*
Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull <sourdrums@gmail.com>
*/
.markdown-body .hljs {
display: block;
overflow-x: auto;
padding: 4px;
color: #657b83;
-webkit-text-size-adjust: none;
}
.markdown-body .hljs-comment,
.markdown-body .diff .hljs-header,
.markdown-body .hljs-doctype,
.markdown-body .hljs-pi,
.markdown-body .lisp .hljs-string {
color: #93a1a1;
}
/* Solarized Green */
.markdown-body .hljs-keyword,
.markdown-body .hljs-winutils,
.markdown-body .method,
.markdown-body .hljs-addition,
.markdown-body .css .hljs-tag,
.markdown-body .hljs-request,
.markdown-body .hljs-status,
.markdown-body .nginx .hljs-title {
color: #859900;
}
/* Solarized Cyan */
.markdown-body .hljs-number,
.markdown-body .hljs-command,
.markdown-body .hljs-string,
.markdown-body .hljs-tag .hljs-value,
.markdown-body .hljs-rule .hljs-value,
.markdown-body .hljs-doctag,
.markdown-body .tex .hljs-formula,
.markdown-body .hljs-regexp,
.markdown-body .hljs-hexcolor,
.markdown-body .hljs-link_url {
color: #2aa198;
}
/* Solarized Blue */
.markdown-body .hljs-title,
.markdown-body .hljs-localvars,
.markdown-body .hljs-chunk,
.markdown-body .hljs-decorator,
.markdown-body .hljs-built_in,
.markdown-body .hljs-identifier,
.markdown-body .vhdl .hljs-literal,
.markdown-body .hljs-id,
.markdown-body .css .hljs-function,
.markdown-body .hljs-name {
color: #268bd2;
}
/* Solarized Yellow */
.markdown-body .hljs-attribute,
.markdown-body .hljs-variable,
.markdown-body .lisp .hljs-body,
.markdown-body .smalltalk .hljs-number,
.markdown-body .hljs-constant,
.markdown-body .hljs-class .hljs-title,
.markdown-body .hljs-parent,
.markdown-body .hljs-type,
.markdown-body .hljs-link_reference {
color: #b58900;
}
/* Solarized Orange */
.markdown-body .hljs-preprocessor,
.markdown-body .hljs-preprocessor .hljs-keyword,
.markdown-body .hljs-pragma,
.markdown-body .hljs-shebang,
.markdown-body .hljs-symbol,
.markdown-body .hljs-symbol .hljs-string,
.markdown-body .diff .hljs-change,
.markdown-body .hljs-special,
.markdown-body .hljs-attr_selector,
.markdown-body .hljs-subst,
.markdown-body .hljs-cdata,
.markdown-body .css .hljs-pseudo,
.markdown-body .hljs-header {
color: #cb4b16;
}
/* Solarized Red */
.markdown-body .hljs-deletion,
.markdown-body .hljs-important {
color: #dc322f;
}
/* Solarized Violet */
.markdown-body .hljs-link_label {
color: #6c71c4;
}
.markdown-body .hljs-formula {
background: #eee8d5;
}
修改日志
- 2020-04-01 : 加入 Mono 的默认字体
- 2017-09-21 (减少
p > code
代码缩进)