From c5c4de1bbca9fd953cdd25bd05ebde82ca4641d3 Mon Sep 17 00:00:00 2001 From: edbrz9 Date: Sat, 31 Dec 2022 21:36:13 +0100 Subject: [PATCH] font css split --- assets/css/fonts.css | 20 ++++++++++++++++++++ assets/css/style.css | 23 +---------------------- 2 files changed, 21 insertions(+), 22 deletions(-) create mode 100644 assets/css/fonts.css diff --git a/assets/css/fonts.css b/assets/css/fonts.css new file mode 100644 index 0000000..c983d73 --- /dev/null +++ b/assets/css/fonts.css @@ -0,0 +1,20 @@ +@font-face{ + font-family: inter; + src: url("../fonts/inter/Inter-Regular.woff"); + font-style: normal; + font-weight: normal; +} + +@font-face{ + font-family: inter; + src: url("../fonts/inter/Inter-Medium.woff"); + font-style: normal; + font-weight: 600; +} + +@font-face{ + font-family: inter; + src: url("../fonts/inter/Inter-Bold.woff"); + font-style: normal; + font-weight: 800; +} \ No newline at end of file diff --git a/assets/css/style.css b/assets/css/style.css index 3da33da..2819c36 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -1,5 +1,5 @@ @import url("./copyme.css"); - +@import url("./fonts.css"); html { min-height: 100vh; @@ -13,27 +13,6 @@ body { linear-gradient(to bottom right, #2e3551, #0d747d); } -@font-face{ - font-family: inter; - src: url("../fonts/inter/Inter-Regular.woff"); - font-style: normal; - font-weight: normal; -} - -@font-face{ - font-family: inter; - src: url("../fonts/inter/Inter-Medium.woff"); - font-style: normal; - font-weight: 600; -} - - -@font-face{ - font-family: inter; - src: url("../fonts/inter/Inter-Bold.woff"); - font-style: normal; - font-weight: 800; -} body {