Skip to content

Commit 697c193

Browse files
mavxdegodsNEOxplus
andauthored
docs: fix nav alignment under logo (inset 1.25rem = pill left padding) (#47)
Previous 2.4rem pushed the nav too far RIGHT of the logo. Correct math: nav left = page gutter + 1.25rem (the pill's own left padding) = logo left edge. Co-authored-by: mavneox <mav@onlywithneo.com>
1 parent ba24dff commit 697c193

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/styles/custom.css‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
.gen-sidebar-search {
121121
margin: 0 0 1rem;
122122
padding-block-start: 0.5rem;
123-
padding-inline: 2.4rem 0.5rem; /* align search left edge under the GEN logo */
123+
padding-inline: 1.25rem 0.5rem; /* = pill left padding, aligns search with logo */
124124
}
125125
.gen-sidebar-search :global(button[data-open-modal]),
126126
.gen-sidebar-search button {
@@ -506,7 +506,7 @@ nav.sidebar ul ul li,
506506
padding-inline-start: 0 !important;
507507
}
508508
/* Sub-item links: same left padding as the group label → text lines up. */
509-
.sidebar-content a { padding-inline-start: 2.4rem !important; padding-inline-end: 0.7rem !important; }
509+
.sidebar-content a { padding-inline-start: 1.25rem !important; padding-inline-end: 0.7rem !important; }
510510
/* narrower sidebar + tight content gap (z.ai ≈ 240px nav, snug column) */
511511
:root {
512512
--sl-sidebar-width: 15rem; /* was 18.75rem */
@@ -540,7 +540,7 @@ nav.sidebar ul ul li,
540540
color: #c5cad3;
541541
opacity: 1;
542542
margin-bottom: 0.45rem;
543-
padding-inline: 2.4rem 0.7rem;
543+
padding-inline: 1.25rem 0.7rem;
544544
}
545545

546546
/* active item (z.ai): white text on a neutral full-width light pill, no accent bar. */

0 commit comments

Comments
 (0)