Skip to content

Commit 7675849

Browse files
committed
feat: move nav to its own div
1 parent 422819c commit 7675849

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/components/PokeHeader.astro

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ import PokeNav from './PokeNav.astro'
2525
<Search {...Astro.props} />
2626
</div>
2727
<div class="sl-hidden md:sl-flex print:hidden right-group">
28+
<div class="sl-flex poke-navigation">
29+
<PokeNav />
30+
</div>
2831
<div class="sl-flex social-icons">
29-
<PokeNav/>
3032
<SocialIcons {...Astro.props} />
3133
</div>
3234
<ThemeSelect {...Astro.props} />
@@ -56,7 +58,9 @@ import PokeNav from './PokeNav.astro'
5658
gap: 1rem;
5759
align-items: center;
5860
}
59-
.social-icons::after {
61+
62+
.social-icons::after,
63+
.poke-navigation::after {
6064
content: '';
6165
height: 2rem;
6266
border-inline-end: 1px solid var(--sl-color-gray-5);
@@ -66,9 +70,11 @@ import PokeNav from './PokeNav.astro'
6670
:global(:root[data-has-sidebar]) {
6771
--__sidebar-pad: calc(2 * var(--sl-nav-pad-x));
6872
}
73+
6974
:global(:root:not([data-has-toc])) {
7075
--__toc-width: 0rem;
7176
}
77+
7278
.header {
7379
--__sidebar-width: max(0rem, var(--sl-content-inline-start, 0rem) - var(--sl-nav-pad-x));
7480
--__main-column-fr: calc(

0 commit comments

Comments
 (0)