Skip to content

Commit 6db7f44

Browse files
I think the alignment is working
1 parent bc86642 commit 6db7f44

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

dotcom-rendering/src/components/marketing/banners/designableBanner/DesignableBannerV2.tsx

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -554,14 +554,18 @@ const styles = {
554554
555555
${from.desktop} {
556556
padding: ${space[3]}px ${space[8]}px ${space[6]}px ${space[3]}px;
557-
grid-template-columns: auto 380px 300px auto;
557+
grid-template-columns: auto 380px 300px 1fr;
558558
grid-template-rows: auto 1fr auto;
559559
width: 100%;
560-
max-width: 1300px;
560+
max-width: 980px;
561561
margin: 0 auto;
562562
}
563563
${from.leftCol} {
564-
grid-template-columns: auto 460px 485px auto;
564+
grid-template-columns: auto 460px 380px 1fr;
565+
max-width: 1140px;
566+
}
567+
${from.wide} {
568+
grid-template-columns: auto 460px 380px 1fr;
565569
}
566570
`,
567571
verticalLine: css`
@@ -588,6 +592,10 @@ const styles = {
588592
${from.phablet} {
589593
grid-column: 4;
590594
grid-row: 1;
595+
justify-self: start;
596+
position: sticky;
597+
top: 10px;
598+
padding-left: 32px;
591599
}
592600
`,
593601
// hacky change until we can rework the designable banner header with the correct styles
@@ -691,7 +699,6 @@ const styles = {
691699
grid-column: 3;
692700
grid-row: 1;
693701
grid-row-end: 3;
694-
padding-right: ${space[8]}px;
695702
}
696703
`,
697704
guardianLogoContainer: css`
@@ -703,8 +710,8 @@ const styles = {
703710
justify-content: center;
704711
align-items: center;
705712
margin-top: ${space[9]}px;
706-
margin-right: -${space[3]}px;
707-
margin-left: 8px; // Add this line to ensure the logo is always 8px away from the line
713+
margin-right: ${space[2]}px;
714+
margin-left: 22px;
708715
}
709716
`,
710717

0 commit comments

Comments
 (0)