Moved fonts loading to the end of the file to avoid rendering issues

pull/2/head
Thomasorus 2021-05-12 23:17:45 +02:00
rodzic 46eff59770
commit e88507b7a3
1 zmienionych plików z 27 dodań i 49 usunięć

Wyświetl plik

@ -1,52 +1,3 @@
@import url('inter-ui-web/inter-ui.css');
/* @font-face {
font-family: "Noto Serif";
src: url("NotoSerif-Bold.ttf");
font-display: swap;
}
@font-face {
font-family: "Noto Serif";
font-weight: 400;
src: url("NotoSerif-Regular.ttf");
font-display: swap;
}
@font-face {
font-family: "Noto Serif";
font-weight: 400;
font-style: italic;
src: url("NotoSerif-Italic.ttf");
font-display: swap;
} */
@font-face {
font-family: 'Noto Serif';
src: url('NotoSerif.woff2') format('woff2'), url("NotoSerif-Regular.ttf") format("ttf");
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Noto Serif';
src: url('NotoSerif-Italic.woff2') format('woff2'), url("NotoSerif-Italic.ttf") format('ttf');
font-weight: 400;
font-style: italic;
font-display: swap;
}
@font-face {
font-family: 'Noto Serif';
src: url('NotoSerif-Bold.woff2') format('woff2'), url("NotoSerif-Bold.ttf") format('ttf');
font-weight: bold;
font-style: normal;
font-display: swap;
}
/* BASE OR CONFIG */
:root {
@ -270,3 +221,30 @@ nav li {
.translateY-50 {
transform: translateY(-50%);
}
@import url('inter-ui-web/inter-ui.css');
@font-face {
font-family: 'Noto Serif';
src: url('NotoSerif.woff2') format('woff2'), url("NotoSerif-Regular.ttf") format("ttf");
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Noto Serif';
src: url('NotoSerif-Italic.woff2') format('woff2'), url("NotoSerif-Italic.ttf") format('ttf');
font-weight: 400;
font-style: italic;
font-display: swap;
}
@font-face {
font-family: 'Noto Serif';
src: url('NotoSerif-Bold.woff2') format('woff2'), url("NotoSerif-Bold.ttf") format('ttf');
font-weight: bold;
font-style: normal;
font-display: swap;
}