From dbba552c83ce30ab92c1ba2be03e3d8ff8c4c829 Mon Sep 17 00:00:00 2001 From: neverland Date: Tue, 12 May 2020 16:33:34 +0800 Subject: [PATCH] fix: page selector warning (#3137) --- packages/common/README.md | 12 ++++++++++++ packages/common/index.less | 1 - packages/common/style/normalize.less | 5 ----- 3 files changed, 12 insertions(+), 6 deletions(-) delete mode 100644 packages/common/style/normalize.less diff --git a/packages/common/README.md b/packages/common/README.md index 37f4ff44..92e6314c 100644 --- a/packages/common/README.md +++ b/packages/common/README.md @@ -57,3 +57,15 @@ Vant 中默认包含了一些常用样式,可以直接通过 className 的方 ``` + +### 全局字体 + +推荐在 app.wxss 中设置以下全局字体,以保证在不同设备上提供最佳的视觉体验。 + +```css +page { + font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, + Segoe UI, Arial, Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft Yahei', + sans-serif; +} +``` diff --git a/packages/common/index.less b/packages/common/index.less index c194c586..5b62f207 100644 --- a/packages/common/index.less +++ b/packages/common/index.less @@ -3,7 +3,6 @@ */ @import './style/var.less'; -@import './style/normalize.less'; @import './style/ellipsis.less'; @import './style/clearfix.less'; @import './style/hairline.less'; diff --git a/packages/common/style/normalize.less b/packages/common/style/normalize.less deleted file mode 100644 index 8b688eb8..00000000 --- a/packages/common/style/normalize.less +++ /dev/null @@ -1,5 +0,0 @@ -@import './var'; - -page { - font-family: @base-font-family; -}