Skip to content

Commit 56ac016

Browse files
committed
💄 font-feature-settings to enable monospaced for OpenType font
https://developer.mozilla.org/en-US/docs/Web/CSS/font-feature-settings
1 parent 90fdd02 commit 56ac016

File tree

7 files changed

+5
-8
lines changed

7 files changed

+5
-8
lines changed

Diff for: components/style/core/base.less

+1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ body {
8080
font-family: @font-family;
8181
font-size: @font-size-base;
8282
font-variant: @font-variant-base;
83+
font-feature-settings: 'tnum';
8384
line-height: @line-height-base;
8485
color: @text-color;
8586
background-color: @body-background; // 2

Diff for: components/style/mixins/reset.less

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
.reset-component() {
44
font-size: @font-size-base;
55
font-variant: @font-variant-base;
6+
font-feature-settings: 'tnum';
67
line-height: @line-height-base;
78
color: @text-color;
89
box-sizing: border-box;

Diff for: site/theme/static/common.less

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ body {
55

66
body {
77
font-family: @font-family;
8-
font-variant: tabular-nums;
98
line-height: 1.5;
109
color: @site-text-color;
1110
font-size: 14px;

Diff for: site/theme/static/footer.less

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ footer {
5252
overflow: hidden;
5353
font-family: Avenir, @font-family, sans-serif;
5454
font-size: 16px;
55-
font-variant: tabular-nums;
55+
5656
a {
5757
color: rgba(255, 255, 255, 0.65);
5858
margin-left: 4px;

Diff for: site/theme/static/header.less

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
float: right;
9393
font-size: 14px;
9494
font-family: Avenir, @font-family, sans-serif;
95-
font-variant: tabular-nums;
95+
9696
&.ant-menu-horizontal {
9797
border-bottom: none;
9898

Diff for: site/theme/static/home.less

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
position: relative; // will-change: transform;
99
color: @home-text-color;
1010
font-family: Avenir, @font-family, sans-serif;
11-
font-variant: tabular-nums;
11+
1212
.page {
1313
width: 100%;
1414
max-width: 1200px;
@@ -77,7 +77,6 @@
7777
margin: 8px 0 28px;
7878
letter-spacing: 0;
7979
font-family: Avenir, @font-family, sans-serif;
80-
font-variant: tabular-nums;
8180
}
8281
p {
8382
font-size: 20px;
@@ -117,7 +116,6 @@
117116
text-decoration: none;
118117
border: 1px solid #2f54eb;
119118
font-family: @font-family;
120-
font-variant: tabular-nums;
121119
}
122120

123121
.banner-btn.components {

Diff for: site/theme/static/markdown.less

-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
margin-top: 8px;
2525
font-family: Avenir, @font-family, sans-serif;
2626
font-size: 30px;
27-
font-variant: tabular-nums;
2827
line-height: 38px;
2928

3029
.subtitle {
@@ -44,7 +43,6 @@
4443
.markdown h6 {
4544
color: @site-heading-color;
4645
font-family: Avenir, @font-family, sans-serif;
47-
font-variant: tabular-nums;
4846
margin: 1.6em 0 0.6em;
4947
font-weight: 500;
5048
clear: both;

0 commit comments

Comments
 (0)