Added missing font-display directive, which cause text to appear late and caused a flash of invisible text while the font was loading
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
parent
a1bab9bbdd
commit
457f0e999a
@ -4,16 +4,19 @@
|
|||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'JetBrains Mono';
|
font-family: 'JetBrains Mono';
|
||||||
src: url("/assets/fonts/JetBrainsMono.ttf");
|
src: url("/assets/fonts/JetBrainsMono.ttf");
|
||||||
|
font-display: swap;
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'IBM Plex Mono';
|
font-family: 'IBM Plex Mono';
|
||||||
src: url("/assets/fonts/IBMPlexMono.ttf");
|
src: url("/assets/fonts/IBMPlexMono.ttf");
|
||||||
|
font-display: swap;
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Open Sans';
|
font-family: 'Open Sans';
|
||||||
src: url("/assets/fonts/OpenSans-Regular.ttf");
|
src: url("/assets/fonts/OpenSans-Regular.ttf");
|
||||||
|
font-display: swap;
|
||||||
}
|
}
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
|
Loading…
Reference in New Issue
Block a user