website: Simplifies css for var fonts to just use woff2 src directive
This commit is contained in:
parent
034a240d75
commit
cf174f2cd4
2 changed files with 8 additions and 22 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -151,18 +151,14 @@ Usage:
|
|||
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 var';
|
||||
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");
|
||||
}
|
||||
|
||||
/* Legacy naming compatibility */
|
||||
|
|
@ -171,18 +167,14 @@ Usage:
|
|||
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 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");
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -203,6 +195,5 @@ explicitly, e.g.
|
|||
font-family: 'Inter var experimental';
|
||||
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");
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue