From a009dd8800d37db007b0b19b8c2f53f373b8d6b2 Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Sun, 2 Oct 2022 11:24:52 -0400 Subject: [PATCH] Request fonts directly from html. Reduces request-chaining. --- undercover/static/styles.css | 10 ---------- undercover/templates/base.jinja2 | 10 ++++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/undercover/static/styles.css b/undercover/static/styles.css index 6b26fb1..edae062 100644 --- a/undercover/static/styles.css +++ b/undercover/static/styles.css @@ -1,13 +1,3 @@ -@font-face { - font-family: 'Barlow'; - src: url('/static/fonts/Barlow-Regular.ttf'); -} - -@font-face { - font-family: 'BarlowMedium'; - src: url('/static/fonts/Barlow-Medium.ttf'); -} - html { height: 100%; } diff --git a/undercover/templates/base.jinja2 b/undercover/templates/base.jinja2 index 20037a3..343b50b 100644 --- a/undercover/templates/base.jinja2 +++ b/undercover/templates/base.jinja2 @@ -31,6 +31,16 @@ hiddenElements.forEach(element => document.getElementById(element).classList.add('hidden')) } + {% block head %}{{ head }}{% endblock head %}