commit 0cb194ce374f0fac966b6c4bcbeaaf3b772a3731
parent 8bd217beb1f788f5e3e5a747ab631c290330feae
Author: markseu <mark2011@mayberg.se>
Date: Thu, 10 Jun 2021 11:42:10 +0200
Updated CSS, avoid invisible text during font loading
Diffstat:
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/system/extensions/edit.css b/system/extensions/edit.css
@@ -452,6 +452,7 @@
font-family: "Edit";
font-weight: normal;
font-style: normal;
+ font-display: block;
src: url("edit.woff") format("woff");
}
.yellow-icon {
diff --git a/system/themes/stockholm.css b/system/themes/stockholm.css
@@ -10,18 +10,21 @@ html, body, div, form, pre, span, tr, th, td, img {
font-family: "Open Sans";
font-style: normal;
font-weight: 300;
+ font-display: swap;
src: url(stockholm-opensans-light.woff) format("woff");
}
@font-face {
font-family: "Open Sans";
font-style: normal;
font-weight: 400;
+ font-display: swap;
src: url(stockholm-opensans-regular.woff) format("woff");
}
@font-face {
font-family: "Open Sans";
font-style: normal;
font-weight: 700;
+ font-display: swap;
src: url(stockholm-opensans-bold.woff) format("woff");
}
body {