File tree Expand file tree Collapse file tree 1 file changed +16
-9
lines changed
dotcom-rendering/src/components/marketing/banners/designableBanner Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -540,17 +540,19 @@ const styles = {
540
540
}
541
541
` ,
542
542
containerOverrides : css `
543
- display : flex;
544
- flex-direction : column;
543
+ display : grid;
545
544
position : relative;
546
545
padding : ${ space [ 3 ] } px ${ space [ 3 ] } px ${ space [ 3 ] } px ${ space [ 3 ] } px;
547
546
548
547
${ from . phablet } {
549
548
padding : ${ space [ 3 ] } px ${ space [ 3 ] } px ${ space [ 6 ] } px ${ space [ 3 ] } px;
549
+ width : 100% ;
550
+ max-width : 490px ;
551
+ margin : 0 auto;
552
+ grid-template-columns : auto auto auto;
550
553
}
551
554
552
555
${ from . desktop } {
553
- display : grid;
554
556
padding : ${ space [ 3 ] } px ${ space [ 8 ] } px ${ space [ 6 ] } px ${ space [ 8 ] } px;
555
557
grid-template-columns : auto auto auto auto;
556
558
grid-template-rows : auto 1fr auto;
@@ -573,13 +575,15 @@ const styles = {
573
575
}
574
576
` ,
575
577
closeButtonOverrides : css `
576
- ${ until . desktop } {
577
- position : fixed;
578
- padding-right : 10px ;
579
- right : 0 ;
578
+ ${ until . phablet } {
579
+ grid-column : 1 / -1 ;
580
+ grid-row : 1 ;
581
+ justify-self : end;
582
+ position : sticky;
583
+ top : 10px ;
580
584
}
581
585
582
- ${ from . tablet } {
586
+ ${ from . phablet } {
583
587
grid-column : 4 ;
584
588
grid-row : 1 ;
585
589
}
@@ -648,7 +652,7 @@ const styles = {
648
652
` ,
649
653
contentContainer : ( showRemindMeLater : boolean ) => css `
650
654
order : 2 ;
651
- ${ from . tablet } {
655
+ ${ from . phablet } {
652
656
grid-column : 2 ;
653
657
grid-row : ${ showRemindMeLater ? '2' : '2 / span 2' } ;
654
658
}
@@ -676,6 +680,9 @@ const styles = {
676
680
` ,
677
681
threeTierChoiceCardsContainer : css `
678
682
order : 3 ;
683
+ ${ from . phablet } {
684
+ grid-column : 2 ;
685
+ }
679
686
${ from . desktop } {
680
687
grid-column : 3 ;
681
688
grid-row : 1 ;
You can’t perform that action at this time.
0 commit comments