File tree 2 files changed +17
-12
lines changed
2 files changed +17
-12
lines changed Original file line number Diff line number Diff line change 20
20
@mixin mat-card-typography ($config ) {
21
21
.mat-card {
22
22
font-family : mat-font-family ($config );
23
- }
24
23
25
- .mat-card-title {
26
- font : {
27
- size : mat-font-size ($config , headline );
28
- weight : mat-font-weight ($config , headline );
24
+ // These need the extra specificity, because they can be
25
+ // easily overridden by the global typography styles.
26
+ .mat-card-title {
27
+ font-size : mat-font-size ($config , headline );
28
+ font-weight : mat-font-weight ($config , headline );
29
+ line-height : normal ;
29
30
}
30
- }
31
31
32
- .mat-card-subtitle ,
33
- .mat-card-content ,
34
- .mat-card-header .mat-card-title {
35
- font-size : mat-font-size ($config , body-1 );
32
+ .mat-card-subtitle ,
33
+ .mat-card-content ,
34
+ .mat-card-header .mat-card-title {
35
+ font-size : mat-font-size ($config , body-1 );
36
+ }
36
37
}
37
38
}
Original file line number Diff line number Diff line change @@ -47,8 +47,12 @@ $mat-card-header-size: 40px !default;
47
47
margin-bottom : 16px ;
48
48
}
49
49
50
- .mat-card-title , .mat-card-subtitle , .mat-card-content {
51
- @extend %mat-card-section-base ;
50
+ // Needs slightly higher specificity due to it potentially
51
+ // being overridden by the global typography styles.
52
+ .mat-card {
53
+ .mat-card-title , .mat-card-subtitle , .mat-card-content {
54
+ @extend %mat-card-section-base ;
55
+ }
52
56
}
53
57
54
58
.mat-card-actions {
You can’t perform that action at this time.
0 commit comments