Skip to content

Commit 07b4681

Browse files
committed
Fix recommended badge positioning
1 parent b0df9a1 commit 07b4681

File tree

3 files changed

+6
-23
lines changed

3 files changed

+6
-23
lines changed

src/css/custom.css

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,7 @@ code {
12601260
}
12611261

12621262
&:hover,
1263-
&:focus-within {
1263+
&:has(> p:first-child a:focus-visible) {
12641264
box-shadow: var(--ifm-global-shadow-md);
12651265

12661266
&::before {
@@ -1275,27 +1275,14 @@ code {
12751275

12761276
li > p {
12771277
margin: 0;
1278+
margin-bottom: calc(var(--ifm-spacing-vertical) / 2);
12781279
}
12791280

1280-
li > p + p {
1281-
margin-top: calc(var(--ifm-spacing-vertical) / 2);
1282-
}
1283-
1284-
li:has(> .recommended-badge) {
1281+
li > p:first-child {
12851282
display: flex;
12861283
flex-wrap: wrap;
12871284
align-items: center;
1288-
column-gap: 0.75rem;
1289-
row-gap: calc(var(--ifm-spacing-vertical) / 2);
1290-
}
1291-
1292-
li:has(> .recommended-badge) > p:first-child {
1293-
min-width: 0;
1294-
}
1295-
1296-
li:has(> .recommended-badge) > .recommended-badge + p {
1297-
flex-basis: 100%;
1298-
margin-top: 0;
1285+
gap: 0.75rem;
12991286
}
13001287

13011288
li > p:first-child a {

versioned_docs/version-7.x/getting-started.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,7 @@ There are 2 ways to configure navigators:
170170

171171
<div class="featured-actions">
172172

173-
- **[Static configuration](hello-react-navigation.md?config=static)**
174-
175-
<span class="recommended-badge">Recommended</span>
173+
- **[Static configuration](hello-react-navigation.md?config=static)** <span class="recommended-badge">Recommended</span>
176174

177175
Object-based configuration with automatic TypeScript types and deep linking. Supports static screen lists with dynamic navigator options.
178176

versioned_docs/version-8.x/getting-started.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,7 @@ There are 2 ways to configure navigators:
157157

158158
<div class="featured-actions">
159159

160-
- **[Static configuration](hello-react-navigation.md?config=static)**
161-
162-
<span class="recommended-badge">Recommended</span>
160+
- **[Static configuration](hello-react-navigation.md?config=static)** <span class="recommended-badge">Recommended</span>
163161

164162
Object-based configuration with automatic TypeScript types and deep linking. Supports static screen lists with dynamic navigator options.
165163

0 commit comments

Comments
 (0)