website: change fonts approach

pull/265/head
Yangshun 3 years ago
parent 250e643d43
commit af2391ad68

@ -1,12 +1,19 @@
@font-face { @font-face {
font-family: 'Inter'; font-family: 'Inter var';
font-weight: 100 900;
font-display: swap;
font-style: normal; font-style: normal;
font-named-instance: 'Regular';
src: url('./fonts/Inter-roman-latin.var.woff2') format('woff2');
}
@font-face {
font-family: 'Inter var';
font-weight: 100 900; font-weight: 100 900;
font-display: optional; font-display: swap;
src: url('/fonts/inter-var-latin.woff2') format('woff2'); font-style: italic;
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, font-named-instance: 'Italic';
U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, src: url('./fonts/Inter-italic-latin.var.woff2') format('woff2');
U+FEFF, U+FFFD;
} }
:root { :root {
@ -18,9 +25,9 @@
--ifm-color-primary-lighter: #8a8adf; --ifm-color-primary-lighter: #8a8adf;
--ifm-color-primary-lightest: #afafe9; --ifm-color-primary-lightest: #afafe9;
--ifm-font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', --ifm-font-family-base: 'Inter var', -apple-system, BlinkMacSystemFont,
'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans',
'Helvetica Neue', sans-serif; 'Droid Sans', 'Helvetica Neue', sans-serif;
--ifm-font-size-base: 16px; --ifm-font-size-base: 16px;
--ifm-footer-padding-vertical: 3rem; --ifm-footer-padding-vertical: 3rem;

Loading…
Cancel
Save