]> git.ipfire.org Git - people/ms/westferry.git/commitdiff
CSS: Use Prompt as default font
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 1 Dec 2021 15:38:14 +0000 (15:38 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 1 Dec 2021 15:38:14 +0000 (15:38 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am
src/styles/_fonts.scss [new file with mode: 0644]
src/styles/westferry.scss

index 55f49c49ee0359a25306be383fff0f3270805ba5..416be26265a969bf28fe2d8cc6187d7cf0b44861 100644 (file)
@@ -184,6 +184,7 @@ dist_webroot_css_DATA = \
        src/styles/westferry.css
 
 EXTRA_DIST += \
+       src/styles/_fonts.scss \
        src/styles/westferry.scss
 
 CLEANFILES += \
diff --git a/src/styles/_fonts.scss b/src/styles/_fonts.scss
new file mode 100644 (file)
index 0000000..107f9d0
--- /dev/null
@@ -0,0 +1,53 @@
+/* latin-ext */
+@font-face {
+       font-family: "Prompt";
+       font-style: normal;
+       font-weight: 400;
+       src: local("Prompt Regular"), local("Prompt-Regular"), url(../fonts/Prompt-Regular.ttf) format("truetype");
+       unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
+}
+
+/* latin */
+@font-face {
+       font-family: "Prompt";
+       font-style: normal;
+       font-weight: 400;
+       src: local("Prompt Regular"), local("Prompt-Regular"), url(../fonts/Prompt-Regular.ttf) format("truetype");
+       unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
+
+/* latin-ext */
+@font-face {
+       font-family: 'Prompt';
+       font-style: normal;
+       font-weight: 500;
+       src: local('Prompt Medium'), local('Prompt-Medium'), url(../fonts/Prompt-Medium.ttf) format("truetype");
+       unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
+}
+
+/* latin */
+@font-face {
+       font-family: 'Prompt';
+       font-style: normal;
+       font-weight: 500;
+       src: local('Prompt Medium'), local('Prompt-Medium'), url(../fonts/Prompt-Medium.ttf) format("truetype");
+       unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
+
+/* latin-ext */
+@font-face {
+       font-family: "Prompt";
+       font-style: normal;
+       font-weight: 700;
+       src: local("Prompt Bold"), local("Prompt-Bold"), url(../fonts/Prompt-Bold.ttf) format("truetype");
+       unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
+}
+
+/* latin */
+@font-face {
+       font-family: "Prompt";
+       font-style: normal;
+       font-weight: 700;
+       src: local("Prompt Bold"), local("Prompt-Bold"), url(../fonts/Prompt-Bold.ttf) format("truetype");
+       unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
index e7024ffe5cc9924cbdcee4f80540757a27c47a71..17e88f66380ccc316331c4da72434b0fb70c4564 100644 (file)
@@ -1,3 +1,10 @@
+/*
+       Global Settings
+*/
+$body-font-family:                             Prompt, sans-serif;
+
+// Import fonts
+@import "fonts";
 
 /*
        Import Foundation Sites