Skip to content

Instantly share code, notes, and snippets.

@ajtowf
Last active October 17, 2020 10:52
Show Gist options
  • Save ajtowf/f7e52bb054b2af801264cb1912ccc8a1 to your computer and use it in GitHub Desktop.
Save ajtowf/f7e52bb054b2af801264cb1912ccc8a1 to your computer and use it in GitHub Desktop.
Styling Applications with Angular Material - Removed Sidenav Docs Sample
<mat-sidenav-container class="example-container">
<mat-sidenav #sidenav class="example-sidenav">
Jolly good!
</mat-sidenav>
<div class="example-sidenav-content">
<button type="button" mat-button (click)="sidenav.open()">
Open sidenav
</button>
</div>
</mat-sidenav-container>
.example-container {
width: 500px;
height: 300px;
border: 1px solid rgba(0, 0, 0, 0.5);
}
.example-sidenav-content {
display: flex;
height: 100%;
align-items: center;
justify-content: center;
}
.example-sidenav {
padding: 20px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment