Buttons and sidebar toggle
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
7b748f1ca2
commit
c17b608188
@ -14,6 +14,13 @@
|
||||
border: 1px solid rgba(25, 116, 211, 0.5);
|
||||
|
||||
}
|
||||
|
||||
.btn-sidebar-close{
|
||||
float: right;
|
||||
font-size: 45px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.navToggle-btn {
|
||||
height: 40px;
|
||||
color: #fff;
|
||||
|
@ -1,13 +1,17 @@
|
||||
<div>
|
||||
<h1>Welcome, traveler.</h1>
|
||||
<mat-drawer-container class="main-container" [autosize]="true">
|
||||
<mat-drawer #drawer class="sidenav" mode="side" [mode]="'push'">
|
||||
<mat-drawer-container class="main-container" [autosize]="true" [hasBackdrop]="false">
|
||||
<mat-drawer #drawer class="sidenav" mode="side" [mode]="'push'" [opened]="true" >
|
||||
<span class="btn-sidebar-close" (click)="drawer.toggle()">
|
||||
×
|
||||
</span >
|
||||
<app-nav-bar></app-nav-bar>
|
||||
</mat-drawer>
|
||||
<div class="sidenav-content">
|
||||
<button type="button" class = "navToggle-btn btn-14" (click)="drawer.toggle()">
|
||||
<button *ngIf="!drawer.opened" type="button" class = "navToggle-btn btn-14" (click)="drawer.toggle()">
|
||||
Отобразить панель навигации
|
||||
</button>
|
||||
<br>
|
||||
<router-outlet></router-outlet>
|
||||
</div>
|
||||
</mat-drawer-container>
|
||||
|
Reference in New Issue
Block a user