mirror of
https://github.com/thomasjsn/hugo-theme-hello-friend.git
synced 2024-11-22 07:45:08 +01:00
Set font-feature-settings in @font-face instead
This commit is contained in:
parent
f8f2c3492b
commit
2f1f2d3f23
@ -2,6 +2,7 @@
|
|||||||
font-family: 'Inter';
|
font-family: 'Inter';
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
font-feature-settings: "liga", "tnum", "case", "calt", "zero", "ss01", "locl";
|
||||||
src: url("../fonts/Inter-Regular.woff2") format("woff2"),
|
src: url("../fonts/Inter-Regular.woff2") format("woff2"),
|
||||||
url("../fonts/Inter-Regular.woff") format("woff");
|
url("../fonts/Inter-Regular.woff") format("woff");
|
||||||
}
|
}
|
||||||
@ -9,6 +10,7 @@
|
|||||||
font-family: 'Inter';
|
font-family: 'Inter';
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
font-feature-settings: "liga", "tnum", "case", "calt", "zero", "ss01", "locl";
|
||||||
src: url("../fonts/Inter-Italic.woff2") format("woff2"),
|
src: url("../fonts/Inter-Italic.woff2") format("woff2"),
|
||||||
url("../fonts/Inter-Italic.woff") format("woff");
|
url("../fonts/Inter-Italic.woff") format("woff");
|
||||||
}
|
}
|
||||||
@ -17,6 +19,7 @@
|
|||||||
font-family: 'Inter';
|
font-family: 'Inter';
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
font-feature-settings: "liga", "tnum", "case", "calt", "zero", "ss01", "locl";
|
||||||
src: url("../fonts/Inter-Medium.woff2") format("woff2"),
|
src: url("../fonts/Inter-Medium.woff2") format("woff2"),
|
||||||
url("../fonts/Inter-Medium.woff") format("woff");
|
url("../fonts/Inter-Medium.woff") format("woff");
|
||||||
}
|
}
|
||||||
@ -24,6 +27,7 @@
|
|||||||
font-family: 'Inter';
|
font-family: 'Inter';
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
font-feature-settings: "liga", "tnum", "case", "calt", "zero", "ss01", "locl";
|
||||||
src: url("../fonts/Inter-MediumItalic.woff2") format("woff2"),
|
src: url("../fonts/Inter-MediumItalic.woff2") format("woff2"),
|
||||||
url("../fonts/Inter-MediumItalic.woff") format("woff");
|
url("../fonts/Inter-MediumItalic.woff") format("woff");
|
||||||
}
|
}
|
||||||
@ -32,6 +36,7 @@
|
|||||||
font-family: 'Inter';
|
font-family: 'Inter';
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
|
font-feature-settings: "liga", "tnum", "case", "calt", "zero", "ss01", "locl";
|
||||||
src: url("../fonts/Inter-Bold.woff2") format("woff2"),
|
src: url("../fonts/Inter-Bold.woff2") format("woff2"),
|
||||||
url("../fonts/Inter-Bold.woff") format("woff");
|
url("../fonts/Inter-Bold.woff") format("woff");
|
||||||
}
|
}
|
||||||
@ -39,6 +44,7 @@
|
|||||||
font-family: 'Inter';
|
font-family: 'Inter';
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
|
font-feature-settings: "liga", "tnum", "case", "calt", "zero", "ss01", "locl";
|
||||||
src: url("../fonts/Inter-BoldItalic.woff2") format("woff2"),
|
src: url("../fonts/Inter-BoldItalic.woff2") format("woff2"),
|
||||||
url("../fonts/Inter-BoldItalic.woff") format("woff");
|
url("../fonts/Inter-BoldItalic.woff") format("woff");
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,6 @@ body {
|
|||||||
color: var(--light-color);
|
color: var(--light-color);
|
||||||
text-rendering: optimizeLegibility;
|
text-rendering: optimizeLegibility;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
font-feature-settings: "liga", "tnum", "case", "calt", "zero", "ss01", "locl";
|
|
||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
-webkit-text-size-adjust: 100%;
|
-webkit-text-size-adjust: 100%;
|
||||||
|
|
||||||
@ -132,7 +131,6 @@ figure {
|
|||||||
|
|
||||||
code {
|
code {
|
||||||
font-family: Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;
|
font-family: Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;
|
||||||
font-feature-settings: normal;
|
|
||||||
background: var(--light-background-secondary);
|
background: var(--light-background-secondary);
|
||||||
padding: 1px 6px;
|
padding: 1px 6px;
|
||||||
margin: 0 2px;
|
margin: 0 2px;
|
||||||
|
Loading…
Reference in New Issue
Block a user