From e1a67b23d1997352d284e1d83358eebc1e2e0101 Mon Sep 17 00:00:00 2001 From: Ross Trottier Date: Mon, 29 Jul 2024 11:03:13 -0600 Subject: [PATCH] ads sections --- archive.php | 10 +++++++++- single.php | 11 ++++++++++- style.css | 37 +++++++++++++++++++++++++++++++------ 3 files changed, 50 insertions(+), 8 deletions(-) diff --git a/archive.php b/archive.php index a8a2da3..70596a9 100644 --- a/archive.php +++ b/archive.php @@ -54,8 +54,16 @@ wp_reset_postdata(); ?> - + + +
+ +
diff --git a/single.php b/single.php index c7d1148..84b3c57 100644 --- a/single.php +++ b/single.php @@ -21,7 +21,7 @@ - + +
+ +
+ \ No newline at end of file diff --git a/style.css b/style.css index cf13b02..3c88224 100644 --- a/style.css +++ b/style.css @@ -757,9 +757,11 @@ SECTIONS } } -.st-ad-section .local-highlight-wrapper img, -.st-ad-section .local-highlight-wrapper video, -.st-ad-section-long .local-highlight-wrapper img { +.st-ad-section img, +.st-ad-section a, +.st-ad-section video, +.st-ad-section-long img, +.st-ad-section-long a { display: block; width: 100%; height: auto; @@ -767,13 +769,36 @@ SECTIONS } @media (min-width: 760px) { - .st-ad-section .local-highlight-wrapper img, - .st-ad-section .local-highlight-wrapper video, - .st-ad-section-long .local-highlight-wrapper img { + .st-ad-section img, + .st-ad-section a, + .st-ad-section video, + .st-ad-section-long img, + .st-ad-section-long a { margin-bottom: 0; } } +.st-ad-section-long-archive a, +.st-ad-section-long-archive img, +.st-ad-section-long-archive video { + width: 100%; + height: auto; +} + +.local-article-mid-roll a, +.local-article-mid-roll img { + width: 100%; + height: auto; +} + +.st-ad-section-long-post-end a, +.st-ad-section-long-post-end img, +.st-ad-section-long-post-end video { + width: 100%; + height: auto; + margin-bottom: 1em; +} + /* ============================ COMPONENTS