Skip to content

Commit

Permalink
💄 font-feature-settings to enable monospaced for OpenType font
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Jan 30, 2019
1 parent 90fdd02 commit 56ac016
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 8 deletions.
1 change: 1 addition & 0 deletions components/style/core/base.less
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ body {
font-family: @font-family;
font-size: @font-size-base;
font-variant: @font-variant-base;
font-feature-settings: 'tnum';
line-height: @line-height-base;
color: @text-color;
background-color: @body-background; // 2
Expand Down
1 change: 1 addition & 0 deletions components/style/mixins/reset.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.reset-component() {
font-size: @font-size-base;
font-variant: @font-variant-base;
font-feature-settings: 'tnum';
line-height: @line-height-base;
color: @text-color;
box-sizing: border-box;
Expand Down
1 change: 0 additions & 1 deletion site/theme/static/common.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ body {

body {
font-family: @font-family;
font-variant: tabular-nums;
line-height: 1.5;
color: @site-text-color;
font-size: 14px;
Expand Down
2 changes: 1 addition & 1 deletion site/theme/static/footer.less
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ footer {
overflow: hidden;
font-family: Avenir, @font-family, sans-serif;
font-size: 16px;
font-variant: tabular-nums;

a {
color: rgba(255, 255, 255, 0.65);
margin-left: 4px;
Expand Down
2 changes: 1 addition & 1 deletion site/theme/static/header.less
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
float: right;
font-size: 14px;
font-family: Avenir, @font-family, sans-serif;
font-variant: tabular-nums;

&.ant-menu-horizontal {
border-bottom: none;

Expand Down
4 changes: 1 addition & 3 deletions site/theme/static/home.less
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
position: relative; // will-change: transform;
color: @home-text-color;
font-family: Avenir, @font-family, sans-serif;
font-variant: tabular-nums;

.page {
width: 100%;
max-width: 1200px;
Expand Down Expand Up @@ -77,7 +77,6 @@
margin: 8px 0 28px;
letter-spacing: 0;
font-family: Avenir, @font-family, sans-serif;
font-variant: tabular-nums;
}
p {
font-size: 20px;
Expand Down Expand Up @@ -117,7 +116,6 @@
text-decoration: none;
border: 1px solid #2f54eb;
font-family: @font-family;
font-variant: tabular-nums;
}

.banner-btn.components {
Expand Down
2 changes: 0 additions & 2 deletions site/theme/static/markdown.less
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
margin-top: 8px;
font-family: Avenir, @font-family, sans-serif;
font-size: 30px;
font-variant: tabular-nums;
line-height: 38px;

.subtitle {
Expand All @@ -44,7 +43,6 @@
.markdown h6 {
color: @site-heading-color;
font-family: Avenir, @font-family, sans-serif;
font-variant: tabular-nums;
margin: 1.6em 0 0.6em;
font-weight: 500;
clear: both;
Expand Down

0 comments on commit 56ac016

Please sign in to comment.