Improve page load/unload experience (remove FOUCs)

This commit is contained in:
NBTX
2020-02-25 00:09:56 +00:00
committed by Dmitry Yankowski
parent 00b623d823
commit 94ee60b832
5 changed files with 69 additions and 18 deletions

View File

@@ -6,7 +6,9 @@
font-family: "Material Icons";
font-style: normal;
font-weight: 400;
font-display: swap;
// Do not use font-display: swap for the icon font - it looks really bad when the page
// loads.
font-display: block;
src: url("~static/fonts/material-icons-v48.woff2") format("woff2");
}

View File

@@ -190,6 +190,7 @@ nav.primary-nav {
color: var(--fg-light-color);
fill: var(--fg-light-color);
margin: 8px 0;
height: 52px;
&:hover {
color: var(--fg-color);