11$mat-sort-header-arrow-margin : 6px ;
2- $mat-sort-header-arrow-container-size : 10px ;
3- $mat-sort-header-arrow-pointer-length : 8px ;
2+ $mat-sort-header-arrow-container-size : 12px ;
3+ $mat-sort-header-arrow-stem-size : 10px ;
4+ $mat-sort-header-arrow-pointer-length : 6px ;
45$mat-sort-header-arrow-thickness : 2px ;
6+ $mat-sort-header-arrow-transition : 225ms cubic-bezier (0.4 , 0 , 0.2 , 1 );
57
68.mat-sort-header-container {
79 display : flex ;
@@ -27,9 +29,9 @@ $mat-sort-header-arrow-thickness: 2px;
2729.mat-sort-header-arrow {
2830 height : $mat-sort-header-arrow-container-size ;
2931 width : $mat-sort-header-arrow-container-size ;
30- position : relative ;
3132 margin : 0 0 0 $mat-sort-header-arrow-margin ;
32- transform : rotate (45deg );
33+ position : relative ;
34+ display : flex ;
3335
3436 .mat-sort-header-position-before & {
3537 margin : 0 $mat-sort-header-arrow-margin 0 0 ;
@@ -38,26 +40,46 @@ $mat-sort-header-arrow-thickness: 2px;
3840
3941.mat-sort-header-stem {
4042 background : currentColor ;
41- transform : rotate (135deg );
42- height : $mat-sort-header-arrow-container-size ;
43+ height : $mat-sort-header-arrow-stem-size ;
4344 width : $mat-sort-header-arrow-thickness ;
4445 margin : auto ;
46+ display : flex ;
47+ align-items : center ;
4548}
4649
47- .mat-sort-header-pointer-left {
48- background : currentColor ;
49- width : $mat-sort-header-arrow-thickness ;
50- height : $mat-sort-header-arrow-pointer-length ;
50+ .mat-sort-header-indicator {
51+ width : 100% ;
52+ height : $mat-sort-header-arrow-thickness ;
53+ display : flex ;
54+ align-items : center ;
5155 position : absolute ;
52- bottom : 0 ;
53- right : 0 ;
56+ top : 0 ;
57+ transition : $mat-sort-header-arrow-transition ;
5458}
5559
60+ .mat-sort-header-pointer-middle {
61+ margin : auto ;
62+ height : $mat-sort-header-arrow-thickness ;
63+ width : $mat-sort-header-arrow-thickness ;
64+ background : currentColor ;
65+ transform : rotate (45deg );
66+ }
67+
68+ .mat-sort-header-pointer-left ,
5669.mat-sort-header-pointer-right {
5770 background : currentColor ;
5871 width : $mat-sort-header-arrow-pointer-length ;
5972 height : $mat-sort-header-arrow-thickness ;
73+ transition : $mat-sort-header-arrow-transition ;
6074 position : absolute ;
61- bottom : 0 ;
75+ }
76+
77+ .mat-sort-header-pointer-left {
78+ transform-origin : right ;
79+ left : 0 ;
80+ }
81+
82+ .mat-sort-header-pointer-right {
83+ transform-origin : left ;
6284 right : 0 ;
6385}
0 commit comments