Skip to content

Commit d161617

Browse files
authored
fix(css): adjust code size scaling (#1093)
2 parents 646008a + d1d01fb commit d161617

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

src/css/custom.css

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@
99
font-display: swap;
1010
}
1111

12+
/* Fix iOS auto-sizing on mobile */
13+
html {
14+
-webkit-text-size-adjust: 100%;
15+
text-size-adjust: 100%;
16+
}
17+
pre,
18+
code {
19+
-webkit-text-size-adjust: 100%;
20+
text-size-adjust: 100%;
21+
}
22+
1223
/* ============================================================
1324
Tokens (Light)
1425
============================================================ */
@@ -28,6 +39,7 @@
2839
--ifm-heading-font-weight: 450;
2940
--ifm-font-weight-bold: 580;
3041
--ifm-font-size-base: 16px;
42+
--ifm-code-font-size: 85%;
3143

3244
/* Shape */
3345
--ifm-global-radius: 0.625rem;
@@ -133,10 +145,6 @@
133145
font-weight: 575;
134146
}
135147

136-
.markdown body {
137-
font-weight: 450;
138-
}
139-
140148
html[data-theme="dark"] .markdown p {
141149
color: #ababab;
142150
}

src/theme/Footer/SocialLinks/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export default function SocialLinks() {
6060
<div className={styles.list}>
6161
{SOCIAL_LINKS.map(({ href, Icon, label }) => (
6262
<Link
63+
key={href}
6364
to={href}
6465
className={styles.link}
6566
target="_blank"

0 commit comments

Comments
 (0)