diff --git a/apps/cookbook/src/app/home/home.component.scss b/apps/cookbook/src/app/home/home.component.scss index 36976528fe..24d7952ad8 100644 --- a/apps/cookbook/src/app/home/home.component.scss +++ b/apps/cookbook/src/app/home/home.component.scss @@ -29,7 +29,8 @@ $desktop-gutter: minmax(utils.size('m'), 1fr); '. header header .' '. sidebar main .' 'footer footer footer footer'; - gap: utils.size('xl'); + column-gap: utils.size('xl'); + row-gap: utils.size('m'); } } diff --git a/apps/cookbook/src/app/page/header/header.component.scss b/apps/cookbook/src/app/page/header/header.component.scss index 79c0fdaa06..fa189f9077 100644 --- a/apps/cookbook/src/app/page/header/header.component.scss +++ b/apps/cookbook/src/app/page/header/header.component.scss @@ -25,11 +25,12 @@ $small-rect-delay: $medium-rect-delay + 200ms; header { display: grid; grid-template-columns: 1fr 1fr 1fr; + align-items: center; width: 100%; padding: var(--kirby-spacing-xxs); @include utils.media('>=large') { - padding-block-start: var(--kirby-spacing-m); + padding-block: var(--kirby-spacing-m) 0; align-items: start; .menu-button { @@ -46,7 +47,7 @@ header { @include utils.media('>=large') { width: $logo-size-desktop; height: $logo-size-desktop; - margin-inline-start: var(--kirby-spacing-l); + margin-inline-start: var(--kirby-spacing-m); justify-self: start; } @@ -73,6 +74,10 @@ header { animation: enter-pop utils.get-transition-duration('short') ease-in-out $small-rect-delay forwards; } + + svg { + height: 100%; + } } @keyframes enter { diff --git a/apps/cookbook/src/app/page/side-nav/side-nav.component.html b/apps/cookbook/src/app/page/side-nav/side-nav.component.html index 82a01fe28e..e07f7638c4 100644 --- a/apps/cookbook/src/app/page/side-nav/side-nav.component.html +++ b/apps/cookbook/src/app/page/side-nav/side-nav.component.html @@ -13,12 +13,13 @@

Resources

[routerLink]="item.path" *ngIf="item.path; else externalUrl" routerLinkActive="is-selected" + class="list-item-link" #resourceLink > {{ item.name }} - + {{ item.name }} @@ -32,7 +33,10 @@

Resources

(keydown.ArrowUp)="onLinksArrowUpDown($event, 'components')" (keydown.ArrowDown)="onLinksArrowUpDown($event, 'components')" > -

Components

+
+

Components

+ All +

@@ -56,17 +60,20 @@

Components

- - - {{ link.name }} - -
-
+ diff --git a/apps/cookbook/src/app/page/side-nav/side-nav.component.scss b/apps/cookbook/src/app/page/side-nav/side-nav.component.scss index 8eee4fe05c..f990c15470 100644 --- a/apps/cookbook/src/app/page/side-nav/side-nav.component.scss +++ b/apps/cookbook/src/app/page/side-nav/side-nav.component.scss @@ -39,16 +39,14 @@ $logo-size-mobile: var(--kirby-spacing-xl); } } -nav { - ul { - list-style: none; - padding: 0; - margin: 0; - line-height: normal; - - li { - margin-block-start: 0; - } +ul { + list-style: none; + padding: 0; + margin: 0; + line-height: normal; + + li { + margin-block-start: 0; } } @@ -57,17 +55,20 @@ kirby-card:not(:last-child) { } a { - @include opt-out.link; + &.list-item-link { + text-decoration: none; + } - text-decoration: none; + position: relative; display: block; padding: $link-padding-block $link-padding-inline; - margin-block: var(--kirby-spacing-xxs); border-radius: $link-border-radius; + line-height: 1.5rem; &:hover, &:focus { color: utils.get-text-color('semi-dark'); + z-index: utils.z('default'); } &.is-selected { @@ -110,13 +111,15 @@ h2 { } } +.components-heading-container { + display: flex; + justify-content: space-between; + align-items: center; +} + hr { border: solid 1px utils.get-color('light'); border-bottom: none; margin-block: $divider-spacing; margin-inline: $divider-inset; - - &:last-child { - border-color: transparent; - } } diff --git a/apps/cookbook/src/app/page/side-nav/side-nav.component.ts b/apps/cookbook/src/app/page/side-nav/side-nav.component.ts index 1526e02ee1..d3e200a167 100644 --- a/apps/cookbook/src/app/page/side-nav/side-nav.component.ts +++ b/apps/cookbook/src/app/page/side-nav/side-nav.component.ts @@ -53,10 +53,6 @@ export class SideNavComponent implements OnInit, AfterViewInit { navigationItems: SideNavLink[] = [ { name: 'Introduction', path: '/home/intro' }, - { - name: 'Components', - path: '/home/component-overview', - }, { name: 'Guides', path: '/home/guides' }, { name: 'Accessibility',