mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
style: add base-font-family (#6126)
This commit is contained in:
parent
e1a7c6668d
commit
3265d68f90
@ -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;
|
||||
}
|
||||
|
5
src/style/normalize.less
vendored
5
src/style/normalize.less
vendored
@ -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 {
|
||||
|
@ -149,7 +149,6 @@ summary {
|
||||
|
||||
body {
|
||||
color: @text-color;
|
||||
font-family: Arial, Helvetica, 'Microsoft YaHei', Tohoma, sans-serif;
|
||||
background-color: @background-color;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user