2019-11-05 09:52:32 +08:00
|
|
|
let orangeTheme = {
|
2019-11-01 17:16:40 +08:00
|
|
|
BASE: {
|
|
|
|
'text-align': 'left',
|
|
|
|
'color': '#3f3f3f',
|
|
|
|
'line-height': '1.75',
|
|
|
|
},
|
|
|
|
BASE_BLOCK: {
|
|
|
|
'margin': '1em 8px'
|
|
|
|
},
|
|
|
|
block: {
|
|
|
|
h1: {
|
|
|
|
'font-size': '1.2em',
|
|
|
|
'text-align': 'center',
|
|
|
|
'font-weight': 'bold',
|
|
|
|
'display': 'table',
|
2019-11-03 16:05:04 +08:00
|
|
|
'margin': '2em auto 1em',
|
2019-11-01 17:16:40 +08:00
|
|
|
'padding': '0 1em',
|
2019-11-05 09:52:32 +08:00
|
|
|
'border-bottom': '2px solid rgba(255, 95, 46, 0.9)'
|
2019-11-01 17:16:40 +08:00
|
|
|
},
|
|
|
|
h2: {
|
2019-11-04 19:34:30 +08:00
|
|
|
'font-size': '1.1em',
|
2019-11-01 17:16:40 +08:00
|
|
|
'text-align': 'center',
|
|
|
|
'font-weight': 'bold',
|
|
|
|
'display': 'table',
|
2019-11-03 16:05:04 +08:00
|
|
|
'margin': '4em auto 2em',
|
|
|
|
'padding': '0 0.2em',
|
2019-11-05 09:52:32 +08:00
|
|
|
'background': 'rgba(255, 95, 46, 0.9)',
|
2019-11-03 16:05:04 +08:00
|
|
|
'color': '#fff'
|
2019-11-01 17:16:40 +08:00
|
|
|
},
|
|
|
|
h3: {
|
|
|
|
'font-weight': 'bold',
|
|
|
|
'font-size': '1.1em',
|
|
|
|
'margin': '2em 8px 0.75em 0',
|
2019-11-03 16:05:04 +08:00
|
|
|
'line-height': '1.2',
|
2019-11-01 17:16:40 +08:00
|
|
|
'padding-left': '8px',
|
2019-11-05 09:52:32 +08:00
|
|
|
'border-left': '3px solid rgba(255, 95, 46, 0.9)'
|
2019-11-01 17:16:40 +08:00
|
|
|
},
|
|
|
|
h4: {
|
|
|
|
'font-weight': 'bold',
|
|
|
|
'font-size': '1em',
|
2019-11-03 16:05:04 +08:00
|
|
|
'margin': '2em 8px 0.5em',
|
2019-11-01 17:16:40 +08:00
|
|
|
},
|
|
|
|
p: {
|
|
|
|
'margin': '1.5em 8px',
|
|
|
|
'letter-spacing': '0.1em'
|
|
|
|
},
|
|
|
|
blockquote: {
|
|
|
|
'font-style': 'normal',
|
|
|
|
'border-left': 'none',
|
|
|
|
'padding': '1em',
|
|
|
|
'border-radius': '4px',
|
|
|
|
'color': '#FEEEED',
|
|
|
|
'background': 'rgba(27,31,35,.05)',
|
|
|
|
'margin': '2em 8px'
|
|
|
|
},
|
|
|
|
blockquote_p: {
|
|
|
|
'letter-spacing': '0.1em',
|
|
|
|
'color': 'rgb(80, 80, 80)',
|
|
|
|
'font-family': 'PingFangSC-light, PingFangTC-light, Open Sans, Helvetica Neue, sans-serif',
|
|
|
|
'font-size': '1em',
|
|
|
|
'display': 'inline',
|
|
|
|
},
|
|
|
|
code: {
|
|
|
|
'font-size': '80%',
|
|
|
|
'overflow': 'auto',
|
|
|
|
'color': '#333',
|
|
|
|
'background': 'rgb(247, 247, 247)',
|
|
|
|
'border-radius': '2px',
|
|
|
|
'padding': '10px',
|
|
|
|
'line-height': '1.5',
|
|
|
|
'border': '1px solid rgb(236,236,236)',
|
|
|
|
'margin': '20px 0',
|
|
|
|
},
|
|
|
|
image: {
|
|
|
|
'border-radius': '4px',
|
|
|
|
'display': 'block',
|
|
|
|
'margin': '0.5em auto',
|
2019-11-03 16:05:04 +08:00
|
|
|
'width': '100% !important'
|
2019-11-01 17:16:40 +08:00
|
|
|
},
|
|
|
|
image_org: {
|
|
|
|
'border-radius': '4px',
|
|
|
|
'display': 'block'
|
|
|
|
},
|
|
|
|
ol: {
|
|
|
|
'margin-left': '0',
|
|
|
|
'padding-left': '1em'
|
|
|
|
},
|
|
|
|
ul: {
|
|
|
|
'margin-left': '0',
|
|
|
|
'padding-left': '1em',
|
|
|
|
'list-style': 'circle'
|
|
|
|
},
|
|
|
|
footnotes: {
|
|
|
|
'margin': '0.5em 8px',
|
|
|
|
'font-size': '80%'
|
|
|
|
},
|
|
|
|
figure: {
|
|
|
|
'margin': '1.5em 8px',
|
|
|
|
}
|
|
|
|
},
|
|
|
|
inline: {
|
|
|
|
listitem: {
|
|
|
|
'text-indent': '-1em',
|
|
|
|
'display': 'block',
|
|
|
|
'margin': '0.5em 8px'
|
|
|
|
},
|
|
|
|
codespan: {
|
|
|
|
'font-size': '90%',
|
|
|
|
'color': '#d14',
|
|
|
|
'background': 'rgba(27,31,35,.05)',
|
|
|
|
'padding': '3px 5px',
|
|
|
|
'border-radius': '4px',
|
|
|
|
},
|
|
|
|
link: {
|
2019-11-01 19:27:56 +08:00
|
|
|
'color': '#576b95'
|
2019-11-01 17:16:40 +08:00
|
|
|
},
|
|
|
|
wx_link: {
|
2019-11-01 19:27:56 +08:00
|
|
|
'color': '#576b95',
|
2019-11-01 17:16:40 +08:00
|
|
|
'text-decoration': 'none',
|
|
|
|
},
|
|
|
|
strong: {
|
2019-11-05 09:52:32 +08:00
|
|
|
'color': 'rgba(255, 95, 46, 0.9)',
|
2019-11-01 17:16:40 +08:00
|
|
|
'font-weight': 'bold',
|
|
|
|
},
|
|
|
|
table: {
|
|
|
|
'border-collapse': 'collapse',
|
|
|
|
'text-align': 'center',
|
|
|
|
'margin': '1em 8px'
|
|
|
|
},
|
|
|
|
thead: {
|
|
|
|
'background': 'rgba(0, 0, 0, 0.05)'
|
|
|
|
},
|
|
|
|
td: {
|
|
|
|
'font-size': '80%',
|
|
|
|
'border': '1px solid #dfdfdf',
|
|
|
|
'padding': '0.25em 0.5em'
|
|
|
|
},
|
|
|
|
footnote: {
|
|
|
|
'font-size': '12px'
|
|
|
|
},
|
|
|
|
figcaption: {
|
|
|
|
'text-align': 'center',
|
|
|
|
'color': '#888',
|
|
|
|
'font-size': '0.8em'
|
|
|
|
}
|
|
|
|
}
|
2019-11-03 16:05:04 +08:00
|
|
|
};
|