You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design/site/theme/static
Thibault Derousseaux 43abea3212 Use tabular-nums font variant instead of switching to Tahoma for figures
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/).
7 years ago
..
colors.less site: valid primary color range 7 years ago
common.less Use tabular-nums font variant instead of switching to Tahoma for figures 7 years ago
demo.less site: fix collapse all button and import it, close #11113 7 years ago
docsearch.less Add algolia search 7 years ago
footer.less Use tabular-nums font variant instead of switching to Tahoma for figures 7 years ago
header.less Use tabular-nums font variant instead of switching to Tahoma for figures 7 years ago
highlight.less reset text-color and etc. 7 years ago
home.less Use tabular-nums font variant instead of switching to Tahoma for figures 7 years ago
icons.less fix site icon hover transition 7 years ago
index.less remove santa code 7 years ago
markdown.less Use tabular-nums font variant instead of switching to Tahoma for figures 7 years ago
mock-browser.less Improve iframe demo look 8 years ago
motion.less update logo 7 years ago
new-version-info-modal.less Revert "Revert "refactor with bisheng"" 9 years ago
not-found.less reset text-color and etc. 7 years ago
nprogress.less fix stylelint problems of site 8 years ago
page-nav.less site: fix overflow arrow 7 years ago
preview-img.less Update style 7 years ago
resource.less site: update resource card style 7 years ago
responsive.less site: change footer ui 7 years ago
style.js Improve documentation 7 years ago
template.html Fix kcard.alipay.com issue, close #11349 7 years ago
theme.less reset text-color and etc. 7 years ago
toc.less Move maxHeight code into anchor, close #8606 7 years ago