mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 04:30:06 +08:00
43abea3212
Using a completely different font for figures leads to inconsistencies: https://github.com/ant-design/ant-design/issues/9422. Most modern font systems defaults to [tabular figures](https://www.fonts.com/content/learning/fontology/level-3/numbers/proportional-vs-tabular-figures). One exception to this is Apple's San Francisco which defaults to [proportional figures](http://martiancraft.com/blog/2015/10/san-francisco-part-2/#special-features-numerals). There is, however, an official and clean way to switch to tabular figures. It's the [`font-variant` CSS property](https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant-numeric) that can be set to `tabular-nums`. This commit removes the "Monospaced Number" font altogether and use `font-variant: tabular-nums` instead where it was used. It also moves closer to the sans-serif and monospace [system font stacks used by GitHub](http://markdotto.com/2018/02/07/github-system-fonts/). |
||
---|---|---|
.. | ||
alignment.en-US.md | ||
alignment.zh-CN.md | ||
cases.en-US.md | ||
cases.zh-CN.md | ||
colors.en-US.md | ||
colors.zh-CN.md | ||
contrast.en-US.md | ||
contrast.zh-CN.md | ||
copywriting.md | ||
data-display.md | ||
data-entry.md | ||
direct.en-US.md | ||
direct.zh-CN.md | ||
download.en-US.md | ||
download.zh-CN.md | ||
feedback.md | ||
font.en-US.md | ||
font.zh-CN.md | ||
icon.en-US.md | ||
icon.zh-CN.md | ||
introduce.en-US.md | ||
introduce.zh-CN.md | ||
invitation.en-US.md | ||
invitation.zh-CN.md | ||
layout.en-US.md | ||
layout.zh-CN.md | ||
lightweight.en-US.md | ||
lightweight.zh-CN.md | ||
motion.md | ||
navigation.en-US.md | ||
navigation.zh-CN.md | ||
overview.md | ||
proximity.en-US.md | ||
proximity.zh-CN.md | ||
reaction.en-US.md | ||
reaction.zh-CN.md | ||
reference.en-US.md | ||
reference.zh-CN.md | ||
repetition.en-US.md | ||
repetition.zh-CN.md | ||
stay.en-US.md | ||
stay.zh-CN.md | ||
transition.en-US.md | ||
transition.zh-CN.md | ||
values.en-US.md | ||
values.zh-CN.md | ||
visual.md | ||
work-with-us.en-US.md | ||
work-with-us.zh-CN.md |