website: Simplifies css for var fonts to just use woff2 src directive

This commit is contained in:
Rasmus Andersson 2019-02-10 09:16:58 -08:00
parent 034a240d75
commit cf174f2cd4
2 changed files with 8 additions and 22 deletions

View file

@ -170,8 +170,7 @@ BUGS:
font-family: 'Inter UI var';
font-weight: 100 900;
font-style: oblique 0deg 10deg;
src: url("font-files/Inter.var.woff2?v={{font_v}}") format("woff2-variations"),
url("font-files/Inter.var.woff2?v={{font_v}}") format("woff2");
src: url("font-files/Inter.var.woff2?v={{font_v}}") format("woff2");
}
/* --------------------------------------------------------------------------
@ -190,16 +189,12 @@ BUGS:
font-weight: 100 900;
font-style: normal;
font-named-instance: 'Regular';
src: url("font-files/Inter-upright.var.woff2?v={{font_v}}") format("woff2 supports variations(gvar)"),
url("font-files/Inter-upright.var.woff2?v={{font_v}}") format("woff2-variations"),
url("font-files/Inter-upright.var.woff2?v={{font_v}}") format("woff2");
src: url("font-files/Inter-upright.var.woff2?v={{font_v}}") format("woff2");
}
@font-face {
font-family: 'Inter UI var alt';
font-weight: 100 900;
font-style: italic;
font-named-instance: 'Italic';
src: url("font-files/Inter-italic.var.woff2?v={{font_v}}") format("woff2 supports variations(gvar)"),
url("font-files/Inter-italic.var.woff2?v={{font_v}}") format("woff2-variations"),
url("font-files/Inter-italic.var.woff2?v={{font_v}}") format("woff2");
src: url("font-files/Inter-italic.var.woff2?v={{font_v}}") format("woff2");
}