@@ -16,6 +16,52 @@ $image-size: 60px;
16
16
flex-shrink : 0 ;
17
17
flex-grow : 0 ;
18
18
19
+ & :nth-of-type (4 n + 3 ) {
20
+ -ms-grid-column : 1 ;
21
+ }
22
+ & :nth-of-type (4 n ) {
23
+ -ms-grid-column : 2 ;
24
+ }
25
+ & :nth-of-type (4 n + 1 ) {
26
+ -ms-grid-column : 3 ;
27
+ }
28
+ & :nth-of-type (4 n + 2 ) {
29
+ -ms-grid-column : 4 ;
30
+ }
31
+ & :nth-of-type (3 ),
32
+ & :nth-of-type (4 ),
33
+ & :nth-of-type (5 ),
34
+ & :nth-of-type (6 ) {
35
+ -ms-grid-row : 2 ;
36
+ }
37
+ & :nth-of-type (7 ),
38
+ & :nth-of-type (8 ),
39
+ & :nth-of-type (9 ),
40
+ & :nth-of-type (10 ) {
41
+ -ms-grid-row : 3 ;
42
+ }
43
+
44
+ .trace-item {
45
+ & :nth-of-type (2 n + 1 ) {
46
+ -ms-grid-column : 1 ;
47
+ }
48
+ & :nth-of-type (2 n + 2 ) {
49
+ -ms-grid-column : 2 ;
50
+ }
51
+ & :nth-of-type (3 ),
52
+ & :nth-of-type (4 ) {
53
+ -ms-grid-row : 2 ;
54
+ }
55
+ & :nth-of-type (5 ),
56
+ & :nth-of-type (6 ) {
57
+ -ms-grid-row : 3 ;
58
+ }
59
+ & :nth-of-type (7 ),
60
+ & :nth-of-type (8 ) {
61
+ -ms-grid-row : 4 ;
62
+ }
63
+ }
64
+
19
65
& :not (:first-of-type ) {
20
66
position : relative ;
21
67
& ::before {
@@ -37,6 +83,53 @@ $image-size: 60px;
37
83
& --double {
38
84
grid-column : span 2 ;
39
85
flex-grow : 0 ;
86
+
87
+ & :nth-of-type (2 n + 1 ) {
88
+ -ms-grid-column : 1 ;
89
+ }
90
+ & :nth-of-type (2 n + 2 ) {
91
+ -ms-grid-column : 3 ;
92
+ }
93
+ & :nth-of-type (5 ),
94
+ & :nth-of-type (6 ) {
95
+ -ms-grid-row : 2 ;
96
+ }
97
+ & :nth-of-type (7 ),
98
+ & :nth-of-type (8 ) {
99
+ -ms-grid-row : 3 ;
100
+ }
101
+
102
+ .trace-item {
103
+ & :nth-of-type (4 n + 1 ) {
104
+ -ms-grid-column : 1 ;
105
+ }
106
+ & :nth-of-type (4 n + 2 ) {
107
+ -ms-grid-column : 2 ;
108
+ }
109
+ & :nth-of-type (4 n + 3 ) {
110
+ -ms-grid-column : 3 ;
111
+ }
112
+ & :nth-of-type (4 n ) {
113
+ -ms-grid-column : 4 ;
114
+ }
115
+ & :nth-of-type (3 ),
116
+ & :nth-of-type (4 ) {
117
+ -ms-grid-row : 1 ;
118
+ }
119
+ & :nth-of-type (5 ),
120
+ & :nth-of-type (6 ),
121
+ & :nth-of-type (7 ),
122
+ & :nth-of-type (8 ) {
123
+ -ms-grid-row : 2 ;
124
+ }
125
+ & :nth-of-type (9 ),
126
+ & :nth-of-type (10 ),
127
+ & :nth-of-type (11 ),
128
+ & :nth-of-type (12 ) {
129
+ -ms-grid-row : 3 ;
130
+ }
131
+ }
132
+
40
133
.trace-grid__column__items {
41
134
display : grid ;
42
135
grid-gap : 0 ;
@@ -50,7 +143,7 @@ $image-size: 60px;
50
143
grid-template-columns : repeat (2 , $item-size );
51
144
flex-grow : 1 ;
52
145
width : 100% ;
53
- padding : 0 var (--spacing-half-unit ) var (--spacing-base -unit );
146
+ padding : 0 var (--spacing-half-unit ) var (--spacing-half -unit );
54
147
}
55
148
56
149
& __header {
@@ -63,7 +156,7 @@ $image-size: 60px;
63
156
justify-content : flex-start ;
64
157
border-top : var (--border-light );
65
158
width : 100% ;
66
- padding : var (--spacing-base -unit ) var (--spacing-base-unit ) 0 ;
159
+ padding : var (--spacing-half -unit ) var (--spacing-base-unit ) 0 ;
67
160
box-sizing : border-box ;
68
161
}
69
162
}
@@ -76,7 +169,7 @@ $image-size: 60px;
76
169
align-items : center ;
77
170
justify-content : flex-start ;
78
171
flex-grow : 0 ;
79
- margin-top : var (--spacing-base -unit );
172
+ margin-top : var (--spacing-half -unit );
80
173
color : var (--color-text-base );
81
174
@include trans ;
82
175
position : relative ;
@@ -175,7 +268,7 @@ $image-size: 60px;
175
268
font-weight : var (--font-weight-semibold );
176
269
width : $item-size * 0.8 ;
177
270
height : 34px ;
178
- margin-top : var (--spacing-half -unit );
271
+ margin-top : var (--spacing-quarter -unit );
179
272
color : var (--color-text-base );
180
273
text-transform : capitalize ;
181
274
font-size : var (--font-size-small );
0 commit comments