This repository has been archived by the owner on Oct 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
/
fonts.scss
47 lines (38 loc) · 1.86 KB
/
fonts.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
If you import fonts like:
src: url("https://garronej.github.io/keycloakify-demo-app/fonts/worksans-bold-webfont.woff2") format("woff2")
With the fonts placed in your public/ folder it will work with or without --external-assets
As long as the font are imported with an explicit url and as long as the server serving the adds
allow-access-control-origin * to the request it works.
If, however, you import fonts locally like
src: url("fonts/worksans-bold-webfont.woff2") format("woff2")
With fonts placed in your source directory, it will only work with --external-assets
*/
@font-face {
font-family: "Work Sans";
src: url("https://garronej.github.io/keycloakify-demo-app/fonts/worksans-bold-webfont.woff2") format("woff2"),
url("https://garronej.github.io/keycloakify-demo-app/fonts/worksans-bold-webfont.woff") format("woff");
font-weight: bold; /*700*/
font-style: normal;
}
@font-face {
font-family: "Work Sans";
src: url("https://garronej.github.io/keycloakify-demo-app/fonts/worksans-semibold-webfont.woff2") format("woff2"),
url("https://garronej.github.io/keycloakify-demo-app/fonts/worksans-semibold-webfont.woff") format("woff");
font-weight: 600;
font-style: normal;
}
@font-face {
font-family: "Work Sans";
src: url("https://garronej.github.io/keycloakify-demo-app/fonts/worksans-medium-webfont.woff2") format("woff2"),
url("https://garronej.github.io/keycloakify-demo-app/fonts/worksans-medium-webfont.woff") format("woff");
font-weight: 500;
font-style: normal;
}
@font-face {
font-family: "Work Sans";
src: url("https://garronej.github.io/keycloakify-demo-app/fonts/worksans-regular-webfont.woff2") format("woff2"),
url("https://garronej.github.io/keycloakify-demo-app/fonts/worksans-regular-webfont.woff") format("woff");
font-weight: normal; /*400*/
font-style: normal;
}