-
Notifications
You must be signed in to change notification settings - Fork 915
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b1753ad
commit c897e94
Showing
12 changed files
with
138 additions
and
42 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
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,33 +1,59 @@ | ||
<div [class]="themeClass"> | ||
<md-toolbar color="primary" class="toolbar"> | ||
<span>Angular NGrx Material Starter</span> | ||
<span class="spacer"></span> | ||
<button md-button routerLink="about" routerLinkActive="active">About</button> | ||
<button md-button routerLink="features" routerLinkActive="active">Features</button> | ||
<button md-button>Examples</button> | ||
<button md-icon-button [mdMenuTriggerFor]="toolbarMenu"> | ||
<md-icon>more_vert</md-icon> | ||
</button> | ||
<md-menu #toolbarMenu="mdMenu"> | ||
<button md-menu-item disabled> | ||
<md-icon>person</md-icon> | ||
<span>Manage account</span> | ||
<div [class]="'holder ' + themeClass"> | ||
|
||
<md-sidenav-container class="sidenav-container"> | ||
|
||
<md-sidenav #sidenav class="sidenav" mode="push"> | ||
<div class="branding"><img [src]="logo" /> <span>Angular Starter</span></div> | ||
<md-nav-list> | ||
<a md-list-item *ngFor="let item of navigation" (click)="sidenav.close()" | ||
[routerLink]="[item.link]" routerLinkActive="active"> | ||
{{item.label}} | ||
</a> | ||
</md-nav-list> | ||
</md-sidenav> | ||
|
||
<md-toolbar color="primary" class="toolbar"> | ||
<button md-icon-button class="hidden-md-up" (click)="sidenav.open()"> | ||
<md-icon>menu</md-icon> | ||
</button> | ||
<button md-menu-item routerLink="settings"> | ||
<md-icon>settings</md-icon> | ||
<span>Settings</span> | ||
|
||
<span routerLink="" class="branding spacer hidden-md-up text-center"><img [src]="logo" /> Angular NGrx Material Starter</span> | ||
<span routerLink="" class="branding spacer hidden-sm-down"><img [src]="logo" /> Angular NGrx Material Starter</span> | ||
|
||
<span class="hidden-sm-down"> | ||
<button md-button *ngFor="let item of navigation" [routerLink]="[item.link]" routerLinkActive="active"> | ||
{{item.label}} | ||
</button> | ||
</span> | ||
|
||
<button md-icon-button [mdMenuTriggerFor]="toolbarMenu"> | ||
<md-icon>more_vert</md-icon> | ||
</button> | ||
<button md-menu-item disabled> | ||
<md-icon>power_settings_new</md-icon> | ||
<span>Logout</span> | ||
</button> | ||
</md-menu> | ||
</md-toolbar> | ||
<div class="container-fluid"> | ||
<div class="row"> | ||
<div class="col-sm-12"> | ||
<router-outlet></router-outlet> | ||
<md-menu #toolbarMenu="mdMenu"> | ||
<button md-menu-item disabled> | ||
<md-icon>person</md-icon> | ||
<span>Manage account</span> | ||
</button> | ||
<button md-menu-item routerLink="settings"> | ||
<md-icon>settings</md-icon> | ||
<span>Settings</span> | ||
</button> | ||
<button md-menu-item disabled> | ||
<md-icon>power_settings_new</md-icon> | ||
<span>Logout</span> | ||
</button> | ||
</md-menu> | ||
|
||
</md-toolbar> | ||
|
||
<div class="container-fluid"> | ||
<div class="row"> | ||
<div class="col-sm-12"> | ||
<router-outlet></router-outlet> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</md-sidenav-container> | ||
|
||
</div> |
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,10 +1,42 @@ | ||
.toolbar{ | ||
.holder, .sidenav-container { | ||
height: 100%; | ||
} | ||
|
||
.toolbar { | ||
|
||
button { | ||
margin: 0 10px 0 0; | ||
} | ||
|
||
.branding { | ||
cursor: pointer; | ||
} | ||
|
||
.spacer { | ||
flex: 1 1 auto; | ||
} | ||
} | ||
|
||
.sidenav { | ||
width: 250px; | ||
|
||
.branding { | ||
padding: 10px; | ||
font-size: 20px; | ||
font-weight: bold; | ||
border-bottom: 1px solid; | ||
|
||
img { | ||
margin: 0 10px 0 0; | ||
} | ||
|
||
span { | ||
position: relative; | ||
top: 3px; | ||
} | ||
} | ||
|
||
.mat-nav-list { | ||
padding-top: 0px; | ||
} | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,4 +1,9 @@ | ||
$anms-alternative-primary: mat-palette($mat-purple, 900); | ||
$anms-alternative-accent: mat-palette($mat-amber, A700); | ||
$anms-alternative-warn: mat-palette($mat-deep-orange); | ||
$anms-alternative-theme: mat-light-theme($anms-alternative-primary, $anms-alternative-accent, $anms-alternative-warn); | ||
$anms-alternative-primary: mat-palette($mat-grey, 900); | ||
$anms-alternative-accent: mat-palette($mat-pink); | ||
$anms-alternative-warn: mat-palette($mat-red); | ||
|
||
$anms-alternative-theme: mat-light-theme( | ||
$anms-alternative-primary, | ||
$anms-alternative-accent, | ||
$anms-alternative-warn | ||
); |
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,5 +1,9 @@ | ||
$anms-primary: mat-palette($mat-pink, 700); | ||
//$anms-accent: mat-palette($mat-light-green, A700); | ||
$anms-accent: mat-palette($mat-grey, 900); | ||
$anms-warn: mat-palette($mat-red); | ||
$anms-theme: mat-light-theme($anms-primary, $anms-accent, $anms-warn); | ||
$anms-primary: mat-palette($mat-purple, 900); | ||
$anms-accent: mat-palette($mat-pink, A700); | ||
$anms-warn: mat-palette($mat-deep-orange); | ||
|
||
$anms-theme: mat-light-theme( | ||
$anms-primary, | ||
$anms-accent, | ||
$anms-warn | ||
); |
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