Skip to content

Commit f77e941

Browse files
committed
Don't show version badge for latest version
1 parent 1fa61a8 commit f77e941

File tree

2 files changed

+83
-16
lines changed

2 files changed

+83
-16
lines changed

docusaurus.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,11 @@ export default {
146146
'https://github.com/react-navigation/react-navigation.github.io/edit/main/',
147147
includeCurrentVersion: false,
148148
lastVersion: '7.x',
149+
versions: {
150+
'7.x': {
151+
badge: false,
152+
},
153+
},
149154
breadcrumbs: false,
150155
sidebarCollapsed: false,
151156
remarkPlugins: [[remarkNpm2Yarn, { sync: true }]],

src/css/custom.css

Lines changed: 78 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,18 @@
1414
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono,
1515
Courier New, monospace;
1616
--ifm-font-family-base:
17-
ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI,
18-
Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji,
19-
Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
20-
17+
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
18+
Arial, sans-serif;
19+
--ifm-heading-font-family:
20+
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
21+
Arial, sans-serif;
22+
23+
--ifm-font-size-base: 100%;
24+
--ifm-line-height-base: 1.75;
2125
--ifm-code-font-size: 85%;
2226

2327
--ifm-heading-font-weight: 700;
24-
--ifm-heading-line-height: 1.618;
28+
--ifm-heading-line-height: 1.25;
2529
--ifm-heading-margin-top: 1.618rem;
2630

2731
--ifm-color-primary: hsl(
@@ -143,38 +147,82 @@
143147
}
144148

145149
h1 {
146-
font-size: 2.618rem;
147-
letter-spacing: -0.02em;
150+
font-family: var(--ifm-heading-font-family);
151+
font-size: 2.75rem;
152+
letter-spacing: -0.022em;
148153
margin-top: 0;
149-
margin-left: -0.09rem;
154+
margin-bottom: 0.5rem;
155+
margin-left: -0.05rem;
156+
font-weight: 700;
157+
line-height: 1.15;
150158
}
151159

152160
h2 {
153-
font-size: 1.618rem;
154-
letter-spacing: -0.02em;
155-
margin-left: -0.09rem;
161+
font-family: var(--ifm-heading-font-family);
162+
font-size: 2rem;
163+
letter-spacing: -0.018em;
164+
margin-top: 2.25rem;
165+
margin-bottom: 0.5rem;
166+
margin-left: -0.04rem;
167+
font-weight: 700;
168+
line-height: 1.22;
169+
border-bottom: none;
170+
padding-bottom: 0;
156171
}
157172

158173
h3 {
159-
font-size: 1.382rem;
160-
letter-spacing: -0.01em;
174+
font-family: var(--ifm-heading-font-family);
175+
font-size: 1.5rem;
176+
letter-spacing: -0.014em;
177+
margin-top: 2rem;
178+
margin-bottom: 0.5rem;
179+
font-weight: 700;
180+
line-height: 1.3;
161181
}
162182

163183
h4 {
164-
font-size: 1.145rem;
184+
font-family: var(--ifm-heading-font-family);
185+
font-size: 1.25rem;
186+
letter-spacing: -0.012em;
187+
margin-top: 1.75rem;
188+
margin-bottom: 0.5rem;
189+
font-weight: 700;
190+
line-height: 1.35;
165191
}
166192

167193
h5 {
168-
font-size: 1rem;
194+
font-family: var(--ifm-heading-font-family);
195+
font-size: 1.125rem;
196+
letter-spacing: -0.01em;
197+
margin-top: 1.5rem;
198+
margin-bottom: 0.5rem;
199+
font-weight: 700;
200+
line-height: 1.4;
169201
}
170202

171203
h6 {
172-
font-size: 0.85rem;
204+
font-family: var(--ifm-heading-font-family);
205+
font-size: 1rem;
206+
letter-spacing: -0.008em;
207+
margin-top: 1.25rem;
208+
margin-bottom: 0.5rem;
209+
font-weight: 700;
210+
line-height: 1.45;
173211
}
174212

175213
p {
176214
font-size: 1rem;
177215
line-height: 1.75;
216+
margin-bottom: 1.5rem;
217+
letter-spacing: -0.003em;
218+
}
219+
220+
article p {
221+
font-size: 1rem;
222+
line-height: 1.75;
223+
color: var(--ifm-font-color-base);
224+
margin-bottom: 1.5rem;
225+
letter-spacing: -0.003em;
178226
}
179227

180228
@media (min-width: 90rem) {
@@ -459,6 +507,20 @@ article {
459507
text-wrap: pretty;
460508
}
461509

510+
article > div > * + h2 {
511+
margin-top: 3.5rem;
512+
}
513+
514+
article > div > * + h3 {
515+
margin-top: 3rem;
516+
}
517+
518+
article h2 + p,
519+
article h3 + p,
520+
article h4 + p {
521+
margin-top: 1rem;
522+
}
523+
462524
article img,
463525
article video:not(.video-player video),
464526
.video-player {

0 commit comments

Comments
 (0)