-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed css styles for banners with multiple contents
- Loading branch information
Showing
18 changed files
with
34 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
tests/resources/renderer/random/bannerWithBreakpointHtmlContentOnly.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<div data-amp-banner="homepage.top" data-amp-attached> | ||
<div class="amp-banner amp-banner--random" data-amp-banner-fingerprint="JTdCJTIyYmFubmVySWQlMjIlM0ElMjIxMjM0JTIyJTJDJTIyYmFubmVyTmFtZSUyMiUzQSUyMk1haW4lMjIlMkMlMjJwb3NpdGlvbklkJTIyJTNBJTIyMTIzNCUyMiUyQyUyMnBvc2l0aW9uQ29kZSUyMiUzQSUyMmhvbWVwYWdlLnRvcCUyMiUyQyUyMnBvc2l0aW9uTmFtZSUyMiUzQSUyMkhvbWVwYWdlJTIwdG9wJTIyJTJDJTIyY2FtcGFpZ25JZCUyMiUzQW51bGwlMkMlMjJjYW1wYWlnbkNvZGUlMjIlM0FudWxsJTJDJTIyY2FtcGFpZ25OYW1lJTIyJTNBbnVsbCU3RA"> | ||
<div class="amp-banner amp-banner--random" data-amp-banner-fingerprint="JTdCJTIyYmFubmVySWQlMjIlM0ElMjIxMjM0JTIyJTJDJTIyYmFubmVyTmFtZSUyMiUzQSUyMk1haW4lMjIlMkMlMjJwb3NpdGlvbklkJTIyJTNBJTIyMTIzNCUyMiUyQyUyMnBvc2l0aW9uQ29kZSUyMiUzQSUyMmhvbWVwYWdlLnRvcCUyMiUyQyUyMnBvc2l0aW9uTmFtZSUyMiUzQSUyMkhvbWVwYWdlJTIwdG9wJTIyJTJDJTIyY2FtcGFpZ25JZCUyMiUzQW51bGwlMkMlMjJjYW1wYWlnbkNvZGUlMjIlM0FudWxsJTJDJTIyY2FtcGFpZ25OYW1lJTIyJTNBbnVsbCU3RA" data-amp-banner-id="1234"> | ||
<div data-amp-content-breakpoint="500" class="amp-banner__content amp-banner__content--html"> | ||
<p>My <span style="color:red;">Awesome</span> content!</p> | ||
</div> | ||
<style>[data-amp-banner="homepage.top"] [data-amp-content-breakpoint="500"]{display:none}@media(min-width: 500px){[data-amp-banner="homepage.top"] [data-amp-content-breakpoint="500"]{display:block}}</style> | ||
<style>[data-amp-banner="homepage.top"] [data-amp-banner-id="1234"] [data-amp-content-breakpoint="500"]{display:none}@media(min-width: 500px){[data-amp-banner="homepage.top"] [data-amp-banner-id="1234"] [data-amp-content-breakpoint="500"]{display:block}}</style> | ||
</div> | ||
</div> |
4 changes: 2 additions & 2 deletions
4
tests/resources/renderer/random/bannerWithBreakpointImageContentOnly.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<div data-amp-banner="homepage.top" data-amp-attached> | ||
<div class="amp-banner amp-banner--random" data-amp-banner-fingerprint="JTdCJTIyYmFubmVySWQlMjIlM0ElMjIxMjM0JTIyJTJDJTIyYmFubmVyTmFtZSUyMiUzQSUyMk1haW4lMjIlMkMlMjJwb3NpdGlvbklkJTIyJTNBJTIyMTIzNCUyMiUyQyUyMnBvc2l0aW9uQ29kZSUyMiUzQSUyMmhvbWVwYWdlLnRvcCUyMiUyQyUyMnBvc2l0aW9uTmFtZSUyMiUzQSUyMkhvbWVwYWdlJTIwdG9wJTIyJTJDJTIyY2FtcGFpZ25JZCUyMiUzQW51bGwlMkMlMjJjYW1wYWlnbkNvZGUlMjIlM0FudWxsJTJDJTIyY2FtcGFpZ25OYW1lJTIyJTNBbnVsbCU3RA"> | ||
<div class="amp-banner amp-banner--random" data-amp-banner-fingerprint="JTdCJTIyYmFubmVySWQlMjIlM0ElMjIxMjM0JTIyJTJDJTIyYmFubmVyTmFtZSUyMiUzQSUyMk1haW4lMjIlMkMlMjJwb3NpdGlvbklkJTIyJTNBJTIyMTIzNCUyMiUyQyUyMnBvc2l0aW9uQ29kZSUyMiUzQSUyMmhvbWVwYWdlLnRvcCUyMiUyQyUyMnBvc2l0aW9uTmFtZSUyMiUzQSUyMkhvbWVwYWdlJTIwdG9wJTIyJTJDJTIyY2FtcGFpZ25JZCUyMiUzQW51bGwlMkMlMjJjYW1wYWlnbkNvZGUlMjIlM0FudWxsJTJDJTIyY2FtcGFpZ25OYW1lJTIyJTNBbnVsbCU3RA" data-amp-banner-id="1234"> | ||
<a data-amp-content-breakpoint="500" class="amp-banner__content amp-banner__content--img" href="https://www.example.com/main1"> | ||
<picture> | ||
<img srcset="https://img.example.com/500/main1.png 500w, https://img.example.com/1000/main1.png 1000w" src="https://img.example.com/1000/main1.png" sizes="(min-width: 1000px) calc(1000px - 2 * 16px), (min-width: 600px) calc(100vw - 2 * 16px), 100vw" alt="Main 1" title="Main 1"> | ||
</picture> | ||
</a> | ||
<style>[data-amp-banner="homepage.top"] [data-amp-content-breakpoint="500"]{display:none}@media(min-width: 500px){[data-amp-banner="homepage.top"] [data-amp-content-breakpoint="500"]{display:block}}</style> | ||
<style>[data-amp-banner="homepage.top"] [data-amp-banner-id="1234"] [data-amp-content-breakpoint="500"]{display:none}@media(min-width: 500px){[data-amp-banner="homepage.top"] [data-amp-banner-id="1234"] [data-amp-content-breakpoint="500"]{display:block}}</style> | ||
</div> | ||
</div> |
2 changes: 1 addition & 1 deletion
2
tests/resources/renderer/random/bannerWithDefaultHtmlContentOnly.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/resources/renderer/random/bannerWithDefaultImageContentOnly.withOptionalValues.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/resources/renderer/random/bannerWithDefaultImageContentOnly.withoutOptionalValues.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.