From b054dc878faeee7ca39be389d85fcd48b44c2328 Mon Sep 17 00:00:00 2001 From: neverland Date: Mon, 14 Jun 2021 09:59:13 +0800 Subject: [PATCH] docs: update site style (#8855) --- packages/vant-cli/site/common/style/highlight.less | 6 +++--- packages/vant-cli/site/desktop/components/Content.vue | 11 ++++++----- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/packages/vant-cli/site/common/style/highlight.less b/packages/vant-cli/site/common/style/highlight.less index 51cafa1d5..3073cd064 100644 --- a/packages/vant-cli/site/common/style/highlight.less +++ b/packages/vant-cli/site/common/style/highlight.less @@ -3,7 +3,7 @@ code { position: relative; display: block; - padding: 16px; + padding: 16px 20px; overflow-x: auto; color: @van-doc-code-color; font-weight: 400; @@ -13,8 +13,8 @@ code { white-space: pre-wrap; word-wrap: break-word; -webkit-font-smoothing: auto; - background-color: #fafafa; - border-radius: 16px; + background-color: #f8f8f8; + border-radius: @van-doc-border-radius; } pre { diff --git a/packages/vant-cli/site/desktop/components/Content.vue b/packages/vant-cli/site/desktop/components/Content.vue index 6334a5401..3c7957a2f 100644 --- a/packages/vant-cli/site/desktop/components/Content.vue +++ b/packages/vant-cli/site/desktop/components/Content.vue @@ -63,7 +63,7 @@ export default { > h3 { margin-bottom: 16px; font-weight: 600; - font-size: 18px; + font-size: 19px; } > h4 { @@ -82,6 +82,10 @@ export default { color: @van-doc-text-color; font-size: 15px; line-height: 26px; + + strong { + color: black; + } } > table { @@ -177,16 +181,13 @@ export default { padding: 2px 5px; font-size: 14px; font-family: inherit; + font-weight: 600; word-break: keep-all; background-color: @van-doc-background-color; border-radius: 4px; -webkit-font-smoothing: antialiased; } - > p > code { - font-size: 14px; - } - > blockquote { margin: 16px 0 0; padding: 16px;