forked from M-Labs/web2019
refactor(website): Uses font-display: swap for NotoSans
This commit is contained in:
parent
d923ac8930
commit
2aec9fb4a0
|
@ -1,17 +1,20 @@
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Noto Sans';
|
font-family: 'Noto Sans';
|
||||||
|
font-display: swap;
|
||||||
src: url('../fonts/NotoSans-Regular.ttf') format('truetype');
|
src: url('../fonts/NotoSans-Regular.ttf') format('truetype');
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Noto Sans';
|
font-family: 'Noto Sans';
|
||||||
|
font-display: swap;
|
||||||
src: url('../fonts/NotoSans-Bold.ttf') format('truetype');
|
src: url('../fonts/NotoSans-Bold.ttf') format('truetype');
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Noto Sans';
|
font-family: 'Noto Sans';
|
||||||
|
font-display: swap;
|
||||||
src: url('../fonts/NotoSans-BoldItalic.ttf') format('truetype');
|
src: url('../fonts/NotoSans-BoldItalic.ttf') format('truetype');
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
|
@ -19,6 +22,7 @@
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Noto Sans';
|
font-family: 'Noto Sans';
|
||||||
|
font-display: swap;
|
||||||
src: url('../fonts/NotoSans-Italic.ttf') format('truetype');
|
src: url('../fonts/NotoSans-Italic.ttf') format('truetype');
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue