Stackedit/static/themes/edit-theme-spearmint.js

72 lines
2.5 KiB
JavaScript
Raw Permalink Normal View History

2022-10-05 19:45:51 +00:00
function init_edit_theme_spearmint() {
const style = document.createElement('style');
style.id = 'edit-theme-spearmint';
style.type = 'text/css';
style.innerHTML = "/* 默认字体颜色、光标颜色、背景颜色*/\n\
.edit-theme--spearmint .editor__inner {\n\
color: #719692;\n\
caret-color: #719692;\n\
}\n\
.edit-theme--spearmint .editor {\n\
background-color: #E1F0EE;\n\
}\n\
/* 标题颜色 */\n\
.edit-theme--spearmint .editor__inner .cn-head,\n\
.edit-theme--spearmint .editor-in-page-buttons .icon {\n\
color: #199FA8;\n\
}\n\
/* 加粗颜色 */\n\
.edit-theme--spearmint .editor__inner .cn-strong {\n\
color: #69ADB5;\n\
}\n\
/* 信息块颜色 */\n\
.edit-theme--spearmint .editor__inner .blockquote {\n\
color: #25808A;\n\
}\n\
/* 源信息、md标记符号等非关键信息的颜色 */\n\
.edit-theme--spearmint .editor__inner .cl,\n\
.edit-theme--spearmint .editor__inner .hr,\n\
.edit-theme--spearmint .editor__inner .link,\n\
.edit-theme--spearmint .editor__inner .linkref, \n\
.edit-theme--spearmint .editor__inner .linkdef .url {\n\
color: rgba(102,128,153,0.6);\n\
}\n\
.edit-theme--spearmint .editor__inner .cn-toc, \n\
.edit-theme--spearmint .editor__inner .code,\n\
.edit-theme--spearmint .editor__inner .img,\n\
.edit-theme--spearmint .editor__inner .img-wrapper,\n\
.edit-theme--spearmint .editor__inner .imgref,\n\
.edit-theme--spearmint .editor__inner .cl-toc {\n\
color: rgba(102,128,153,0.6);\n\
background-color: rgba(102,128,153,0.075);\n\
}\n\
/* 代码块颜色 */\n\
.edit-theme--spearmint .editor__inner .cn-code {\n\
color: #199FA8;\n\
}\n\
/* 链接颜色 */\n\
.edit-theme--spearmint .editor__inner .img .cl-underlined-text,\n\
.edit-theme--spearmint .editor__inner .imgref .cl-underlined-text,\n\
.edit-theme--spearmint .editor__inner .link .cl-underlined-text,\n\
.edit-theme--spearmint .editor__inner .linkref .cl-underlined-text {\n\
color: #4CD7E0;\n\
}\n\
/* 图片原始链接背景颜色 */\n\
.edit-theme--spearmint .editor__inner .img-wrapper .img {\n\
background-color: transparent;\n\
}\n\
.edit-theme--spearmint .editor__inner .keyword {\n\
color: #47596b;\n\
}\n\
.edit-theme--spearmint .editor__inner .email,\n\
.edit-theme--spearmint .editor__inner .cl-title,\n\
.edit-theme--spearmint .editor__inner .tag,\n\
.edit-theme--spearmint .editor__inner .latex,\n\
.edit-theme--spearmint .editor__inner .math,\n\
.edit-theme--spearmint .editor__inner .entity,\n\
.edit-theme--spearmint .editor__inner .pre [class*='language-'] {\n\
color: #719692;\n\
}";
document.head.appendChild(style);
}
init_edit_theme_spearmint();