File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,7 @@ const styles = {
13
13
padding: 1rem;
14
14
font-size: 0.85rem;
15
15
16
- ${ forMedia ( 'tablet' , `
17
- max-width: 320px;
18
- ` ) }
16
+ ${ forMedia ( 'tablet' , `max-width: 320px;` ) }
19
17
` ,
20
18
} ;
21
19
Original file line number Diff line number Diff line change @@ -60,9 +60,9 @@ export const gutter = (n: number = 1) => `
60
60
` ;
61
61
62
62
const mqForMedia = ( media : Media ) => (
63
- media === 'phone'
64
- ? `(max -width: ${ breakpoints [ media ] } )`
65
- : `(min-width: ${ breakpoints [ media ] } )`
63
+ media === 'phone' && `(max-width: ${ breakpoints . phone } )` ||
64
+ media === 'tablet' && `(min -width: ${ breakpoints . phone } )` ||
65
+ `(min-width: ${ breakpoints [ media ] } )`
66
66
) ;
67
67
68
68
export const forMedia = ( media : Media , css : string ) => `
Original file line number Diff line number Diff line change @@ -28,14 +28,16 @@ export const twoColumnSectionStyles = [
28
28
flex: 1;
29
29
}
30
30
31
+ margin: 0 auto;
32
+ max-width: ${ breakpoints . phone } ;
33
+
31
34
` ,
32
35
forMedia ( 'tablet' , `
33
36
display: flex;
34
37
align-items: center;
35
38
flex-direction: row;
36
39
justify-content: center;
37
40
38
- margin: 0 auto;
39
41
max-width: ${ breakpoints . tablet } ;
40
42
` ) ,
41
43
] ;
You can’t perform that action at this time.
0 commit comments