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:
51
51
52
52
<img src =" https://material.angularjs.org/material2_assets/cards/sections-card-min.png " >
53
53
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
+
54
59
### Preset layouts
55
60
56
61
You 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 {
55
55
margin-left : -16px ;
56
56
margin-right : -16px ;
57
57
padding : 8px 0 ;
58
+
59
+ & [align = ' end' ] {
60
+ display : flex ;
61
+ justify-content : flex-end ;
62
+ }
58
63
}
59
64
60
65
[md-card-image ] {
Original file line number Diff line number Diff line change 26
26
< md-card-content >
27
27
< p > Here is some content</ p >
28
28
</ 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 >
29
33
</ md-card >
30
34
31
35
< md-card >
You can’t perform that action at this time.
0 commit comments