4
4
5
5
$mat-list-side-padding : 16px ;
6
6
$mat-list-avatar-size : 40px ;
7
- $mat-list-icon-size : 24px ;
8
7
9
8
// Normal list variables
10
9
$mat-list-top-padding : 8px ;
@@ -17,6 +16,7 @@ $mat-list-avatar-height: 56px;
17
16
// spec requires two- and three-line lists be taller
18
17
$mat-list-two-line-height : 72px ;
19
18
$mat-list-three-line-height : 88px ;
19
+ $mat-list-icon-size : 24px ;
20
20
21
21
// Dense list variables
22
22
$mat-dense-top-padding : 4px ;
@@ -25,11 +25,12 @@ $mat-dense-base-height: 40px;
25
25
$mat-dense-avatar-height : 48px ;
26
26
$mat-dense-two-line-height : 60px ;
27
27
$mat-dense-three-line-height : 76px ;
28
+ $mat-dense-list-icon-size : 20px ;
28
29
29
30
// This mixin provides all list-item styles, changing font size and height
30
31
// based on whether the list is in dense mode.
31
32
@mixin mat-list-item-base ($font-size , $base-height , $avatar-height ,
32
- $two-line-height , $three-line-height ) {
33
+ $two-line-height , $three-line-height , $icon-size ) {
33
34
34
35
// Prevents the wrapper `mat-list-item-content` from collapsing due to it
35
36
// being `inline` by default.
@@ -84,8 +85,9 @@ $mat-dense-three-line-height: 76px;
84
85
}
85
86
86
87
.mat-list-icon {
87
- width : $mat-list-icon-size ;
88
- height : $mat-list-icon-size ;
88
+ width : $icon-size ;
89
+ height : $icon-size ;
90
+ font-size : $icon-size ;
89
91
border-radius : 50% ;
90
92
padding : 4px ;
91
93
}
@@ -128,7 +130,8 @@ $mat-dense-three-line-height: 76px;
128
130
$mat-list-base-height ,
129
131
$mat-list-avatar-height ,
130
132
$mat-list-two-line-height ,
131
- $mat-list-three-line-height
133
+ $mat-list-three-line-height ,
134
+ $mat-list-icon-size
132
135
);
133
136
134
137
@include mat-line-base ($mat-list-secondary-font );
@@ -154,7 +157,8 @@ $mat-dense-three-line-height: 76px;
154
157
$mat-dense-base-height ,
155
158
$mat-dense-avatar-height ,
156
159
$mat-dense-two-line-height ,
157
- $mat-dense-three-line-height
160
+ $mat-dense-three-line-height ,
161
+ $mat-dense-list-icon-size
158
162
);
159
163
160
164
@include mat-line-base ($mat-dense-font-size );
0 commit comments