From fb804df218472d3fc4b0e07252bccfbc2e908a12 Mon Sep 17 00:00:00 2001 From: Arkanit7 <61657673+Arkanit7@users.noreply.github.com> Date: Sun, 7 Mar 2021 17:00:41 +0200 Subject: [PATCH] properly added fonts Great video and job! I've learned so much from it. --- styles.css | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/styles.css b/styles.css index e580311..3da9f57 100644 --- a/styles.css +++ b/styles.css @@ -1,13 +1,15 @@ @font-face { font-family: "Creepy"; - src: url("Assets/Fonts/Creepy.woff") format("woff"), - url("Assets/Fonts/Creepy.woff2") format("woff2"); + src: url("Assets/Fonts/Creepy.woff2") format("woff2"), + url("Assets/Fonts/Creepy.woff") format("woff"); + font-display: swap; } @font-face { font-family: "Lunacy"; - src: url("Assets/Fonts/Lunacy.woff") format("woff"), - url("Assets/Fonts/Lunacy.woff2") format("woff2"); + src: url("Assets/Fonts/Lunacy.woff2") format("woff2"), + url("Assets/Fonts/Lunacy.woff") format("woff"); + font-display: swap; } * { @@ -17,7 +19,7 @@ html { min-height: 100vh; cursor: url(Assets/Cursors/Ghost.cur), auto; - font-family: Lunacy; + font-family: Lunacy, fantasy; } body { @@ -27,7 +29,7 @@ body { .page-title { color: #FF6D00; - font-family: Creepy, serif; + font-family: Creepy, fantasy; font-weight: normal; text-align: center; font-size: 6em; @@ -166,7 +168,7 @@ body { align-items: center; flex-direction: column; color: #FF6D00; - font-family: Creepy, serif; + font-family: Creepy, fantasy; transition: background-color 500ms, font-size 500ms; } @@ -211,4 +213,4 @@ body { flex-direction: column; align-items: center; } -} \ No newline at end of file +}