File tree 4 files changed +21
-6
lines changed
4 files changed +21
-6
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,12 @@ 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) or ` align="column" ` to arrange your action buttons in a column. The default is
58
+ ` align="start" ` (flex-start).
59
+
54
60
### Preset layouts
55
61
56
62
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,16 @@ 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
+ }
63
+
64
+ & [align = ' column' ] {
65
+ display : flex ;
66
+ flex-direction : column ;
67
+ }
58
68
}
59
69
60
70
[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 >
42
46
43
47
< md-card class ="demo-card-blue md-card-flat ">
44
48
< md-card-title > Easily customizable</ md-card-title >
45
- < md-card-actions >
49
+ < md-card-actions align =" column " >
46
50
< button md-button > First</ button >
47
51
< button md-button > Second</ button >
48
52
</ md-card-actions >
Original file line number Diff line number Diff line change 14
14
15
15
.demo-card-blue {
16
16
background-color : #B0BECC ;
17
-
18
- md-card-actions {
19
- display : flex ;
20
- flex-direction : column ;
21
- }
22
17
}
You can’t perform that action at this time.
0 commit comments