Browse Source

💄 font-feature-settings to enable monospaced for OpenType font

https://developer.mozilla.org/en-US/docs/Web/CSS/font-feature-settings
pull/14648/head
afc163 6 years ago
parent
commit
56ac01610f
No known key found for this signature in database GPG Key ID: 5F00908D72002306
  1. 1
      components/style/core/base.less
  2. 1
      components/style/mixins/reset.less
  3. 1
      site/theme/static/common.less
  4. 2
      site/theme/static/footer.less
  5. 2
      site/theme/static/header.less
  6. 4
      site/theme/static/home.less
  7. 2
      site/theme/static/markdown.less

1
components/style/core/base.less

@ -80,6 +80,7 @@ body {
font-family: @font-family; font-family: @font-family;
font-size: @font-size-base; font-size: @font-size-base;
font-variant: @font-variant-base; font-variant: @font-variant-base;
font-feature-settings: 'tnum';
line-height: @line-height-base; line-height: @line-height-base;
color: @text-color; color: @text-color;
background-color: @body-background; // 2 background-color: @body-background; // 2

1
components/style/mixins/reset.less

@ -3,6 +3,7 @@
.reset-component() { .reset-component() {
font-size: @font-size-base; font-size: @font-size-base;
font-variant: @font-variant-base; font-variant: @font-variant-base;
font-feature-settings: 'tnum';
line-height: @line-height-base; line-height: @line-height-base;
color: @text-color; color: @text-color;
box-sizing: border-box; box-sizing: border-box;

1
site/theme/static/common.less

@ -5,7 +5,6 @@ body {
body { body {
font-family: @font-family; font-family: @font-family;
font-variant: tabular-nums;
line-height: 1.5; line-height: 1.5;
color: @site-text-color; color: @site-text-color;
font-size: 14px; font-size: 14px;

2
site/theme/static/footer.less

@ -52,7 +52,7 @@ footer {
overflow: hidden; overflow: hidden;
font-family: Avenir, @font-family, sans-serif; font-family: Avenir, @font-family, sans-serif;
font-size: 16px; font-size: 16px;
font-variant: tabular-nums;
a { a {
color: rgba(255, 255, 255, 0.65); color: rgba(255, 255, 255, 0.65);
margin-left: 4px; margin-left: 4px;

2
site/theme/static/header.less

@ -92,7 +92,7 @@
float: right; float: right;
font-size: 14px; font-size: 14px;
font-family: Avenir, @font-family, sans-serif; font-family: Avenir, @font-family, sans-serif;
font-variant: tabular-nums;
&.ant-menu-horizontal { &.ant-menu-horizontal {
border-bottom: none; border-bottom: none;

4
site/theme/static/home.less

@ -8,7 +8,7 @@
position: relative; // will-change: transform; position: relative; // will-change: transform;
color: @home-text-color; color: @home-text-color;
font-family: Avenir, @font-family, sans-serif; font-family: Avenir, @font-family, sans-serif;
font-variant: tabular-nums;
.page { .page {
width: 100%; width: 100%;
max-width: 1200px; max-width: 1200px;
@ -77,7 +77,6 @@
margin: 8px 0 28px; margin: 8px 0 28px;
letter-spacing: 0; letter-spacing: 0;
font-family: Avenir, @font-family, sans-serif; font-family: Avenir, @font-family, sans-serif;
font-variant: tabular-nums;
} }
p { p {
font-size: 20px; font-size: 20px;
@ -117,7 +116,6 @@
text-decoration: none; text-decoration: none;
border: 1px solid #2f54eb; border: 1px solid #2f54eb;
font-family: @font-family; font-family: @font-family;
font-variant: tabular-nums;
} }
.banner-btn.components { .banner-btn.components {

2
site/theme/static/markdown.less

@ -24,7 +24,6 @@
margin-top: 8px; margin-top: 8px;
font-family: Avenir, @font-family, sans-serif; font-family: Avenir, @font-family, sans-serif;
font-size: 30px; font-size: 30px;
font-variant: tabular-nums;
line-height: 38px; line-height: 38px;
.subtitle { .subtitle {
@ -44,7 +43,6 @@
.markdown h6 { .markdown h6 {
color: @site-heading-color; color: @site-heading-color;
font-family: Avenir, @font-family, sans-serif; font-family: Avenir, @font-family, sans-serif;
font-variant: tabular-nums;
margin: 1.6em 0 0.6em; margin: 1.6em 0 0.6em;
font-weight: 500; font-weight: 500;
clear: both; clear: both;

Loading…
Cancel
Save