feat(cli): improve code highlight

This commit is contained in:
陈嘉涵
2020-01-18 19:59:26 +08:00
parent ea7422794b
commit 1119be4ea8
3 changed files with 26 additions and 26 deletions
@@ -7,11 +7,12 @@ code {
overflow-x: auto;
color: @van-doc-code-color;
font-weight: 400;
font-size: 13px;
font-size: 13.4px;
font-family: @van-doc-code-font-family;
line-height: 26px;
white-space: pre-wrap;
word-wrap: break-word;
-webkit-font-smoothing: auto;
}
pre {
@@ -35,7 +36,7 @@ pre {
.hljs-template-tag,
.hljs-template-variable,
.hljs-addition {
color: @van-doc-purple;
color: @van-doc-green;
}
.hljs-comment,
@@ -43,21 +44,23 @@ pre {
color: #999;
}
.hljs-params,
.hljs-keyword,
.hljs-attribute {
color: @van-doc-purple;
}
.hljs-deletion,
.hljs-variable,
.hljs-number,
.hljs-regexp,
.hljs-literal,
.hljs-bullet,
.hljs-link {
color: #07c160;
}
.hljs-deletion,
.hljs-variable {
color: #88f;
color: #eb6f6f;
}
.hljs-attr,
.hljs-keyword,
.hljs-selector-tag,
.hljs-title,
.hljs-section,
@@ -68,13 +71,9 @@ pre {
.hljs-selector-id,
.hljs-selector-class,
.hljs-strong {
color: @van-doc-blue;
color: #5299e0;
}
.hljs-emphasis {
font-style: italic;
}
.hljs-attribute {
color: #e6550d;
}
+2 -1
View File
@@ -1,7 +1,8 @@
@van-doc-black: #323233;
@van-doc-blue: #1989fa;
@van-doc-purple: #5758bb;
@van-doc-purple: #8080ff;
@van-doc-fuchsia: #a7419e;
@van-doc-green: #4fc08d;
@van-doc-text-color: #34495e;
@van-doc-text-light-blue: rgba(69, 90, 100, .6);
@van-doc-background-color: #f7f8fa;