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; overflow-x: auto;
color: @van-doc-black; color: @van-doc-black;
font-size: 16px; 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; background-color: @van-doc-background-color;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
} }

View File

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

View File

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

View File

@ -42,6 +42,9 @@
@font-size-md: 14px; @font-size-md: 14px;
@font-size-lg: 16px; @font-size-lg: 16px;
@font-weight-bold: 500; @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, @price-integer-font-family: Avenir-Heavy, PingFang SC, Helvetica Neue, Arial,
sans-serif; sans-serif;
@ -410,7 +413,7 @@
@info-background-color: @red; @info-background-color: @red;
@info-dot-color: @red; @info-dot-color: @red;
@info-dot-size: 8px; @info-dot-size: 8px;
@info-font-family: PingFang SC, Helvetica Neue, Arial, sans-serif; @info-font-family: @price-integer-font-family;
// Image // Image
@image-placeholder-text-color: @gray-6; @image-placeholder-text-color: @gray-6;