Skip to content

Commit 6bd24ce

Browse files
committed
feat(demo): fixed navigation
1 parent 0036770 commit 6bd24ce

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

projects/elements-demo/src/app/core/layout/navigation/navigation.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<div class="spacer"></div>
12
<mat-nav-list>
23
<ng-container *ngFor="let nav of navigation">
34
<a

projects/elements-demo/src/app/core/layout/navigation/navigation.component.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1+
:host {
2+
position: relative;
3+
}
4+
5+
.spacer {
6+
min-width: 250px;
7+
}
8+
19
mat-nav-list {
210
padding-top: 0;
11+
position: fixed;
12+
top: 64px;
313
}
414

515
a[mat-list-item] {
@@ -18,3 +28,9 @@ a[mat-list-item] {
1828
margin: 0 0 0 30px;
1929
}
2030
}
31+
32+
:host-context(.responsive) {
33+
mat-nav-list {
34+
top: 56px;
35+
}
36+
}

0 commit comments

Comments
 (0)