mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
6b2b8fbc2a
This reverts commit 159232d90d.
52 lines
1.7 KiB
CSS
52 lines
1.7 KiB
CSS
/* Import the same fonts used on mintlify.com */
|
|
|
|
/* Inter Variable Font - matching the main site */
|
|
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
|
|
|
|
/* Geist Mono for code - matching the main site */
|
|
@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:ital,wght@0,100..900;1,100..900&display=swap');
|
|
|
|
/* Override Mintlify's default font variables to match main site */
|
|
:root {
|
|
--font-inter: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
--font-geist-mono: 'Geist Mono', 'Menlo', 'Monaco', 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace;
|
|
}
|
|
|
|
/* Apply fonts to body and common elements with explicit OpenType features */
|
|
body {
|
|
font-family: var(--font-inter);
|
|
font-feature-settings: normal; /* Ensure default character variants */
|
|
font-variant-numeric: normal;
|
|
font-variant-ligatures: normal;
|
|
}
|
|
|
|
/* Code elements */
|
|
code,
|
|
pre,
|
|
.code,
|
|
.hljs {
|
|
font-family: var(--font-geist-mono);
|
|
}
|
|
|
|
/* Ensure proper font weight and style support */
|
|
.font-inter {
|
|
font-family: var(--font-inter);
|
|
}
|
|
|
|
.font-mono {
|
|
font-family: var(--font-geist-mono);
|
|
}
|
|
|
|
/* Fix for true italics instead of synthetic slanted text */
|
|
em,
|
|
i,
|
|
.italic {
|
|
font-style: italic;
|
|
font-synthesis: none; /* Prevent synthetic italic generation */
|
|
}
|
|
|
|
/* Explicitly disable stylistic alternates that might cause character differences */
|
|
h1, h2, h3, h4, h5, h6, p, span, div {
|
|
font-feature-settings: "ss01" 0, "ss02" 0, "ss03" 0; /* Disable common stylistic sets */
|
|
font-variant-alternates: normal;
|
|
} |