Skip to content

Commit 72a2013

Browse files
authored
fix: add some left margin to the toc (#377)
Before: <img width="342" alt="Screenshot 2025-04-29 at 08 49 48" src="https://github.com/user-attachments/assets/c50a7007-cbb3-4b6a-a2ce-a062fe945c3c" /> After: <img width="376" alt="Screenshot 2025-04-29 at 08 49 10" src="https://github.com/user-attachments/assets/83b92379-7d8e-4b16-a103-e1396cdee82b" /> ## Summary by Sourcery Bug Fixes: - Add left padding to the main container within the Table of Contents (`#nd-toc > div`) to indent its content.
1 parent 643472f commit 72a2013

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/app/global.css

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,6 @@
255255
);
256256
}
257257

258-
259258
th {
260259
@apply bg-fd-secondary;
261260
}
@@ -296,7 +295,6 @@ th {
296295
color: var(--color-fd-foreground);
297296
}
298297

299-
300298
[data-card2="true"] {
301299
@apply border-0;
302300
background: transparent
@@ -326,8 +324,6 @@ th {
326324
0 8px 20px rgba(100, 100, 255, 0.3);
327325
}
328326

329-
330-
331327
[data-card3="true"] {
332328
@apply border-0;
333329
background: transparent
@@ -357,8 +353,6 @@ th {
357353
0 8px 20px rgba(0, 150, 100, 0.3);
358354
}
359355

360-
361-
362356
#nd-docs-layout {
363357
background-color: var(--color-fd-sidebar);
364358
}
@@ -397,6 +391,10 @@ th {
397391
background-color: var(--sidebar-background);
398392
}
399393

394+
#nd-toc > div {
395+
padding-left: calc(var(--spacing) * 4);
396+
}
397+
400398
button[data-search-full] {
401399
@apply min-w-[250px];
402400
}

0 commit comments

Comments
 (0)