Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(card): fix card demo for webkit engine
Browse files Browse the repository at this point in the history
Webkit doesn't allow using percentage values for flex parents, that's why we need to use flex without percentage on `<= xs` webkit

Fixes #6573 Fixes #6678

  Closes #6765
  • Loading branch information
devversion authored and ThomasBurleson committed Jan 21, 2016
1 parent 9d30661 commit 8871eb3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions src/components/card/demoBasicUsage/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div ng-controller="AppCtrl" ng-cloak>
<md-content class="md-padding" layout="row" layout-wrap layout-align="center start" layout-xs="column">
<div flex="50" flex-sm="100" flex-xs="100" layout="column">
<div ng-controller="AppCtrl" ng-cloak >
<md-content class="md-padding" layout-xs="column" layout="row">
<div flex-xs flex-gt-xs="50" layout="column">
<md-card>
<md-card-title>
<md-card-title-text>
Expand Down Expand Up @@ -40,7 +40,7 @@
</md-card-content>
</md-card>
</div>
<div flex="50" flex-sm="100" flex-xs="100" layout="column">
<div flex-xs flex-gt-xs="50" layout="column">
<md-card>
<md-card-title>
<md-card-title-text>
Expand Down
6 changes: 3 additions & 3 deletions src/components/card/demoCardActionButtons/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div ng-controller="AppCtrl" ng-cloak>
<md-content class="md-padding" layout="row" layout-wrap layout-align="center start" layout-xs="column" >
<div flex="50" flex-xs="100" layout="column">
<md-content class="md-padding" layout-xs="column" layout="row">
<div flex-xs flex-gt-xs="50" layout="column">
<md-card>
<img ng-src="{{imagePath}}" class="md-card-image" alt="Washed Out">
<md-card-title>
Expand Down Expand Up @@ -46,7 +46,7 @@
</md-card-actions>
</md-card>
</div>
<div flex="50" flex-xs="100" layout="column">
<div flex-xs flex-gt-xs="50" layout="column">
<md-card>
<img ng-src="{{imagePath}}" class="md-card-image" alt="Washed Out">
<md-card-title>
Expand Down
6 changes: 3 additions & 3 deletions src/components/card/demoInCardActions/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div ng-controller="AppCtrl" ng-cloak>
<md-content class="md-padding" layout="row" layout-wrap layout-align="center start" layout-xs="column">
<div flex="50" flex-xs="100" layout="column">
<md-content class="md-padding" layout-xs="column" layout="row">
<div flex-xs flex-gt-xs="50" layout="column">
<md-card>
<img ng-src="{{imagePath}}" class="md-card-image" alt="Washed Out">
<md-card-title>
Expand Down Expand Up @@ -61,7 +61,7 @@
</md-card-content>
</md-card>
</div>
<div flex="50" flex-xs="100" layout="column">
<div flex-xs flex-gt-xs="50" layout="column">
<md-card>
<md-card-header>
<md-card-avatar>
Expand Down

0 comments on commit 8871eb3

Please sign in to comment.