.sidenav-container { height: calc(100% - 64px); } .sidenav { width: 200px; } .sidenav .mat-toolbar { background: inherit; } .mat-toolbar.mat-primary { position: sticky; top: 0; z-index: 1; } .mat-sidenav-content { padding: 20px; }