Skip to content

Commit

Permalink
demo: menu improvements (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
fbasso authored Oct 4, 2023
1 parent 4218d3f commit a58f486
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion demo/src/routes/[framework]/menu/SideMenu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<nav class="w-100 mt-1">
{#each menu as { title, submenu }}
<strong class="d-flex w-100 align-items-center fw-semibold">{title}</strong>
<div>
<div class="my-2">
{#each submenu as { label, path }}
{@const isCurrent = $page.route.id?.startsWith(`/[framework]${path}`)}
<a
Expand Down
13 changes: 8 additions & 5 deletions demo/src/routes/[framework]/menu/menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,23 @@ $mobileMargin: 16px;
}

.menu-item-sidenav {
padding: 0.5rem;
padding: 0.1rem 0.5rem;
border: 0px solid var(--bs-body-bg);
border-width: 2px 0;

&.active {
background-color: var(--bs-secondary-bg);
border-color: var(--bs-secondary-bg);
color: var(--bs-primary);
}

&:focus {
border-color: var(--bs-primary-border-subtle);
@include media-breakpoint-down(md) {
&:focus {
border-color: var(--bs-primary-border-subtle);
}
}

@include media-breakpoint-down(md) {
padding-top: 0.5rem;
padding-bottom: 0.5rem;
padding-left: $mobileMargin * 2;
padding-right: $mobileMargin * 2;
}
Expand Down

0 comments on commit a58f486

Please sign in to comment.