Skip to content

Commit

Permalink
Enforce top/bottom sticky ad size limit (#35370)
Browse files Browse the repository at this point in the history
  • Loading branch information
powerivq authored Jul 23, 2021
1 parent 84f5925 commit e5a2a35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extensions/amp-ad/0.1/amp-ad.css
Original file line number Diff line number Diff line change
Expand Up @@ -153,14 +153,15 @@ amp-ad[sticky] {

amp-ad[sticky='top'] {
width: 100% !important;
max-height: 20% !important;
background: #fff;
padding-bottom: 5px;
}

amp-ad[sticky='bottom'] {
max-width: 100%;
width: 100% !important;
max-height: 20%;
max-height: 20% !important;
padding-bottom: env(safe-area-inset-bottom, 0px);
background: #fff;
bottom: 0;
Expand Down

0 comments on commit e5a2a35

Please sign in to comment.