From 41c4ee06b8c31d7022a6b76ea1771d62085b8027 Mon Sep 17 00:00:00 2001 From: Ross Trottier Date: Fri, 26 Jul 2024 12:02:52 -0600 Subject: [PATCH] front page ads --- front-page.php | 47 +++++++++++++++++++++-------------------------- style.css | 24 +++++++++++++++++++++++- 2 files changed, 44 insertions(+), 27 deletions(-) diff --git a/front-page.php b/front-page.php index c500dd7..ba704e2 100644 --- a/front-page.php +++ b/front-page.php @@ -64,19 +64,13 @@
- Ad Mock - -
-

Save Big On Gear at the Slowtwitch Shop >

- -
-
- -
-

Buy and Sell Gear on Our Classifieds >

- -
-
+
@@ -191,6 +185,13 @@ wp_reset_postdata(); ?>
+
+ +
@@ -266,19 +267,13 @@
- Ad Mock - -
-

Save Big On Gear at the Slowtwitch Shop >

- -
-
- -
-

Buy and Sell Gear on Our Classifieds >

- -
-
+
diff --git a/style.css b/style.css index 50de76f..cf13b02 100644 --- a/style.css +++ b/style.css @@ -733,14 +733,19 @@ SECTIONS justify-content: center; } +.st-ad-section-long { + margin-bottom: 2em; +} + @media (min-width: 760px) { .st-ad-section { margin-top: 3.2em; - justify-content: flex-start; + justify-content: space-between; border-bottom: none; padding-left: 1em; + padding-bottom: 0; border-left: 1px #0b4fa0 solid; margin-bottom: 0; } @@ -752,6 +757,23 @@ SECTIONS } } +.st-ad-section .local-highlight-wrapper img, +.st-ad-section .local-highlight-wrapper video, +.st-ad-section-long .local-highlight-wrapper img { + display: block; + width: 100%; + height: auto; + margin-bottom: 1em; +} + +@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 { + margin-bottom: 0; + } +} + /* ============================ COMPONENTS