|
1 | | -<md-sidenav-container class="demo-root" fullscreen> |
2 | | - <md-sidenav #start> |
3 | | - <md-nav-list> |
4 | | - <a *ngFor="let navItem of navItems" |
5 | | - md-list-item |
6 | | - (click)="start.close()" |
7 | | - [routerLink]="[navItem.route]"> |
8 | | - {{navItem.name}} |
9 | | - </a> |
| 1 | +<!-- Theme class needs to be applied above sidenav-container to style content background. --> |
| 2 | +<div [class.demo-dark-theme]="isDarkTheme"> |
| 3 | + <md-sidenav-container class="demo-root" fullscreen> |
| 4 | + <md-sidenav #start> |
| 5 | + <md-nav-list> |
| 6 | + <a *ngFor="let navItem of navItems" |
| 7 | + md-list-item |
| 8 | + (click)="start.close()" |
| 9 | + [routerLink]="[navItem.route]"> |
| 10 | + {{navItem.name}} |
| 11 | + </a> |
10 | 12 |
|
11 | | - <hr> |
| 13 | + <hr> |
12 | 14 |
|
13 | | - <a md-list-item |
14 | | - (click)="start.close()" |
15 | | - [routerLink]="['baseline']"> |
16 | | - Baseline |
17 | | - </a> |
18 | | - </md-nav-list> |
19 | | - <button md-button (click)="start.close()">CLOSE</button> |
20 | | - </md-sidenav> |
21 | | - <div> |
22 | | - <md-toolbar color="primary"> |
23 | | - <button md-icon-button (click)="start.open()"> |
24 | | - <md-icon class="md-24" >menu</md-icon> |
25 | | - </button> |
26 | | - <div class="demo-toolbar"> |
27 | | - <h1>Angular Material Demos</h1> |
28 | | - <button md-button (click)="toggleFullscreen()" title="Toggle fullscreen"> |
29 | | - Fullscreen |
| 15 | + <a md-list-item |
| 16 | + (click)="start.close()" |
| 17 | + [routerLink]="['baseline']"> |
| 18 | + Baseline |
| 19 | + </a> |
| 20 | + </md-nav-list> |
| 21 | + <button md-button (click)="start.close()">CLOSE</button> |
| 22 | + </md-sidenav> |
| 23 | + <div> |
| 24 | + <md-toolbar color="primary"> |
| 25 | + <button md-icon-button (click)="start.open()"> |
| 26 | + <md-icon class="md-24" >menu</md-icon> |
30 | 27 | </button> |
31 | | - <button md-button (click)="root.dir = (root.dir == 'rtl' ? 'ltr' : 'rtl')" title="Toggle between RTL and LTR"> |
32 | | - {{root.dir.toUpperCase()}} |
33 | | - </button> |
34 | | - </div> |
35 | | - </md-toolbar> |
| 28 | + <div class="demo-toolbar"> |
| 29 | + <h1>Angular Material Demos</h1> |
| 30 | + <span class="demo-flex-fill"></span> |
| 31 | + <button md-button (click)="isDarkTheme = !isDarkTheme">Toggle Theme</button> |
| 32 | + <button md-button (click)="toggleFullscreen()" title="Toggle fullscreen"> |
| 33 | + Fullscreen |
| 34 | + </button> |
| 35 | + <button md-button (click)="root.dir = (root.dir == 'rtl' ? 'ltr' : 'rtl')" title="Toggle between RTL and LTR"> |
| 36 | + {{root.dir.toUpperCase()}} |
| 37 | + </button> |
| 38 | + </div> |
| 39 | + </md-toolbar> |
36 | 40 |
|
37 | | - <div #root="$implicit" dir="ltr" class="demo-content"> |
38 | | - <router-outlet></router-outlet> |
| 41 | + <div #root="$implicit" dir="ltr" class="demo-content"> |
| 42 | + <router-outlet></router-outlet> |
| 43 | + </div> |
39 | 44 | </div> |
40 | | - </div> |
41 | | -</md-sidenav-container> |
| 45 | + </md-sidenav-container> |
| 46 | +</div> |
0 commit comments