File tree 2 files changed +99
-10
lines changed
src/styles/components/widgets 2 files changed +99
-10
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ const internetExplorerPostCSS = () => {
27
27
combineSelectors ,
28
28
customProperties ,
29
29
removeRoot ,
30
- autoprefixer ( { browsers : [ 'ie 11' ] } ) ,
30
+ autoprefixer ( { browsers : [ 'ie 11' ] , grid : true } ) ,
31
31
cssnano ,
32
32
] ;
33
33
fs . readFile ( `${ BUILD_ENV } /${ fileName } .ie.css` , ( err , css ) => {
@@ -37,16 +37,12 @@ const internetExplorerPostCSS = () => {
37
37
to : `${ BUILD_ENV } /${ fileName } .ie.min.css` ,
38
38
} )
39
39
. then ( result => {
40
- fs . writeFile (
41
- `${ BUILD_ENV } /${ fileName } .ie.min.css` ,
42
- result . css ,
43
- error => {
44
- if ( error ) {
45
- /* eslint-disable no-console */
46
- console . log ( error ) ;
47
- }
40
+ fs . writeFile ( `${ BUILD_ENV } /${ fileName } .ie.min.css` , result . css , error => {
41
+ if ( error ) {
42
+ /* eslint-disable no-console */
43
+ console . log ( error ) ;
48
44
}
49
- ) ;
45
+ } ) ;
50
46
} ) ;
51
47
} ) ;
52
48
} ;
Original file line number Diff line number Diff line change @@ -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 ;
You can’t perform that action at this time.
0 commit comments