Skip to content
This repository has been archived by the owner on Aug 29, 2023. 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. Closes #2412.
  • Loading branch information
marcysutton authored and ThomasBurleson committed Apr 20, 2015
1 parent 4350803 commit 50ce4e8
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
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
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 50ce4e8

Please sign in to comment.