Skip to content

Commit f4c7e5c

Browse files
Add accordion spacing styles to bodywrapper
1 parent ad5438f commit f4c7e5c

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

dotcom-rendering/src/components/KeyEventsCarousel.importable.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,17 @@ const carouselStyles = css`
3131
scroll-behavior: smooth;
3232
overflow-x: auto;
3333
overflow-y: hidden;
34+
margin-right: -10px;
3435
scrollbar-width: none;
3536
&::-webkit-scrollbar {
3637
display: none;
3738
}
39+
${from.tablet} {
40+
margin-right: -20px;
41+
}
3842
3943
${from.desktop} {
44+
margin-right: 0px;
4045
background-color: ${palette('--key-event-background-desktop')};
4146
}
4247
`;

dotcom-rendering/src/layouts/LiveLayout.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,17 @@ const sidePaddingDesktop = css`
217217
const bodyWrapper = css`
218218
position: relative;
219219
margin-bottom: ${space[3]}px;
220+
padding: ${space[3]}px;
221+
overflow: hidden;
222+
223+
${from.mobileLandscape} {
224+
padding: ${space[3]}px ${space[5]}px;
225+
}
226+
220227
${from.desktop} {
221228
margin-bottom: 0;
229+
padding: 0;
230+
overflow: visible;
222231
}
223232
`;
224233

0 commit comments

Comments
 (0)