feat(card): add alignment shortcuts for md-card-actions

This commit is contained in:
Kara Erickson
2016-04-25 16:14:07 -07:00
parent 0672356290
commit 77be2df563
3 changed files with 14 additions and 0 deletions
+5
View File
@@ -51,6 +51,11 @@ Output:
<img src="https://material.angularjs.org/material2_assets/cards/sections-card-min.png">
#### Preset shortcuts
`md-card-actions` has a few layout shortcuts. You can add `align="end"` to align the buttons at the end of
the main axis (flex-end). The default is `align="start"` (flex-start).
### Preset layouts
You can also leverage preset layouts that format some of the sections together.
+5
View File
@@ -55,6 +55,11 @@ md-card-actions {
margin-left: -16px;
margin-right: -16px;
padding: 8px 0;
&[align='end'] {
display: flex;
justify-content: flex-end;
}
}
[md-card-image] {
+4
View File
@@ -26,6 +26,10 @@
<md-card-content>
<p>Here is some content</p>
</md-card-content>
<md-card-actions align="end">
<button md-button>LIKE</button>
<button md-button>SHARE</button>
</md-card-actions>
</md-card>
<md-card>