File tree Expand file tree Collapse file tree 1 file changed +8
-15
lines changed
dotcom-rendering/src/components Expand file tree Collapse file tree 1 file changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,9 @@ type Props = {
19
19
} ;
20
20
21
21
const containerStyles = css `
22
+ padding : ${ space [ 2 ] } px 0 ${ space [ 3 ] } px;
22
23
${ from . tablet } {
23
- padding : 0 ${ space [ 5 ] } px;
24
+ padding : ${ space [ 2 ] } px ${ space [ 5 ] } px;
24
25
}
25
26
${ from . wide } {
26
27
padding-right : 100px ;
@@ -29,6 +30,8 @@ const containerStyles = css`
29
30
30
31
const carouselStyles = css `
31
32
display : grid;
33
+ gap : 10px ;
34
+ padding : 0 10px ;
32
35
grid-auto-columns : 1fr ;
33
36
grid-auto-flow : column;
34
37
overflow-x : auto;
@@ -37,11 +40,12 @@ const carouselStyles = css`
37
40
scroll-behavior : smooth;
38
41
overscroll-behavior-x : contain;
39
42
overscroll-behavior-y : auto;
40
- ${ until . tablet } {
41
- scroll-padding-left : 10px ;
42
- }
43
+ scroll-padding-left : 10px ;
44
+
43
45
${ from . tablet } {
46
+ padding : 0 ;
44
47
scroll-padding-left : 120px ;
48
+ gap : ${ space [ 5 ] } px;
45
49
}
46
50
${ from . desktop } {
47
51
scroll-padding-left : 240px ;
@@ -70,17 +74,6 @@ const itemStyles = css`
70
74
scroll-snap-align : start;
71
75
grid-area : span 1 ;
72
76
position : relative;
73
- margin : ${ space [ 2 ] } px 10px ${ space [ 3 ] } px;
74
- : first-child {
75
- ${ from . tablet } {
76
- margin-left : 0 ;
77
- }
78
- }
79
- : last-child {
80
- ${ from . tablet } {
81
- margin-right : 0 ;
82
- }
83
- }
84
77
` ;
85
78
86
79
const verticalLineStyles = css `
You can’t perform that action at this time.
0 commit comments