style: add base-font-family (#6126)

This commit is contained in:
neverland 2020-04-24 22:14:13 +08:00 committed by GitHub
parent e1a7c6668d
commit 3265d68f90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 6 deletions

View File

@ -6,7 +6,9 @@ body {
overflow-x: auto;
color: @van-doc-black;
font-size: 16px;
font-family: PingFang SC, 'Helvetica Neue', Arial, sans-serif;
font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica,
Segoe UI, Arial, Roboto, 'PingFang SC', 'Hiragino Sans GB',
'Microsoft Yahei', sans-serif;
background-color: @van-doc-background-color;
-webkit-font-smoothing: antialiased;
}

View File

@ -1,6 +1,4 @@
/**
* Normalize
*/
@import './var';
html {
-webkit-tap-highlight-color: transparent;
@ -8,6 +6,7 @@ html {
body {
margin: 0;
font-family: @base-font-family;
}
a {

View File

@ -149,7 +149,6 @@ summary {
body {
color: @text-color;
font-family: Arial, Helvetica, 'Microsoft YaHei', Tohoma, sans-serif;
background-color: @background-color;
}

View File

@ -42,6 +42,9 @@
@font-size-md: 14px;
@font-size-lg: 16px;
@font-weight-bold: 500;
@base-font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue',
Helvetica, Segoe UI, Arial, Roboto, 'PingFang SC', 'Hiragino Sans GB',
'Microsoft Yahei', sans-serif;
@price-integer-font-family: Avenir-Heavy, PingFang SC, Helvetica Neue, Arial,
sans-serif;
@ -410,7 +413,7 @@
@info-background-color: @red;
@info-dot-color: @red;
@info-dot-size: 8px;
@info-font-family: PingFang SC, Helvetica Neue, Arial, sans-serif;
@info-font-family: @price-integer-font-family;
// Image
@image-placeholder-text-color: @gray-6;