From 5afda4e953b9e47caf0bb929d888bc6d6921f8a1 Mon Sep 17 00:00:00 2001 From: oliver Date: Tue, 5 May 2026 15:00:18 -0300 Subject: [PATCH] fix: article CTA panel scrolls with content, appears below last paragraph --- index.html | 104 ++++++++++++++++++++++++++--------------------------- 1 file changed, 52 insertions(+), 52 deletions(-) diff --git a/index.html b/index.html index 7753996..8c82b5c 100644 --- a/index.html +++ b/index.html @@ -2085,10 +2085,8 @@ /* ── Article CTA panel ─────────────────────────────────────────── */ #article-cta-panel { - position: absolute; - bottom: 28px; - right: 28px; - width: 234px; + width: 260px; + margin: 2.5rem 0 0 auto; background: #fdf6ee; border: 1px solid rgba(93, 64, 55, 0.22); border-top: 3px solid var(--gold); @@ -2097,7 +2095,6 @@ 0 8px 32px rgba(62, 39, 35, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08); padding: 18px 16px 16px; - z-index: 10; } .article-cta-heading { @@ -2175,7 +2172,7 @@ .article-cta-loc-menu { display: none; position: absolute; - bottom: calc(100% + 4px); + top: calc(100% + 4px); left: 0; right: 0; background: #fdf6ee; @@ -2261,7 +2258,7 @@ font-size: 0.95rem; column-width: 280px; } - #article-cta-panel { display: none; } + #article-cta-panel { width: 100%; margin-top: 2rem; } } #modal-confirm .confirm-title { @@ -2626,51 +2623,53 @@

-
+
+
-
-
-

Try ODOO Free — 4 Weeks

-

No credit card required

-
- -
- -
- - - - - - +
+
+

Try ODOO Free — 4 Weeks

+

No credit card required

+ + +
+ +
+ + + + + + +
+
- -
- - - - -
- +
@@ -3535,7 +3534,8 @@ var articleTitle = document.getElementById('article-title'); var articleArea = document.getElementById('article-area'); var articleDate = document.getElementById('article-date'); - var articleBody = document.getElementById('article-body'); + var articleBody = document.getElementById('article-body'); + var articleContent = document.getElementById('article-content'); function openArticle(index) { var post = allPosts[index]; @@ -3543,7 +3543,7 @@ articleArea.textContent = post.area || ''; articleTitle.textContent = post.title || ''; articleDate.textContent = formatDate(post.date); - articleBody.innerHTML = post.content || ''; + articleContent.innerHTML = post.content || ''; articleBody.scrollTop = 0; articleOverlay.classList.add('is-open'); document.body.style.overflow = 'hidden';