Skip to content

Commit 781d8d8

Browse files
committed
fix left borders
1 parent 87a398b commit 781d8d8

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

dotcom-rendering/src/components/MoreGalleries.tsx

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ const containerStyles = css`
4646
margin-left: 0px;
4747
margin-right: 0px;
4848
49-
border-bottom: 1px solid ${palette('--onward-content-border')};
50-
5149
${from.leftCol} {
5250
margin-left: 10px;
5351
margin-right: 100px;
@@ -78,6 +76,7 @@ const standardCardsListStyles = css`
7876
display: flex;
7977
flex-direction: row;
8078
gap: 20px;
79+
position: relative;
8180
8281
${from.tablet} {
8382
padding-top: ${space[2]}px;
@@ -87,6 +86,16 @@ const standardCardsListStyles = css`
8786
flex-direction: column;
8887
width: 100%;
8988
}
89+
90+
&::before {
91+
content: '';
92+
position: absolute;
93+
left: -11px;
94+
top: 0;
95+
bottom: 0;
96+
width: 1px;
97+
background-color: ${palette('--onward-content-border')};
98+
}
9099
`;
91100

92101
const headerStyles = css`
@@ -239,9 +248,23 @@ const MoreGalleriesSplashCard = ({
239248
return (
240249
<div
241250
css={css`
251+
position: relative;
242252
margin-bottom: ${space[6]}px;
243253
background-color: ${palette('--onward-card-background')};
244254
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: ${palette('--onward-content-border')};
263+
264+
${until.tablet} {
265+
left: -12px;
266+
}
267+
}
245268
`}
246269
>
247270
{Card({ ...defaultProps, ...cardProps })}

0 commit comments

Comments
 (0)