File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,11 @@ Output:
5151
5252<img src =" https://material.angularjs.org/material2_assets/cards/sections-card-min.png " >
5353
54+ #### Preset shortcuts
55+
56+ ` md-card-actions ` has a few layout shortcuts. You can add ` align="end" ` to align the buttons at the end of
57+ the main axis (flex-end). The default is ` align="start" ` (flex-start).
58+
5459### Preset layouts
5560
5661You can also leverage preset layouts that format some of the sections together.
Original file line number Diff line number Diff line change @@ -55,6 +55,11 @@ md-card-actions {
5555 margin-left : -16px ;
5656 margin-right : -16px ;
5757 padding : 8px 0 ;
58+
59+ & [align = ' end' ] {
60+ display : flex ;
61+ justify-content : flex-end ;
62+ }
5863}
5964
6065[md-card-image ] {
Original file line number Diff line number Diff line change 2626 < md-card-content >
2727 < p > Here is some content</ p >
2828 </ md-card-content >
29+ < md-card-actions align ="end ">
30+ < button md-button > LIKE</ button >
31+ < button md-button > SHARE</ button >
32+ </ md-card-actions >
2933 </ md-card >
3034
3135 < md-card >
You can’t perform that action at this time.
0 commit comments