Skip to content

Commit 5ee7134

Browse files
committed
try to fix desktop cls
1 parent ddf67fa commit 5ee7134

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

_includes/layout/head.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,17 @@
6161
descent-override: 29.3%;
6262
line-gap-override: 0%;
6363
}
64+
/* Pre-apply the same font stacks that valiente-base.css will set on these above-fold
65+
elements. Without this, when the non-blocking CSS fires it changes font-family from
66+
system-ui → MontserratFallback, which is a different font → layout shift (CLS 0.276).
67+
With this, the CSS load is a no-op for these elements. */
68+
.navbar, .navbar a, .navbar .nav-link, .navbar .dropdown-item,
69+
.navbar-brand, .intro-heading, .masthead .btn {
70+
font-family: "Montserrat", "MontserratFallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
71+
}
72+
.intro-lead-in {
73+
font-family: "Droid Serif", "DroidSerifFallback", Georgia, "Times New Roman", serif;
74+
}
6475
</style>
6576

6677
{% if site.analytics.google %}

0 commit comments

Comments
 (0)