File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77Live demo [ here] ( https://ismaestro.github.io/angular4-example-app/ ) !
88
9- ![ angular4-example-app] ( http://i68.tinypic.com/4vst21 .jpg )
9+ ![ angular4-example-app] ( http://i68.tinypic.com/2jbwkyd .jpg )
1010
1111## Usage
1212
Original file line number Diff line number Diff line change 3131 }
3232}
3333
34+ @media (max-width : 425px ) {
35+ :host (toh-nav ) {
36+ padding-top : 0 ;
37+
38+ header {
39+ position : relative ;
40+
41+ nav {
42+ height : 7em ;
43+ display : flex ;
44+ padding : 1em 2em 0 ;
45+ }
46+ }
47+ }
48+ }
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ <h1 class="section-title">{{'topHeroes' | translate}}</h1>
44 [color] ="'primary' "
55 [mode] ="'indeterminate' ">
66</ md-progress-spinner >
7- < md-grid-list cols =" 2 " rowHeight =" 400px " *ngIf ="heroes ">
8- < md-grid-tile *ngFor ="let hero of heroes ">
7+ < div id =" heroes-list " *ngIf ="heroes ">
8+ < ng-container *ngFor ="let hero of heroes ">
99 < md-card class ="hero-card ">
1010 < md-card-header >
1111 < div md-card-avatar class ="hero-header-image "
@@ -23,5 +23,5 @@ <h1 class="section-title">{{'topHeroes' | translate}}</h1>
2323 </ md-card-header >
2424 < img md-card-image src ="assets/images/heroes/{{hero.id}}.jpg ">
2525 </ md-card >
26- </ md-grid-tile >
27- </ md-grid-list >
26+ </ ng-container >
27+ </ div >
Original file line number Diff line number Diff line change 1+ #heroes-list {
2+ margin : 2em ;
3+ }
4+
15.hero-card {
2- width : 70% ;
6+ width : 45% ;
7+ margin : 2em auto ;
38}
49
510.hero-header-image {
1318.progress-spinner {
1419 margin : 0 auto ;
1520}
21+
22+ @media (max-width : 425px ) {
23+ .hero-card {
24+ width : 80% ;
25+ margin : 0 auto ;
26+ }
27+ }
You can’t perform that action at this time.
0 commit comments