Skip to content

Commit

Permalink
Add wrapper div for merchandising slots
Browse files Browse the repository at this point in the history
  • Loading branch information
emma-imber committed Nov 16, 2023
1 parent 5dfdb0d commit cc14d0d
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
@()(implicit request: RequestHeader)

@fragments.commercial.adSlot(
"merchandising",
Seq("commercial-component"),
Map(),
showLabel=false,
refresh=false,
useFlexContainer = true
){ }
<div class="merchandising-wrapper">
@fragments.commercial.adSlot(
"merchandising",
Seq("commercial-component"),
Map(),
showLabel=false,
refresh=false,
useFlexContainer = true
){ }
</div>
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
@(isPaidContent: Boolean, hasPageSkin: Boolean = false)(implicit request: RequestHeader)

@fragments.commercial.adSlot(
"merchandising-high",
Seq("commercial-component-high"),
Map(),
showLabel=false,
refresh=false,
useFlexContainer = true
){ }
<div class="merchandising-high-wrapper">
@fragments.commercial.adSlot(
"merchandising-high",
Seq("commercial-component-high"),
Map(),
showLabel=false,
refresh=false,
useFlexContainer = true
){ }
</div>
11 changes: 11 additions & 0 deletions static/src/stylesheets/module/_adslot.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,17 @@
margin-right: auto;
}

.merchandising-wrapper,
.merchandising-high-wrapper {
position: relative;
margin: auto;
@each $breakpoint, $container-width in $breakpoints {
@include mq($breakpoint) {
max-width: $container-width;
}
}
}

.ad-slot--crossword-banner,
.ad-slot--top-banner-ad-desktop {
margin: 0 auto;
Expand Down

0 comments on commit cc14d0d

Please sign in to comment.