Skip to content

Commit

Permalink
fix(ads): full width on all one-column ads (#2440)
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelpeixe authored Feb 20, 2025
1 parent 77834d1 commit f37f898
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions newspack-theme/sass/blocks/_blocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1722,10 +1722,12 @@ $colors: (
}
}

// Make SCAIP placements full-width.
.entry .entry-content .scaip {
.newspack_global_ad,
.widget_newspack-ads-widget {
// Make ad placements full-width.
.main-content {
.scaip .newspack_global_ad,
.scaip .widget_newspack-ads-widget,
.newspack_global_ad.sidebar_article-1,
.newspack_global_ad.sidebar_article-2 {
background-color: var(--newspack-theme-color-bg-pre);
margin-left: calc(50% - 50vw);
margin-right: calc(50% - 50vw);
Expand Down

0 comments on commit f37f898

Please sign in to comment.