[frontend] Make toolbar fixed and add shadow

This commit is contained in:
Cathy Hu 2020-09-04 13:14:43 +02:00
parent 9d02c32b5a
commit 0ecb137bc9
4 changed files with 17 additions and 2 deletions

View file

@ -1,2 +1,4 @@
<app-toolbar></app-toolbar>
<router-outlet></router-outlet>
<div class="content">
<router-outlet></router-outlet>
</div>

View file

@ -0,0 +1,3 @@
.content {
margin-top: 64px;
}

View file

@ -1,4 +1,4 @@
<mat-toolbar color="primary">
<mat-toolbar class="toolbar mat-elevation-z3" color="primary">
<a mat-button [routerLink]="['/']" routerLinkActive="router-link-active"
>Kibicara</a
>

View file

@ -14,3 +14,13 @@
display: initial;
}
}
.toolbar {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
min-height: 64px;
max-height: 64px;
}