-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "update: add button to toggle theme in demo-app" (#3271)
- Loading branch information
Showing
15 changed files
with
61 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
section { | ||
display: flex; | ||
align-items: center; | ||
background-color: #f7f7f7; | ||
margin: 8px; | ||
} | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,41 @@ | ||
<!-- Theme class needs to be applied above sidenav-container to style content background. --> | ||
<div [class.demo-dark-theme]="isDarkTheme"> | ||
<md-sidenav-container class="demo-root" fullscreen> | ||
<md-sidenav #start> | ||
<md-nav-list> | ||
<a *ngFor="let navItem of navItems" | ||
md-list-item | ||
(click)="start.close()" | ||
[routerLink]="[navItem.route]"> | ||
{{navItem.name}} | ||
</a> | ||
<md-sidenav-container class="demo-root" fullscreen> | ||
<md-sidenav #start> | ||
<md-nav-list> | ||
<a *ngFor="let navItem of navItems" | ||
md-list-item | ||
(click)="start.close()" | ||
[routerLink]="[navItem.route]"> | ||
{{navItem.name}} | ||
</a> | ||
|
||
<hr> | ||
<hr> | ||
|
||
<a md-list-item | ||
(click)="start.close()" | ||
[routerLink]="['baseline']"> | ||
Baseline | ||
</a> | ||
</md-nav-list> | ||
<button md-button (click)="start.close()">CLOSE</button> | ||
</md-sidenav> | ||
<div> | ||
<md-toolbar color="primary"> | ||
<button md-icon-button (click)="start.open()"> | ||
<md-icon class="md-24" >menu</md-icon> | ||
<a md-list-item | ||
(click)="start.close()" | ||
[routerLink]="['baseline']"> | ||
Baseline | ||
</a> | ||
</md-nav-list> | ||
<button md-button (click)="start.close()">CLOSE</button> | ||
</md-sidenav> | ||
<div> | ||
<md-toolbar color="primary"> | ||
<button md-icon-button (click)="start.open()"> | ||
<md-icon class="md-24" >menu</md-icon> | ||
</button> | ||
<div class="demo-toolbar"> | ||
<h1>Angular Material Demos</h1> | ||
<button md-button (click)="toggleFullscreen()" title="Toggle fullscreen"> | ||
Fullscreen | ||
</button> | ||
<button md-button (click)="root.dir = (root.dir == 'rtl' ? 'ltr' : 'rtl')" title="Toggle between RTL and LTR"> | ||
{{root.dir.toUpperCase()}} | ||
</button> | ||
<div class="demo-toolbar"> | ||
<h1>Angular Material Demos</h1> | ||
<span class="demo-flex-fill"></span> | ||
<button md-button (click)="isDarkTheme = !isDarkTheme">Toggle Theme</button> | ||
<button md-button (click)="toggleFullscreen()" title="Toggle fullscreen"> | ||
Fullscreen | ||
</button> | ||
<button md-button (click)="root.dir = (root.dir == 'rtl' ? 'ltr' : 'rtl')" title="Toggle between RTL and LTR"> | ||
{{root.dir.toUpperCase()}} | ||
</button> | ||
</div> | ||
</md-toolbar> | ||
|
||
<div #root="$implicit" dir="ltr" class="demo-content"> | ||
<router-outlet></router-outlet> | ||
</div> | ||
</md-toolbar> | ||
|
||
<div #root="$implicit" dir="ltr" class="demo-content"> | ||
<router-outlet></router-outlet> | ||
</div> | ||
</md-sidenav-container> | ||
</div> | ||
</div> | ||
</md-sidenav-container> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
} | ||
|
||
.demo-section { | ||
background-color: #f7f7f7; | ||
margin: 8px; | ||
padding: 16px; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters