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

Commit

Permalink
fix(card): action bar spacing, remove order attrs
Browse files Browse the repository at this point in the history
Card sections use DOM source order rather than flex order. This makes it so that an action bar can go in between content and the footer, and have any number of combinations.

Closes #2403
  • Loading branch information
marcysutton committed Apr 19, 2015
1 parent aff50d5 commit 4a6c10d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/components/card/card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,21 @@ md-card {

> img,
> :not(md-card-content) img {
order: 0;
width: 100%;
}

md-card-content {
order: 1;
padding: $card-padding;
}
md-action-bar {
margin: 0;

.md-button {
margin-bottom: $card-margin;
margin-top: $card-margin;
}
}
md-card-footer {
order: 2;
padding: $card-padding;
}
}
Expand Down
4 changes: 4 additions & 0 deletions src/components/card/demoBasicUsage/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ <h2 class="md-title">Paracosm</h2>
two most important words in Ernest Greene's musical language: feel it. It's a simple request, as well...
</p>
</md-card-content>
<md-action-bar layout="row" layout-align="end center">
<md-button>Action 1</md-button>
<md-button>Action 2</md-button>
</md-action-bar>
</md-card>

<md-card>
Expand Down

0 comments on commit 4a6c10d

Please sign in to comment.