summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCasey Robinson <casey@rampantmonkey.com>2019-08-26 10:42:09 -0400
committerCasey Robinson <casey@rampantmonkey.com>2019-08-26 10:42:09 -0400
commit35b2444e05a5abe399a76cca0232d35d7876f75f (patch)
treea1280c2062bd0e3cf6587146d1d9ecc1450f2236
parentfff9d0cee3348e0f61cf4a359ae0e62c92493adb (diff)
downloadrampantmonkey-35b2444e05a5abe399a76cca0232d35d7876f75f.tar.gz
rampantmonkey-35b2444e05a5abe399a76cca0232d35d7876f75f.tar.bz2
rampantmonkey-35b2444e05a5abe399a76cca0232d35d7876f75f.zip
set font-display strategy to auto
depending on the browser, but usually, this will allow a brief window to load the font before falling back to a default font and then allowing for an infinite swap. without this property some browsers default to awkward behavior (fallback immediately) and then swap in the font.
-rw-r--r--website/static/css/style.css3
1 files changed, 3 insertions, 0 deletions
diff --git a/website/static/css/style.css b/website/static/css/style.css
index 0c29be9..ad044b4 100644
--- a/website/static/css/style.css
+++ b/website/static/css/style.css
@@ -108,16 +108,19 @@ table{
/* Styles */
@font-face {
font-family: junction;
+ font-display: auto;
src: url('Junction-webfont.ttf');
}
@font-face {
font-family: league_gothic;
+ font-display: auto;
src: url('League_Gothic-webfont.ttf');
}
@font-face {
font-family: league_mono;
+ font-display: auto;
src: url('LeagueMono-Regular.ttf');
}