themes/hyde: Use font-display: swap to eliminate render-blocking fonts

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
Harsh Shandilya 2020-01-10 21:05:44 +05:30
parent 4abc0b1556
commit cbd48eb624
2 changed files with 3 additions and 0 deletions

View File

@ -33,6 +33,7 @@
html {
font-family: "PT Sans", Helvetica, Arial, sans-serif;
font-display: swap;
}
@media (min-width: 48em) {
html {
@ -79,6 +80,7 @@ html {
.sidebar-about h1 {
color: #fff;
margin-top: 0;
font-display: swap;
font-family: "PT Sans", serif;
font-size: 3.25rem;
}

View File

@ -368,6 +368,7 @@ tbody tr:nth-child(odd) th {
margin-left: -1rem;
margin-right: -1rem;
font-family: "PT Sans", Helvetica, Arial, sans-serif;
font-display: swap;
color: #ccc;
text-align: center;
}