Skip to content

Commit 0561643

Browse files
committed
fix left borders
1 parent 1acd07c commit 0561643

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
@@ -44,8 +44,6 @@ const containerStyles = css`
4444
margin-left: 0px;
4545
margin-right: 0px;
4646
47-
border-bottom: 1px solid ${palette('--onward-content-border')};
48-
4947
${from.leftCol} {
5048
margin-left: 10px;
5149
margin-right: 100px;
@@ -76,6 +74,7 @@ const standardCardsListStyles = css`
7674
display: flex;
7775
flex-direction: row;
7876
gap: 20px;
77+
position: relative;
7978
8079
${from.tablet} {
8180
padding-top: ${space[2]}px;
@@ -85,6 +84,16 @@ const standardCardsListStyles = css`
8584
flex-direction: column;
8685
width: 100%;
8786
}
87+
88+
&::before {
89+
content: '';
90+
position: absolute;
91+
left: -11px;
92+
top: 0;
93+
bottom: 0;
94+
width: 1px;
95+
background-color: ${palette('--onward-content-border')};
96+
}
8897
`;
8998

9099
const headerStyles = css`
@@ -234,9 +243,23 @@ const MoreGalleriesSplashCard = ({
234243
return (
235244
<div
236245
css={css`
246+
position: relative;
237247
margin-bottom: ${space[6]}px;
238248
background-color: ${palette('--onward-card-background')};
239249
padding: ${space[2]}px;
250+
&::before {
251+
content: '';
252+
position: absolute;
253+
left: -11px;
254+
top: 0;
255+
bottom: 0;
256+
width: 1px;
257+
background-color: ${palette('--onward-content-border')};
258+
259+
${until.tablet} {
260+
left: -12px;
261+
}
262+
}
240263
`}
241264
>
242265
<Card {...defaultProps} {...cardProps} />

0 commit comments

Comments
 (0)