Skip to content

Commit 55ad5e1

Browse files
committed
Rearrange css styles
1 parent aa24218 commit 55ad5e1

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

dotcom-rendering/src/components/MoreGalleries.tsx

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,6 @@ type Props = {
2222
format: ArticleFormat;
2323
};
2424

25-
const standardCardStyles = css`
26-
position: relative;
27-
padding: ${space[2]}px;
28-
background-color: ${palette('--onward-more-galleries-card-background')};
29-
30-
${from.tablet} {
31-
:not(:first-child)::before {
32-
content: '';
33-
position: absolute;
34-
top: 0;
35-
bottom: 0;
36-
left: -10px; /* shift into the gap */
37-
width: 1px;
38-
background: ${palette('--onward-content-border')};
39-
}
40-
}
41-
`;
42-
4325
const standardCardsListStyles = css`
4426
width: 100%;
4527
display: grid;
@@ -77,6 +59,24 @@ const cardsContainerStyles = css`
7759
}
7860
`;
7961

62+
const standardCardStyles = css`
63+
position: relative;
64+
padding: ${space[2]}px;
65+
background-color: ${palette('--onward-more-galleries-card-background')};
66+
67+
${from.tablet} {
68+
:not(:first-child)::before {
69+
content: '';
70+
position: absolute;
71+
top: 0;
72+
bottom: 0;
73+
left: -10px; /* shift into the gap */
74+
width: 1px;
75+
background: ${palette('--onward-content-border')};
76+
}
77+
}
78+
`;
79+
8080
const headerStyles = css`
8181
color: ${palette('--carousel-text')};
8282
${headlineBold24};

0 commit comments

Comments
 (0)