mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-03 08:19:37 +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/).
80 lines
1.5 KiB
Plaintext
80 lines
1.5 KiB
Plaintext
@import './colors';
|
|
|
|
@padding-space: 144px;
|
|
|
|
footer {
|
|
clear: both;
|
|
font-size: 14px;
|
|
background-color: #000;
|
|
position: relative;
|
|
z-index: 100;
|
|
color: rgba(255, 255, 255, 0.65);
|
|
box-shadow: 0 1000px 0 1000px #fff;
|
|
.ant-row {
|
|
text-align: center;
|
|
.footer-center {
|
|
display: inline-block;
|
|
text-align: left;
|
|
> h2 {
|
|
font-size: 16px;
|
|
margin: 0 auto 24px;
|
|
font-weight: 500;
|
|
position: relative;
|
|
|
|
> .title-icon {
|
|
width: 27px;
|
|
margin-right: 16px;
|
|
}
|
|
> .anticon {
|
|
font-size: 16px;
|
|
position: absolute;
|
|
left: -22px;
|
|
top: 3px;
|
|
color: #aaa;
|
|
}
|
|
}
|
|
> div {
|
|
margin: 12px 0;
|
|
}
|
|
}
|
|
}
|
|
.footer-wrap {
|
|
position: relative;
|
|
padding: 86px @padding-space 93px @padding-space;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.25);
|
|
}
|
|
.bottom-bar {
|
|
text-align: center;
|
|
padding: 16px @padding-space;
|
|
margin: 0;
|
|
line-height: 32px;
|
|
overflow: hidden;
|
|
font-family: Avenir, @font-family;
|
|
font-size: 16px;
|
|
font-variant: tabular-nums;
|
|
a {
|
|
color: rgba(255, 255, 255, 0.65);
|
|
margin-left: 4px;
|
|
&:hover {
|
|
color: #fff;
|
|
}
|
|
}
|
|
.translate-button {
|
|
text-align: left;
|
|
}
|
|
.heart {
|
|
color: #f73f51;
|
|
font-size: 22px;
|
|
}
|
|
}
|
|
a {
|
|
color: rgba(255, 255, 255, 0.9);
|
|
}
|
|
h2 {
|
|
color: rgba(255, 255, 255, 1);
|
|
& > span {
|
|
color: rgba(255, 255, 255, 1);
|
|
}
|
|
}
|
|
}
|