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;
|
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;
|
||||||
}
|
}
|
||||||
|
5
src/style/normalize.less
vendored
5
src/style/normalize.less
vendored
@ -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 {
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user