文件>偏好设置>外观>打开主题文件夹,在目录下创建base.user.css
并写入以下样式,然后重新打开typora生效。
.CodeMirror-lines { padding-left: 4px; }
.code-tooltip { box-shadow: 0 1px 1px 0 rgba(0, 28, 36, .3); border-top: 1px solid #eef2f2; }
.md-fences, tt { background-color: #f8f8f8; border-radius: 3px; padding: 0; padding-left: 4px !important; padding-right: 4px !important; font-size: 0.9em; }
.md-fences { margin-bottom: 15px; margin-top: 15px; padding-top: 8px; padding-bottom: 6px; }
.md-fences:hover { box-shadow: 0px 0px 10px #2a6fd6; transform: scale(1.0007); }
.md-task-list-item>input { margin-left: -1.3em; }
.md-fences { background-color: #f8f8f8; }
#write pre.md-meta-block { padding: 1rem; font-size: 85%; line-height: 1.45; background-color: #f7f7f7; border: 0; border-radius: 10px; color: #777777; margin-top: 0 !important; }
.mathjax-block>.code-tooltip { bottom: .375rem; }
#write .md-fences:not([mermaid-type]) { padding-top: 7px; border-radius: 5px; background-color: #282c34; color: #eeeeee; }
.code-tooltip .ty-input, .code-tooltip input { color: #eee; }
.CodeMirror-wrap .CodeMirror-scroll { padding-top: 20px; }
#write .md-fences:before { content: ""; z-index: 4; display: block; position: absolute; top: 7px; left: 19px; width: 15px; height: 15px; border-radius: 50%; float: left; background-color: #fa3534; }
#write .CodeMirror-scroll:before { content: ""; display: block; position: absolute; top: 0px; left: 35px; width: 15px; height: 15px; border-radius: 50%; float: left; z-index: 999; background-color: #ff9900; }
#write .md-fences::after { content: ""; z-index: 4; display: block; position: absolute; top: 7px; left: 59px; width: 15px; height: 15px; border-radius: 50%; float: left; background-color: #19be6b; }
.CodeMirror-line .cm-number,
.CodeMirror-line .cm-property { color: #f08d49; }
.CodeMirror-line .cm-variable-3,
.CodeMirror-line .cm-qualifier,
.CodeMirror-line .cm-variable-2 { color: #FFCB6B; }
.CodeMirror-line .cm-meta,
.CodeMirror-line .cm-atom,
.CodeMirror-line .cm-keyword { color: #cc99cd; }
.CodeMirror-line .cm-def,
.CodeMirror-line .cm-variable { color: #FFCB6B; }
.CodeMirror-line .cm-builtin { color: #82AAFF; }
.CodeMirror-line .cm-comment { color: #888; }
.CodeMirror-line .cm-string,
.CodeMirror-line .cm-string-2 { color: #7ec699 }
.CodeMirror-line .cm-operator { color: #67cdcc }
.CodeMirror div.CodeMirror-cursor { border-left: 1px solid #fff; z-index: 3; }
.CodeMirror-selected,
.CodeMirror-selectedtext { background: #666 !important; }
.CodeMirror-line .cm-tag { color: #F07178; }
.CodeMirror-line .cm-bracket { color: #FFF; }
.CodeMirror-line .cm-attribute { color: #FFCB6B; }
|