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

View file

@ -151,18 +151,14 @@ Usage:
font-weight: 100 900; font-weight: 100 900;
font-style: normal; font-style: normal;
font-named-instance: 'Regular'; font-named-instance: 'Regular';
src: url("font-files/Inter-upright.var.woff2?v={{font_v}}") format("woff2 supports variations(gvar)"), src: url("font-files/Inter-upright.var.woff2?v={{font_v}}") format("woff2");
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");
} }
@font-face { @font-face {
font-family: 'Inter var'; font-family: 'Inter var';
font-weight: 100 900; font-weight: 100 900;
font-style: italic; font-style: italic;
font-named-instance: 'Italic'; font-named-instance: 'Italic';
src: url("font-files/Inter-italic.var.woff2?v={{font_v}}") format("woff2 supports variations(gvar)"), src: url("font-files/Inter-italic.var.woff2?v={{font_v}}") format("woff2");
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");
} }
/* Legacy naming compatibility */ /* Legacy naming compatibility */
@ -171,18 +167,14 @@ Usage:
font-weight: 100 900; font-weight: 100 900;
font-style: normal; font-style: normal;
font-named-instance: 'Regular'; font-named-instance: 'Regular';
src: url("font-files/Inter-upright.var.woff2?v={{font_v}}") format("woff2 supports variations(gvar)"), src: url("font-files/Inter-upright.var.woff2?v={{font_v}}") format("woff2");
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");
} }
@font-face { @font-face {
font-family: 'Inter var alt'; font-family: 'Inter var alt';
font-weight: 100 900; font-weight: 100 900;
font-style: italic; font-style: italic;
font-named-instance: 'Italic'; font-named-instance: 'Italic';
src: url("font-files/Inter-italic.var.woff2?v={{font_v}}") format("woff2 supports variations(gvar)"), src: url("font-files/Inter-italic.var.woff2?v={{font_v}}") format("woff2");
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");
} }
@ -203,6 +195,5 @@ explicitly, e.g.
font-family: 'Inter var experimental'; font-family: 'Inter var experimental';
font-weight: 100 900; font-weight: 100 900;
font-style: oblique 0deg 10deg; font-style: oblique 0deg 10deg;
src: url("font-files/Inter.var.woff2?v={{font_v}}") format("woff2-variations"), src: url("font-files/Inter.var.woff2?v={{font_v}}") format("woff2");
url("font-files/Inter.var.woff2?v={{font_v}}") format("woff2");
} }