Skip to content

Commit 78004a1

Browse files
committed
sans-serif as inter fallback
1 parent a202b26 commit 78004a1

File tree

3 files changed

+30
-28
lines changed

3 files changed

+30
-28
lines changed

package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/css/custom.css

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
@layer base {
1616
@font-face {
17+
font-display: swap;
1718
font-family: 'Inter';
1819
src: url('/Inter-Variable.ttf');
1920
font-weight: 100 900;
@@ -28,7 +29,7 @@ body * {
2829
:root {
2930
--ifm-navbar-background-color: white;
3031
--ifm-background-color: white;
31-
--ifm-font-family-base: 'Inter', 'Inter';
32+
--ifm-font-family-base: 'Inter', 'sans-serif';
3233
--doc-sidebar-width: 320px !important;
3334
--ifm-color-primary: rgb(59, 130, 246);
3435
--ifm-color-primary-dark: rgb(37, 102, 206);
@@ -447,15 +448,15 @@ div.testimonials a:hover .wm-name {
447448
}
448449

449450
.custom-link {
450-
color: inherit;
451-
text-decoration: underline dashed;
452-
text-decoration-thickness: 0.5px;
451+
color: inherit;
452+
text-decoration: underline dashed;
453+
text-decoration-thickness: 0.5px;
453454
}
454455

455456
.custom-link:hover {
456-
color: rgb(42, 77, 173);
457-
text-decoration: underline dashed;
458-
text-decoration-thickness: 0.5px;
457+
color: rgb(42, 77, 173);
458+
text-decoration: underline dashed;
459+
text-decoration-thickness: 0.5px;
459460
}
460461

461462
.reset table {
@@ -481,29 +482,29 @@ div.testimonials a:hover .wm-name {
481482
}
482483

483484
.tooltip-icon {
484-
position: relative;
485-
cursor: pointer;
485+
position: relative;
486+
cursor: pointer;
486487
}
487488

488489
.tooltip-text {
489-
visibility: hidden;
490-
width: 300px;
491-
background-color: #0f172a;
492-
color: #fff;
493-
text-align: center;
494-
border-radius: 6px;
495-
padding: 5px 0;
496-
position: absolute;
497-
z-index: 1;
498-
bottom: 125%;
499-
left: 50%;
500-
margin-left: -60px;
501-
502-
opacity: 0;
503-
transition: opacity 0.3s;
490+
visibility: hidden;
491+
width: 300px;
492+
background-color: #0f172a;
493+
color: #fff;
494+
text-align: center;
495+
border-radius: 6px;
496+
padding: 5px 0;
497+
position: absolute;
498+
z-index: 1;
499+
bottom: 125%;
500+
left: 50%;
501+
margin-left: -60px;
502+
503+
opacity: 0;
504+
transition: opacity 0.3s;
504505
}
505506

506507
.tooltip-icon:hover .tooltip-text {
507-
visibility: visible;
508-
opacity: 1;
509-
}
508+
visibility: visible;
509+
opacity: 1;
510+
}

tailwind.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = {
1717
},
1818
fontFamily: {
1919
// add double quotes if there is space in font name
20-
main: ['Inter', 'Arial'],
20+
main: ['Inter', 'sans-serif'],
2121
mono: [
2222
'ui-monospace',
2323
'SFMono-Regular',

0 commit comments

Comments
 (0)