website: fix var font loading in lab

This commit is contained in:
Rasmus Andersson 2019-02-09 15:16:52 -08:00
parent ec90e93e82
commit d423ad1e47
2 changed files with 38 additions and 39 deletions

View file

@ -983,9 +983,9 @@ for (const ch of uniqueChars) {
font-weight: 100;
font-display: block;
src: url("fonts/const/Inter-Thin.woff2") format("woff2"),
url("/font-files/Inter-Thin.woff2") format("woff2"),
url("../font-files/Inter-Thin.woff2") format("woff2"),
url("fonts/const/Inter-Thin.woff") format("woff"),
url("/font-files/Inter-Thin.woff") format("woff");
url("../font-files/Inter-Thin.woff") format("woff");
}
@font-face {
font-family: 'Inter-VERSION';
@ -993,9 +993,9 @@ for (const ch of uniqueChars) {
font-weight: 100;
font-display: block;
src: url("fonts/const/Inter-ThinItalic.woff2") format("woff2"),
url("/font-files/Inter-ThinItalic.woff2") format("woff2"),
url("../font-files/Inter-ThinItalic.woff2") format("woff2"),
url("fonts/const/Inter-ThinItalic.woff") format("woff"),
url("/font-files/Inter-ThinItalic.woff") format("woff");
url("../font-files/Inter-ThinItalic.woff") format("woff");
}
@font-face {
@ -1004,9 +1004,9 @@ for (const ch of uniqueChars) {
font-weight: 200;
font-display: block;
src: url("fonts/const/Inter-ExtraLight.woff2") format("woff2"),
url("/font-files/Inter-ExtraLight.woff2") format("woff2"),
url("../font-files/Inter-ExtraLight.woff2") format("woff2"),
url("fonts/const/Inter-ExtraLight.woff") format("woff"),
url("/font-files/Inter-ExtraLight.woff") format("woff");
url("../font-files/Inter-ExtraLight.woff") format("woff");
}
@font-face {
font-family: 'Inter-VERSION';
@ -1014,9 +1014,9 @@ for (const ch of uniqueChars) {
font-weight: 200;
font-display: block;
src: url("fonts/const/Inter-ExtraLightItalic.woff2") format("woff2"),
url("/font-files/Inter-ExtraLightItalic.woff2") format("woff2"),
url("../font-files/Inter-ExtraLightItalic.woff2") format("woff2"),
url("fonts/const/Inter-ExtraLightItalic.woff") format("woff"),
url("/font-files/Inter-ExtraLightItalic.woff") format("woff");
url("../font-files/Inter-ExtraLightItalic.woff") format("woff");
}
@font-face {
@ -1025,9 +1025,9 @@ for (const ch of uniqueChars) {
font-weight: 300;
font-display: block;
src: url("fonts/const/Inter-Light.woff2") format("woff2"),
url("/font-files/Inter-Light.woff2") format("woff2"),
url("../font-files/Inter-Light.woff2") format("woff2"),
url("fonts/const/Inter-Light.woff") format("woff"),
url("/font-files/Inter-Light.woff") format("woff");
url("../font-files/Inter-Light.woff") format("woff");
}
@font-face {
font-family: 'Inter-VERSION';
@ -1035,9 +1035,9 @@ for (const ch of uniqueChars) {
font-weight: 300;
font-display: block;
src: url("fonts/const/Inter-LightItalic.woff2") format("woff2"),
url("/font-files/Inter-LightItalic.woff2") format("woff2"),
url("../font-files/Inter-LightItalic.woff2") format("woff2"),
url("fonts/const/Inter-LightItalic.woff") format("woff"),
url("/font-files/Inter-LightItalic.woff") format("woff");
url("../font-files/Inter-LightItalic.woff") format("woff");
}
@font-face {
@ -1046,9 +1046,9 @@ for (const ch of uniqueChars) {
font-weight: 400;
font-display: block;
src: url("fonts/const/Inter-Regular.woff2") format("woff2"),
url("/font-files/Inter-Regular.woff2") format("woff2"),
url("../font-files/Inter-Regular.woff2") format("woff2"),
url("fonts/const/Inter-Regular.woff") format("woff"),
url("/font-files/Inter-Regular.woff") format("woff");
url("../font-files/Inter-Regular.woff") format("woff");
}
@font-face {
font-family: 'Inter-VERSION';
@ -1056,9 +1056,9 @@ for (const ch of uniqueChars) {
font-weight: 400;
font-display: block;
src: url("fonts/const/Inter-Italic.woff2") format("woff2"),
url("/font-files/Inter-Italic.woff2") format("woff2"),
url("../font-files/Inter-Italic.woff2") format("woff2"),
url("fonts/const/Inter-Italic.woff") format("woff"),
url("/font-files/Inter-Italic.woff") format("woff");
url("../font-files/Inter-Italic.woff") format("woff");
}
@font-face {
@ -1067,9 +1067,9 @@ for (const ch of uniqueChars) {
font-weight: 500;
font-display: block;
src: url("fonts/const/Inter-Medium.woff2") format("woff2"),
url("/font-files/Inter-Medium.woff2") format("woff2"),
url("../font-files/Inter-Medium.woff2") format("woff2"),
url("fonts/const/Inter-Medium.woff") format("woff"),
url("/font-files/Inter-Medium.woff") format("woff");
url("../font-files/Inter-Medium.woff") format("woff");
}
@font-face {
font-family: 'Inter-VERSION';
@ -1077,9 +1077,9 @@ for (const ch of uniqueChars) {
font-weight: 500;
font-display: block;
src: url("fonts/const/Inter-MediumItalic.woff2") format("woff2"),
url("/font-files/Inter-MediumItalic.woff2") format("woff2"),
url("../font-files/Inter-MediumItalic.woff2") format("woff2"),
url("fonts/const/Inter-MediumItalic.woff") format("woff"),
url("/font-files/Inter-MediumItalic.woff") format("woff");
url("../font-files/Inter-MediumItalic.woff") format("woff");
}
@font-face {
@ -1088,9 +1088,9 @@ for (const ch of uniqueChars) {
font-weight: 600;
font-display: block;
src: url("fonts/const/Inter-SemiBold.woff2") format("woff2"),
url("/font-files/Inter-SemiBold.woff2") format("woff2"),
url("../font-files/Inter-SemiBold.woff2") format("woff2"),
url("fonts/const/Inter-SemiBold.woff") format("woff"),
url("/font-files/Inter-SemiBold.woff") format("woff");
url("../font-files/Inter-SemiBold.woff") format("woff");
}
@font-face {
font-family: 'Inter-VERSION';
@ -1098,9 +1098,9 @@ for (const ch of uniqueChars) {
font-weight: 600;
font-display: block;
src: url("fonts/const/Inter-SemiBoldItalic.woff2") format("woff2"),
url("/font-files/Inter-SemiBoldItalic.woff2") format("woff2"),
url("../font-files/Inter-SemiBoldItalic.woff2") format("woff2"),
url("fonts/const/Inter-SemiBoldItalic.woff") format("woff"),
url("/font-files/Inter-SemiBoldItalic.woff") format("woff");
url("../font-files/Inter-SemiBoldItalic.woff") format("woff");
}
@font-face {
@ -1109,9 +1109,9 @@ for (const ch of uniqueChars) {
font-weight: 700;
font-display: block;
src: url("fonts/const/Inter-Bold.woff2") format("woff2"),
url("/font-files/Inter-Bold.woff2") format("woff2"),
url("../font-files/Inter-Bold.woff2") format("woff2"),
url("fonts/const/Inter-Bold.woff") format("woff"),
url("/font-files/Inter-Bold.woff") format("woff");
url("../font-files/Inter-Bold.woff") format("woff");
}
@font-face {
font-family: 'Inter-VERSION';
@ -1119,9 +1119,9 @@ for (const ch of uniqueChars) {
font-weight: 700;
font-display: block;
src: url("fonts/const/Inter-BoldItalic.woff2") format("woff2"),
url("/font-files/Inter-BoldItalic.woff2") format("woff2"),
url("../font-files/Inter-BoldItalic.woff2") format("woff2"),
url("fonts/const/Inter-BoldItalic.woff") format("woff"),
url("/font-files/Inter-BoldItalic.woff") format("woff");
url("../font-files/Inter-BoldItalic.woff") format("woff");
}
@font-face {
@ -1130,9 +1130,9 @@ for (const ch of uniqueChars) {
font-weight: 800;
font-display: block;
src: url("fonts/const/Inter-ExtraBold.woff2") format("woff2"),
url("/font-files/Inter-ExtraBold.woff2") format("woff2"),
url("../font-files/Inter-ExtraBold.woff2") format("woff2"),
url("fonts/const/Inter-ExtraBold.woff") format("woff"),
url("/font-files/Inter-ExtraBold.woff") format("woff");
url("../font-files/Inter-ExtraBold.woff") format("woff");
}
@font-face {
font-family: 'Inter-VERSION';
@ -1140,9 +1140,9 @@ for (const ch of uniqueChars) {
font-weight: 800;
font-display: block;
src: url("fonts/const/Inter-ExtraBoldItalic.woff2") format("woff2"),
url("/font-files/Inter-ExtraBoldItalic.woff2") format("woff2"),
url("../font-files/Inter-ExtraBoldItalic.woff2") format("woff2"),
url("fonts/const/Inter-ExtraBoldItalic.woff") format("woff"),
url("/font-files/Inter-ExtraBoldItalic.woff") format("woff");
url("../font-files/Inter-ExtraBoldItalic.woff") format("woff");
}
@font-face {
@ -1151,9 +1151,9 @@ for (const ch of uniqueChars) {
font-weight: 900;
font-display: block;
src: url("fonts/const/Inter-Black.woff2") format("woff2"),
url("/font-files/Inter-Black.woff2") format("woff2"),
url("../font-files/Inter-Black.woff2") format("woff2"),
url("fonts/const/Inter-Black.woff") format("woff"),
url("/font-files/Inter-Black.woff") format("woff");
url("../font-files/Inter-Black.woff") format("woff");
}
@font-face {
font-family: 'Inter-VERSION';
@ -1161,9 +1161,9 @@ for (const ch of uniqueChars) {
font-weight: 900;
font-display: block;
src: url("fonts/const/Inter-BlackItalic.woff2") format("woff2"),
url("/font-files/Inter-BlackItalic.woff") format("woff2"),
url("../font-files/Inter-BlackItalic.woff") format("woff2"),
url("fonts/const/Inter-BlackItalic.woff") format("woff"),
url("/font-files/Inter-BlackItalic.woff") format("woff");
url("../font-files/Inter-BlackItalic.woff") format("woff");
}
@font-face {
@ -1172,7 +1172,7 @@ for (const ch of uniqueChars) {
font-weight: 100 900;
font-display: block;
src: url('fonts/var/Inter.var.woff2') format("woff2-variations"),
url('/font-files/Inter.var.woff2') format("woff2-variations");
url('../font-files/Inter.var.woff2') format("woff2-variations");
}
@font-face {
@ -1180,7 +1180,7 @@ for (const ch of uniqueChars) {
font-style: oblique 0deg 10deg;
font-display: block;
src: url('fonts/var/Inter.var.woff2') format("woff2-variations"),
url('/font-files/Inter.var.woff2') format("woff2-variations");
url('../font-files/Inter.var.woff2') format("woff2-variations");
}
/* ----------------------------------------------------------------------- */

View file

@ -1 +0,0 @@
../inter-ui.css