修改一个typora的vue主题

在这里插入图片描述

:root {
    --side-bar-bg-color: #fff;
    --control-text-color: #777;
    --font-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    --font-monospace: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace !important;
}

html {
    font-size: 16px;
}

body {
    color: #34495e;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6rem;
    letter-spacing: 0;
    margin: 0;
    overflow-x: hidden;
}

#write {
    max-width: 96%;
    margin: 0 auto;
    padding: 20px 30px 100px;
}

#write p {
    line-height: 1.6rem;
    word-spacing: .05rem;
}

#write ol li {
    padding-left: 0.5rem;
}

#write > ul:first-child,
#write > ol:first-child {
    margin-top: 30px;
}

body > *:first-child {
    margin-top: 0 !important;
}

body > *:last-child {
    margin-bottom: 0 !important;
}

a {
    color: #42b983;
    font-weight: 600;
    padding: 0 2px;
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    position: relative;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-weight: bold;
    line-height: 1.4;
    cursor: text;
}

h1:hover a.anchor,
h2:hover a.anchor,
h3:hover a.anchor,
h4:hover a.anchor,
h5:hover a.anchor,
h6:hover a.anchor {
    text-decoration: none;
}

h1 tt,
h1 code {
    font-size: inherit !important;
}

h2 tt,
h2 code {
    font-size: inherit !important;
}

h3 tt,
h3 code {
    font-size: inherit !important;
}

h4 tt,
h4 code {
    font-size: inherit !important;
}

h5 tt,
h5 code {
    font-size: inherit !important;
}

h6 tt,
h6 code {
    font-size: inherit !important;
}

h2 a,
h3 a {
    color: #34495e;
}

h1 {
    padding-bottom: .4rem;
    font-size: 2.2rem;
    line-height: 1.3;
    color: #ff6b6b; /* 鲜红色 */
}

h2 {
    font-size: 1.75rem;
    line-height: 1.225;
    margin: 35px 0px 15px 0px;
    padding-bottom: 0.5em;
    border-bottom: 2px solid hsl(0, 0%, 20%);
    color: #4ecdc4; /* 青绿色 */
}

h3 {
    font-size: 1.4rem;
    line-height: 1.43;
    margin: 20px 0px 7px 0px;
    color: #45b7d1; /* 天蓝色 */
}

h4 {
    font-size: 1.2rem;
    color: #f9d56e; /* 金黄色 */
}

h5 {
    font-size: 1rem;
    color: #ff8c42; /* 橙色 */
}

h6 {
    font-size: 1rem;
    color: #d387ff; /* 淡紫色 */
}

p,
blockquote,
ul,
ol,
dl,
table {
    margin: 1em 0;
}

li > ol,
li > ul {
    margin: 0 0;
}

hr {
    height: 2px;
    padding: 0;
    margin: 16px 0;
    background-color: #e7e7e7;
    border: 0 none;
    overflow: hidden;
    box-sizing: content-box;
}

body > h2:first-child {
    margin-top: 0;
    padding-top: 0;
}

body > h1:first-child {
    margin-top: 0;
    padding-top: 0;
}

body > h1:first-child + h2 {
    margin-top: 0;
    padding-top: 0;
}

body > h3:first-child,
body > h4:first-child,
body > h5:first-child,
body > h6:first-child {
    margin-top: 0;
    padding-top: 0;
}

a:first-child h1,
a:first-child h2,
a:first-child h3,
a:first-child h4,
a:first-child h5,
a:first-child h6 {
    margin-top: 0;
    padding-top: 0;
}

h1 p,
h2 p,
h3 p,
h4 p,
h5 p,
h6 p {
    margin-top: 0;
}

li p.first {
    display: inline-block;
}

ul,
ol {
    padding-left: 30px;
}

ul:first-child,
ol:first-child {
    margin-top: 0;
}

ul:last-child,
ol:last-child {
    margin-bottom: 0;
}

blockquote {
    border-left: 4px solid #42b983;
    padding: 10px 15px;
    color: #777;
    background-color: rgba(66, 185, 131, .1);
}

table {
    padding: 0;
    word-break: initial;
}

table tr {
    border-top: 1px solid #dfe2e5;
    margin: 0;
    padding: 0;
}

table tr:nth-child(2n),
thead {
    background-color: #fafafa;
}

table tr th {
    font-weight: bold;
    border: 1px solid #dfe2e5;
    border-bottom: 0;
    text-align: left;
    margin: 0;
    padding: 6px 13px;
}

table tr td {
    border: 1px solid #dfe2e5;
    text-align: left;
    margin: 0;
    padding: 6px 13px;
}

table tr th:first-child,
table tr td:first-child {
    margin-top: 0;
}

table tr th:last-child,
table tr td:last-child {
    margin-bottom: 0;
}

#write strong {
    padding: 0 1px;
}

#write em {
    padding: 0 5px 0 2px;
}

#write table thead th {
    background-color: #f2f2f2;
}

#write .CodeMirror-gutters {
    border-right: none;
}

#write .md-fences {
    font-size: 0.9rem;
    margin: 0.8rem 0;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    background-color: #282c34;
    color: #abb2bf;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* 滚动条样式 */
#write .md-fences::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

#write .md-fences::-webkit-scrollbar-thumb {
    background: #4b5263;
    border-radius: 4px;
}

#write .md-fences::-webkit-scrollbar-track {
    background: #282c34;
    border-radius: 4px;
}

.md-fences .code-tooltip {
    background-color: #282c34;
    border-radius: 5px 5px 0 0;
}

.cm-s-inner .CodeMirror-linenumber {
    color: #606366;
}

.cm-s-inner.CodeMirror {
    background-color: #282c34;
    color: #abb2bf;
    border-radius: 5px;
}

/* 代码高亮颜色 */
.cm-s-inner .cm-keyword {
    color: #c678dd;
}

.cm-s-inner .cm-operator {
    color: #56b6c2;
}

.cm-s-inner .cm-variable-2 {
    color: #e06c75;
}

.cm-s-inner .cm-variable-3, .cm-s-inner .cm-type {
    color: #d19a66;
}

.cm-s-inner .cm-builtin {
    color: #e6c07b;
}

.cm-s-inner .cm-atom {
    color: #d19a66;
}

.cm-s-inner .cm-number {
    color: #d19a66;
}

.cm-s-inner .cm-def {
    color: #61afef;
}

.cm-s-inner .cm-string {
    color: #98c379;
}

.cm-s-inner .cm-string-2 {
    color: #98c379;
}

.cm-s-inner .cm-comment {
    color: #5c6370;
    font-style: italic;
}

.cm-s-inner .cm-variable {
    color: #e06c75;
}

.cm-s-inner .cm-tag {
    color: #e06c75;
}

.cm-s-inner .cm-meta {
    color: #61afef;
}

.cm-s-inner .cm-attribute {
    color: #d19a66;
}

.cm-s-inner .cm-property {
    color: #61afef;
}

.cm-s-inner .cm-qualifier {
    color: #d19a66;
}

.cm-s-inner .cm-error {
    color: #f44747;
    background-color: transparent;
}

#write .CodeMirror-wrap .CodeMirror-code pre {
    padding-left: 12px;
}

#write code, tt {
    padding: 2px 4px;
    border: 1px solid rgba(187, 145, 248, 0.4);
    background-color: #ECF8F2;
    color: #4a148c;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 2px;
    margin: 0 2px;
}

tt {
    margin: 0 2px;
}

#write .md-footnote {
    background-color: #f8f8f8;
    color: #e96900;
}

/* heighlight. */
#write mark {
    background-color: #EBFFEB;
    border-radius: 2px;
    padding: 2px 4px;
    margin: 0 2px;
    color: #222;
    font-weight: 500;
}

#write del {
    padding: 1px 2px;
}

.cm-s-inner .cm-link,
.cm-s-inner.cm-link {
    color: #61AFEF;
    text-decoration: underline;
}

.cm-s-inner .cm-string {
    color: #22a2c9;
}

.cm-s-inner ::selection {
    background: rgba(113, 124, 180, 0.2);
}

.md-task-list-item > input {
    margin-left: -1.3em;
}

@media print {
    html {
        font-size: 13px;
    }

    table,
    pre {
        page-break-inside: avoid;
    }

    pre {
        word-wrap: break-word;
    }
}

.md-fences {
    background-color: #f8f8f8;
}

.md-diagram-panel {
    position: static !important;
}

#write pre.md-meta-block {
    padding: 1rem;
    font-size: 85%;
    line-height: 1.45;
    background-color: #f7f7f7;
    border: 0;
    border-radius: 3px;
    color: #777777;
    margin-top: 0 !important;
}

.mathjax-block > .code-tooltip {
    bottom: .375rem;
}

#write > h3.md-focus:before {
    left: -1.5625rem;
    top: .375rem;
}

#write > h4.md-focus:before {
    left: -1.5625rem;
    top: .285714286rem;
}

#write > h5.md-focus:before {
    left: -1.5625rem;
    top: .285714286rem;
}

#write > h6.md-focus:before {
    left: -1.5625rem;
    top: .285714286rem;
}

.md-image > .md-meta {
    border-radius: 3px;
    padding: 2px 0 0 4px;
    font-size: 0.9em;
    color: inherit;
}

.md-tag {
    color: inherit;
}

.md-toc {
    margin-top: 20px;
    padding-bottom: 20px;
}

.sidebar-tabs {
    border-bottom: none;
}

#typora-quick-open {
    border: 1px solid #ddd;
    background-color: #f8f8f8;
}

#typora-quick-open-item {
    background-color: #FAFAFA;
    border-color: #FEFEFE #e5e5e5 #e5e5e5 #eee;
    border-style: solid;
    border-width: 1px;
}

#md-notification:before {
    top: 10px;
}

/** focus mode */

.on-focus-mode blockquote {
    border-left-color: rgba(85, 85, 85, 0.12);
}

header,
.context-menu,
.megamenu-content,
.file-node-content:hover .file-node-icon,
.file-node-content:hover .file-node-open-state {
    visibility: visible;
}

.md-lang {
    color: #b4654d;
}

.html-for-mac .context-menu {
    --item-hover-bg-color: #E6F0FE;
}

/* 光标样式 */
.CodeMirror-cursor {
    border-left: 2px solid #528bff !important;
    background-color: transparent !important;
    width: 0 !important;
}

/* 选中文本的背景色 */
.cm-s-inner ::selection {
    background: rgba(73, 72, 62, .99);
}

.cm-s-inner ::-moz-selection {
    background: rgba(73, 72, 62, .99);
}

.cm-s-inner .CodeMirror-cursor {
    border-left: 1px solid #A9B7C6 !important;
    background-color: #A9B7C6 !important;
    width: 3px !important;
}

strong {
    color: #e89500; /* 亮橙色 */
    font-size: 20px;
}

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

师兄阿_

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值