fix font size flickering bug
This commit is contained in:
parent
ca7c683526
commit
7acb245c76
@ -1,30 +1,35 @@
|
||||
@font-face {
|
||||
font-family: Whitney;
|
||||
font-weight: 300;
|
||||
font-display: block; // Uses an invisible font until it's loaded. See https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display
|
||||
src: url(./font/whitney/whitney-300.woff);
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Whitney;
|
||||
font-weight: 400;
|
||||
font-display: block;
|
||||
src: url(./font/whitney/whitney-400.woff);
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Whitney;
|
||||
font-weight: 500;
|
||||
font-display: block;
|
||||
src: url(./font/whitney/whitney-500.woff);
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Whitney;
|
||||
font-weight: 600;
|
||||
font-display: block;
|
||||
src: url(./font/whitney/whitney-600.woff);
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Whitney;
|
||||
font-weight: 700;
|
||||
font-display: block;
|
||||
src: url(./font/whitney/whitney-700.woff);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user