Skip to content

Commit bc91182

Browse files
committed
fix left borders
1 parent 744acb1 commit bc91182

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed

dotcom-rendering/src/components/MoreGalleries.tsx

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,13 @@ const containerStyles = css`
3939
display: flex;
4040
flex-direction: column;
4141
position: relative;
42-
overflow: hidden; /* Needed for scrolling to work */
4342
4443
margin-top: ${space[2]}px;
4544
padding-bottom: ${space[6]}px;
4645
4746
margin-left: 0px;
4847
margin-right: 0px;
4948
50-
border-bottom: 1px solid ${themePalette('--onward-content-border')};
51-
5249
${from.leftCol} {
5350
margin-left: 10px;
5451
margin-right: 100px;
@@ -79,6 +76,7 @@ const standardCardsListStyles = css`
7976
display: flex;
8077
flex-direction: row;
8178
gap: 20px;
79+
position: relative;
8280
8381
${from.tablet} {
8482
padding-top: ${space[2]}px;
@@ -88,6 +86,16 @@ const standardCardsListStyles = css`
8886
flex-direction: column;
8987
width: 100%;
9088
}
89+
90+
&::before {
91+
content: '';
92+
position: absolute;
93+
left: -11px;
94+
top: 0;
95+
bottom: 0;
96+
width: 1px;
97+
background-color: ${themePalette('--onward-content-border')};
98+
}
9199
`;
92100

93101
const headerStyles = css`
@@ -240,9 +248,25 @@ const MoreGalleriesSplashCard = ({
240248
return (
241249
<div
242250
css={css`
251+
position: relative;
243252
margin-bottom: ${space[6]}px;
244253
background-color: ${themePalette('--onward-card-background')};
245254
padding: ${space[2]}px;
255+
&::before {
256+
content: '';
257+
position: absolute;
258+
left: -11px;
259+
top: 0;
260+
bottom: 0;
261+
width: 1px;
262+
background-color: ${themePalette(
263+
'--onward-content-border',
264+
)};
265+
266+
${until.tablet} {
267+
left: -12px;
268+
}
269+
}
246270
`}
247271
>
248272
{Card({ ...defaultProps, ...cardProps })}

0 commit comments

Comments
 (0)