mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
feat(cli): improve code highlight
This commit is contained in:
parent
ea7422794b
commit
1119be4ea8
@ -7,11 +7,12 @@ code {
|
|||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
color: @van-doc-code-color;
|
color: @van-doc-code-color;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 13px;
|
font-size: 13.4px;
|
||||||
font-family: @van-doc-code-font-family;
|
font-family: @van-doc-code-font-family;
|
||||||
line-height: 26px;
|
line-height: 26px;
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
|
-webkit-font-smoothing: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
@ -35,7 +36,7 @@ pre {
|
|||||||
.hljs-template-tag,
|
.hljs-template-tag,
|
||||||
.hljs-template-variable,
|
.hljs-template-variable,
|
||||||
.hljs-addition {
|
.hljs-addition {
|
||||||
color: @van-doc-purple;
|
color: @van-doc-green;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hljs-comment,
|
.hljs-comment,
|
||||||
@ -43,21 +44,23 @@ pre {
|
|||||||
color: #999;
|
color: #999;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.hljs-params,
|
||||||
|
.hljs-keyword,
|
||||||
|
.hljs-attribute {
|
||||||
|
color: @van-doc-purple;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-deletion,
|
||||||
|
.hljs-variable,
|
||||||
.hljs-number,
|
.hljs-number,
|
||||||
.hljs-regexp,
|
.hljs-regexp,
|
||||||
.hljs-literal,
|
.hljs-literal,
|
||||||
.hljs-bullet,
|
.hljs-bullet,
|
||||||
.hljs-link {
|
.hljs-link {
|
||||||
color: #07c160;
|
color: #eb6f6f;
|
||||||
}
|
|
||||||
|
|
||||||
.hljs-deletion,
|
|
||||||
.hljs-variable {
|
|
||||||
color: #88f;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.hljs-attr,
|
.hljs-attr,
|
||||||
.hljs-keyword,
|
|
||||||
.hljs-selector-tag,
|
.hljs-selector-tag,
|
||||||
.hljs-title,
|
.hljs-title,
|
||||||
.hljs-section,
|
.hljs-section,
|
||||||
@ -68,13 +71,9 @@ pre {
|
|||||||
.hljs-selector-id,
|
.hljs-selector-id,
|
||||||
.hljs-selector-class,
|
.hljs-selector-class,
|
||||||
.hljs-strong {
|
.hljs-strong {
|
||||||
color: @van-doc-blue;
|
color: #5299e0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hljs-emphasis {
|
.hljs-emphasis {
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hljs-attribute {
|
|
||||||
color: #e6550d;
|
|
||||||
}
|
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
@van-doc-black: #323233;
|
@van-doc-black: #323233;
|
||||||
@van-doc-blue: #1989fa;
|
@van-doc-blue: #1989fa;
|
||||||
@van-doc-purple: #5758bb;
|
@van-doc-purple: #8080ff;
|
||||||
@van-doc-fuchsia: #a7419e;
|
@van-doc-fuchsia: #a7419e;
|
||||||
|
@van-doc-green: #4fc08d;
|
||||||
@van-doc-text-color: #34495e;
|
@van-doc-text-color: #34495e;
|
||||||
@van-doc-text-light-blue: rgba(69, 90, 100, .6);
|
@van-doc-text-light-blue: rgba(69, 90, 100, .6);
|
||||||
@van-doc-background-color: #f7f8fa;
|
@van-doc-background-color: #f7f8fa;
|
||||||
|
@ -38,6 +38,7 @@ export default {
|
|||||||
|
|
||||||
a {
|
a {
|
||||||
color: @van-doc-blue;
|
color: @van-doc-blue;
|
||||||
|
-webkit-font-smoothing: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1,
|
h1,
|
||||||
@ -67,9 +68,9 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
margin-bottom: 12px;
|
margin-bottom: 16px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-size: 17px;
|
font-size: 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
h4 {
|
h4 {
|
||||||
@ -119,6 +120,7 @@ export default {
|
|||||||
&:first-child {
|
&:first-child {
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
|
|
||||||
|
// version tag
|
||||||
code {
|
code {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 2px 6px;
|
padding: 2px 6px;
|
||||||
@ -135,18 +137,12 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
code {
|
|
||||||
padding: 0 8px;
|
|
||||||
font-size: 13px;
|
|
||||||
font-family: inherit;
|
|
||||||
word-break: keep-all;
|
|
||||||
}
|
|
||||||
|
|
||||||
em {
|
em {
|
||||||
color: @van-doc-fuchsia;
|
color: @van-doc-green;
|
||||||
font-size: 12px;
|
font-size: 12.5px;
|
||||||
font-family: @van-doc-code-font-family;
|
font-family: @van-doc-code-font-family;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
|
-webkit-font-smoothing: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -185,8 +181,12 @@ export default {
|
|||||||
display: inline;
|
display: inline;
|
||||||
margin: 2px 3px;
|
margin: 2px 3px;
|
||||||
padding: 2px 5px;
|
padding: 2px 5px;
|
||||||
|
font-size: 13px;
|
||||||
|
font-family: inherit;
|
||||||
|
word-break: keep-all;
|
||||||
background-color: #f0f2f5;
|
background-color: #f0f2f5;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
}
|
}
|
||||||
|
|
||||||
section {
|
section {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user