@@ -28,13 +28,14 @@ $mat-dense-two-line-height: 60px;
28
28
$mat-dense-three-line-height : 76px ;
29
29
$mat-dense-multi-line-padding : 16px ;
30
30
$mat-dense-list-icon-size : 20px ;
31
+ $mat-dense-avatar-size : 36px ;
31
32
32
33
$mat-list-item-inset-divider-offset : 72px ;
33
34
34
35
// This mixin provides all list-item styles, changing font size and height
35
36
// based on whether the list is in dense mode.
36
- @mixin mat-list-item-base ($base-height , $avatar- height , $two-line-height ,
37
- $three-line-height , $multi-line-padding , $icon-size ) {
37
+ @mixin mat-list-item-base ($base-height , $height-with-avatar , $two-line-height ,
38
+ $three-line-height , $multi-line-padding , $icon-size , $avatar-size ) {
38
39
39
40
// Prevents the wrapper `mat-list-item-content` from collapsing due to it
40
41
// being `inline` by default.
@@ -68,8 +69,8 @@ $mat-list-item-inset-divider-offset: 72px;
68
69
pointer-events : none ;
69
70
}
70
71
71
- & .mat-list-item-avatar {
72
- height : $avatar- height ;
72
+ & .mat-list-item-with- avatar {
73
+ height : $height-with-avatar ;
73
74
}
74
75
75
76
& .mat-2-line {
@@ -128,12 +129,12 @@ $mat-list-item-inset-divider-offset: 72px;
128
129
129
130
.mat-list-avatar {
130
131
flex-shrink : 0 ;
131
- width : $mat-list- avatar-size ;
132
- height : $mat-list- avatar-size ;
132
+ width : $avatar-size ;
133
+ height : $avatar-size ;
133
134
border-radius : 50% ;
134
135
135
136
~ .mat-divider-inset {
136
- @include mat-inset-divider-offset ($mat-list- avatar-size , $mat-list-side-padding );
137
+ @include mat-inset-divider-offset ($avatar-size , $mat-list-side-padding );
137
138
}
138
139
}
139
140
@@ -210,7 +211,8 @@ $mat-list-item-inset-divider-offset: 72px;
210
211
$mat-list-two-line-height ,
211
212
$mat-list-three-line-height ,
212
213
$mat-list-multi-line-padding ,
213
- $mat-list-icon-size
214
+ $mat-list-icon-size ,
215
+ $mat-list-avatar-size
214
216
);
215
217
}
216
218
}
@@ -232,7 +234,8 @@ $mat-list-item-inset-divider-offset: 72px;
232
234
$mat-dense-two-line-height ,
233
235
$mat-dense-three-line-height ,
234
236
$mat-dense-multi-line-padding ,
235
- $mat-dense-list-icon-size
237
+ $mat-dense-list-icon-size ,
238
+ $mat-dense-avatar-size
236
239
);
237
240
}
238
241
}
0 commit comments