From 2209ab5ebf325a8e82f1d14ac790a98ae071f588 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Mon, 10 Feb 2025 23:01:15 +0800 Subject: [PATCH] chore: compress the font style --- .gitignore | 1 + .prettierignore | 1 + fonts/main.css | 52 +------------------------------------------------ 3 files changed, 3 insertions(+), 51 deletions(-) create mode 100644 .prettierignore diff --git a/.gitignore b/.gitignore index eadc3e1..a78d3aa 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ .* !.git* !.editorconfig +!.prettierignore # NPM node_modules diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..82f8dad --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +fonts/*.css diff --git a/fonts/main.css b/fonts/main.css index 6bf1751..d70c947 100644 --- a/fonts/main.css +++ b/fonts/main.css @@ -1,51 +1 @@ -/* Source Sans Pro */ -@font-face { - font-family: 'Source Sans Pro'; - font-style: normal; - font-weight: 400; - font-display: swap; - src: url('Source_Sans_Pro/SourceSansPro-Regular.woff2') format('woff2'), - url('Source_Sans_Pro/SourceSansPro-Regular.woff') format('woff'), - url('Source_Sans_Pro/SourceSansPro-Regular.ttf') format('truetype'); -} - -@font-face { - font-family: 'Source Sans Pro'; - font-style: normal; - font-weight: 600; - font-display: swap; - src: url('Source_Sans_Pro/SourceSansPro-SemiBold.woff2') format('woff2'), - url('Source_Sans_Pro/SourceSansPro-SemiBold.woff') format('woff'), - url('Source_Sans_Pro/SourceSansPro-SemiBold.ttf') format('truetype'); -} - -@font-face { - font-family: 'Source Sans Pro'; - font-style: normal; - font-weight: 700; - font-display: swap; - src: url('Source_Sans_Pro/SourceSansPro-Bold.woff2') format('woff2'), - url('Source_Sans_Pro/SourceSansPro-Bold.woff') format('woff'), - url('Source_Sans_Pro/SourceSansPro-Bold.ttf') format('truetype'); -} - -@font-face { - font-family: 'Source Sans Pro'; - font-style: normal; - font-weight: 900; - font-display: swap; - src: url('Source_Sans_Pro/SourceSansPro-Black.woff2') format('woff2'), - url('Source_Sans_Pro/SourceSansPro-Black.woff') format('woff'), - url('Source_Sans_Pro/SourceSansPro-Black.ttf') format('truetype'); -} - -/* Lato */ -@font-face { - font-family: 'Lato'; - font-style: normal; - font-weight: 400; - font-display: swap; - src: url('Lato/Lato-Regular.woff2') format('woff2'), - url('Lato/Lato-Regular.woff') format('woff'), - url('Lato/Lato-Regular.ttf') format('truetype'); -} +/*! Source Sans Pro */@font-face{font-family:"Source Sans Pro";font-style:normal;font-weight:400;font-display:swap;src:url("Source_Sans_Pro/SourceSansPro-Regular.woff2") format("woff2"),url("Source_Sans_Pro/SourceSansPro-Regular.woff") format("woff"),url("Source_Sans_Pro/SourceSansPro-Regular.ttf") format("truetype")}@font-face{font-family:"Source Sans Pro";font-style:normal;font-weight:600;font-display:swap;src:url("Source_Sans_Pro/SourceSansPro-SemiBold.woff2") format("woff2"),url("Source_Sans_Pro/SourceSansPro-SemiBold.woff") format("woff"),url("Source_Sans_Pro/SourceSansPro-SemiBold.ttf") format("truetype")}@font-face{font-family:"Source Sans Pro";font-style:normal;font-weight:700;font-display:swap;src:url("Source_Sans_Pro/SourceSansPro-Bold.woff2") format("woff2"),url("Source_Sans_Pro/SourceSansPro-Bold.woff") format("woff"),url("Source_Sans_Pro/SourceSansPro-Bold.ttf") format("truetype")}@font-face{font-family:"Source Sans Pro";font-style:normal;font-weight:900;font-display:swap;src:url("Source_Sans_Pro/SourceSansPro-Black.woff2") format("woff2"),url("Source_Sans_Pro/SourceSansPro-Black.woff") format("woff"),url("Source_Sans_Pro/SourceSansPro-Black.ttf") format("truetype")}/*! Lato */@font-face{font-family:Lato;font-style:normal;font-weight:400;font-display:swap;src:url("Lato/Lato-Regular.woff2") format("woff2"),url("Lato/Lato-Regular.woff") format("woff"),url("Lato/Lato-Regular.ttf") format("truetype")}