Skip to content

Instantly share code, notes, and snippets.

@rafszul
Last active April 4, 2018 18:53
Show Gist options
  • Select an option

  • Save rafszul/8c3aa5148a960c264f2d1eef6d9485c6 to your computer and use it in GitHub Desktop.

Select an option

Save rafszul/8c3aa5148a960c264f2d1eef6d9485c6 to your computer and use it in GitHub Desktop.
<div layout-gt-xs="row">
<!-- first column -->
<div class="md-padding" flex-gt-xs="15" fxHide.gt-sm>
dupa
</div>
<!-- second column -->
<div class="md-padding" flex-gt-xs="70">
</div>
<div class="md-padding" flex-gt-xs="15" fxHide.gt-sm>
dupa
</div>
</div>
<md-grid-list cols="4" rowHeight="200px">
<md-grid-tile *ngFor="let model of models" [rowspan]="model.rows" [colspan]="model.cols">
<img style="height:100%" src="assets/{{model.name}}.png" alt="photo of the super model {{model.name}}">
<!-- new footer! -->
<md-grid-tile-footer>
<h3 md-line></h3>
<span md-line></span>
<button md-icon-button (click)="showDetails(model)">
<md-icon>info</md-icon>
</button>
</md-grid-tile-footer>
</md-grid-tile>
</md-grid-list>
<md-card class="card-demo" >
<md-card-title>Responsive Layout Directions</md-card-title>
<md-card-subtitle>Layout direction changes to 'column' for 'xs' or 'sm' viewport sizes:</md-card-subtitle>
<md-card-content>
<div class="containerX">
<div fxLayout="row" fxLayout.xs="column" fxLayout.sm="column" fxFlex class="coloredContainerX box" >
<div fxFlex> I'm above on mobile, and to the left on larger devices. </div>
<div fxFlex> I'm below on mobile, and to the right on larger devices. </div>
</div>
</div>
</md-card-content>
</md-card>
<h1 fxFlexAlign="center" [style.xs]="{'font-size.rem': 3 }" [style.sm]="{'font-size.rem': 5}" [style.md]="{'font-size.rem': 7}">
<small>sm</small>{{ title }}<small>Invest</small></h1>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment