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

72 lines
2.5 KiB
JavaScript
Raw Normal View History

function init_edit_theme_lavender() {
const style = document.createElement('style');
style.id = 'edit-theme-lavender';
style.type = 'text/css';
style.innerHTML = "/* 默认字体颜色、光标颜色、背景颜色*/\n\
.edit-theme--lavender .editor__inner {\n\
color: #E0CEED;\n\
caret-color: #E0CEED;\n\
}\n\
.edit-theme--lavender .editor {\n\
background-color: #29222E;\n\
}\n\
/* 标题颜色 */\n\
.edit-theme--lavender .editor__inner .cn-head,\n\
.edit-theme--lavender .editor-in-page-buttons .icon {\n\
color: #F25AE6;\n\
}\n\
/* 加粗颜色 */\n\
.edit-theme--lavender .editor__inner .cn-strong {\n\
color: #8E6DA6;\n\
}\n\
/* 信息块颜色 */\n\
.edit-theme--lavender .editor__inner .blockquote {\n\
color: #B657FF;\n\
}\n\
/* 源信息、md标记符号等非关键信息的颜色 */\n\
.edit-theme--lavender .editor__inner .cl,\n\
.edit-theme--lavender .editor__inner .hr,\n\
.edit-theme--lavender .editor__inner .link,\n\
.edit-theme--lavender .editor__inner .linkref, \n\
.edit-theme--lavender .editor__inner .linkdef .url {\n\
color: rgba(139,158,177,0.8);\n\
}\n\
.edit-theme--lavender .editor__inner .cn-toc, \n\
.edit-theme--lavender .editor__inner .code,\n\
.edit-theme--lavender .editor__inner .img,\n\
.edit-theme--lavender .editor__inner .img-wrapper,\n\
.edit-theme--lavender .editor__inner .imgref,\n\
.edit-theme--lavender .editor__inner .cl-toc {\n\
color: rgba(139,158,177,0.8);\n\
background-color: rgba(0,0,0,0.33);\n\
}\n\
/* 代码块颜色 */\n\
.edit-theme--lavender .editor__inner .cn-code {\n\
color: #8E69C9;\n\
}\n\
/* 链接颜色 */\n\
.edit-theme--lavender .editor__inner .img .cl-underlined-text,\n\
.edit-theme--lavender .editor__inner .imgref .cl-underlined-text,\n\
.edit-theme--lavender .editor__inner .link .cl-underlined-text,\n\
.edit-theme--lavender .editor__inner .linkref .cl-underlined-text {\n\
color: #F5B0EF;\n\
}\n\
/* 图片原始链接背景颜色 */\n\
.edit-theme--lavender .editor__inner .img-wrapper .img {\n\
background-color: transparent;\n\
}\n\
.edit-theme--lavender .editor__inner .keyword {\n\
color: #47596b;\n\
}\n\
.edit-theme--lavender .editor__inner .email,\n\
.edit-theme--lavender .editor__inner .cl-title,\n\
.edit-theme--lavender .editor__inner .tag,\n\
.edit-theme--lavender .editor__inner .latex,\n\
.edit-theme--lavender .editor__inner .math,\n\
.edit-theme--lavender .editor__inner .entity,\n\
.edit-theme--lavender .editor__inner .pre [class*='language-'] {\n\
color: #E0CEED;\n\
}";
document.head.appendChild(style);
}
init_edit_theme_lavender();