1
1
$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 ;
4
5
$mat-sort-header-arrow-thickness : 2px ;
6
+ $mat-sort-header-arrow-transition : 225ms cubic-bezier (0.4 , 0 , 0.2 , 1 );
5
7
6
8
.mat-sort-header-container {
7
9
display : flex ;
@@ -27,9 +29,9 @@ $mat-sort-header-arrow-thickness: 2px;
27
29
.mat-sort-header-arrow {
28
30
height : $mat-sort-header-arrow-container-size ;
29
31
width : $mat-sort-header-arrow-container-size ;
30
- position : relative ;
31
32
margin : 0 0 0 $mat-sort-header-arrow-margin ;
32
- transform : rotate (45deg );
33
+ position : relative ;
34
+ display : flex ;
33
35
34
36
.mat-sort-header-position-before & {
35
37
margin : 0 $mat-sort-header-arrow-margin 0 0 ;
@@ -38,26 +40,46 @@ $mat-sort-header-arrow-thickness: 2px;
38
40
39
41
.mat-sort-header-stem {
40
42
background : currentColor ;
41
- transform : rotate (135deg );
42
- height : $mat-sort-header-arrow-container-size ;
43
+ height : $mat-sort-header-arrow-stem-size ;
43
44
width : $mat-sort-header-arrow-thickness ;
44
45
margin : auto ;
46
+ display : flex ;
47
+ align-items : center ;
45
48
}
46
49
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 ;
51
55
position : absolute ;
52
- bottom : 0 ;
53
- right : 0 ;
56
+ top : 0 ;
57
+ transition : $mat-sort-header-arrow-transition ;
54
58
}
55
59
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 ,
56
69
.mat-sort-header-pointer-right {
57
70
background : currentColor ;
58
71
width : $mat-sort-header-arrow-pointer-length ;
59
72
height : $mat-sort-header-arrow-thickness ;
73
+ transition : $mat-sort-header-arrow-transition ;
60
74
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 ;
62
84
right : 0 ;
63
85
}
0 commit comments