Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: md breakpoint display #406

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions demo/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,6 @@
</div>
</div>
</nav>
{#if !isMainPage}
<div class="demo-mobile-menu d-block d-md-none">
<MobileSubMenu />
</div>
{/if}
<div class="demo-main d-flex flex-column">
{#if isMainPage}
<slot />
Expand All @@ -96,11 +91,14 @@
<SideMenu />
</aside>
<div class="pb-4 col">
<div class="demo-mobile-menu d-block d-lg-none">
<MobileSubMenu />
</div>
<MainSection>
<slot />
</MainSection>
</div>
<div class="demo-toc d-none d-md-flex col-auto side-menu me-auto">
<div class="demo-toc d-none d-lg-flex col-auto side-menu me-auto">
<TOC />
</div>
</div>
Expand Down Expand Up @@ -134,6 +132,8 @@
background-color: var(--bs-body-bg);
box-shadow: $box-shadow;
z-index: 10;
margin-left: calc(var(--bs-gutter-x) * -0.5);
margin-right: calc(var(--bs-gutter-x) * -0.5);
}

.demo-nav-top {
Expand Down
2 changes: 1 addition & 1 deletion demo/src/routes/menu/MobileSubMenu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<div class="d-flex align-items-center justify-content-between">
<button
class="text-dark d-flex align-items-center btn btn-link link-underline link-underline-opacity-0"
class="d-md-none text-dark d-flex align-items-center btn btn-link link-underline link-underline-opacity-0"
aria-expanded={isMenuExpanded}
on:click={() => {
isMenuExpanded = true;
Expand Down
Loading