ultimate-jekyll-manager 0.0.205 → 0.0.206
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -325,6 +325,7 @@ function setupPromoCountdown() {
|
|
|
325
325
|
function adjustNavbarOffset() {
|
|
326
326
|
const $promoBanner = document.getElementById('pricing-promo-banner');
|
|
327
327
|
const $navbarWrapper = document.querySelector('.navbar-wrapper');
|
|
328
|
+
const $firstSection = document.querySelector('main > section:first-of-type');
|
|
328
329
|
|
|
329
330
|
if (!$promoBanner || !$navbarWrapper) {
|
|
330
331
|
return;
|
|
@@ -334,5 +335,14 @@ function adjustNavbarOffset() {
|
|
|
334
335
|
$promoBanner.removeAttribute('hidden');
|
|
335
336
|
|
|
336
337
|
const bannerHeight = $promoBanner.offsetHeight;
|
|
337
|
-
|
|
338
|
+
const bannerOffset = bannerHeight - 10;
|
|
339
|
+
|
|
340
|
+
// Push navbar down to make room for banner
|
|
341
|
+
$navbarWrapper.style.marginTop = `${bannerOffset}px`;
|
|
342
|
+
|
|
343
|
+
// Also increase first section padding to account for banner
|
|
344
|
+
if ($firstSection) {
|
|
345
|
+
const currentPadding = parseFloat(getComputedStyle($firstSection).paddingTop);
|
|
346
|
+
$firstSection.style.paddingTop = `${currentPadding + bannerOffset}px`;
|
|
347
|
+
}
|
|
338
348
|
}
|
|
@@ -1,21 +1,11 @@
|
|
|
1
1
|
// Classy General Layout
|
|
2
2
|
// Standard spacing and layout rules
|
|
3
3
|
|
|
4
|
-
// ============================================
|
|
5
|
-
// Main Content Spacing
|
|
6
|
-
// ============================================
|
|
7
|
-
main {
|
|
8
|
-
padding-top: 6rem;
|
|
9
|
-
// padding-bottom: 2rem;
|
|
10
|
-
|
|
11
|
-
@media (min-width: 992px) {
|
|
12
|
-
padding-top: 3.5rem;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
4
|
// ============================================
|
|
17
5
|
// Section Spacing
|
|
18
6
|
// ============================================
|
|
7
|
+
// First section gets extra top padding to account for fixed navbar
|
|
8
|
+
// This keeps section backgrounds flush with navbar (no gap/line)
|
|
19
9
|
main {
|
|
20
10
|
> section {
|
|
21
11
|
padding-top: 4rem;
|
|
@@ -25,6 +15,16 @@ main {
|
|
|
25
15
|
padding-top: 7rem;
|
|
26
16
|
padding-bottom: 7rem;
|
|
27
17
|
}
|
|
18
|
+
|
|
19
|
+
// First section: add navbar height to top padding
|
|
20
|
+
// Using :first-of-type so it works even if other elements (like banners) come before
|
|
21
|
+
&:first-of-type {
|
|
22
|
+
padding-top: 10rem; // 6rem navbar + 4rem section
|
|
23
|
+
|
|
24
|
+
@media (min-width: 992px) {
|
|
25
|
+
padding-top: 10.5rem; // 3.5rem navbar + 7rem section
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
|
|
@@ -129,11 +129,14 @@ main {
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
// Vertical breakout - top (
|
|
132
|
+
// Vertical breakout - top (pull section up behind navbar)
|
|
133
|
+
// Use this when you want the section to extend behind the transparent navbar
|
|
133
134
|
.section-breakout-top {
|
|
134
135
|
margin-top: -6rem;
|
|
136
|
+
padding-top: 10rem !important; // 6rem navbar + 4rem section
|
|
135
137
|
|
|
136
138
|
@media (min-width: 992px) {
|
|
137
139
|
margin-top: -3.5rem;
|
|
140
|
+
padding-top: 10.5rem !important; // 3.5rem navbar + 7rem section
|
|
138
141
|
}
|
|
139
142
|
}
|
|
@@ -219,7 +219,7 @@ faqs:
|
|
|
219
219
|
<!-- Promo Banner -->
|
|
220
220
|
<div id="pricing-promo-banner" class="position-fixed top-0 start-0 w-100 text-light text-center bg-body animation-slide-down" style="z-index: 1050;" hidden>
|
|
221
221
|
<div class="bg-primary-soft py-2 position-relative">
|
|
222
|
-
<button type="button" class="btn-close btn-close-white position-absolute top-0 end-0 mt-2 me-2" aria-label="Close" onclick="this.closest('#pricing-promo-banner').hidden=true;document.querySelector('.navbar-wrapper').style.marginTop=''"></button>
|
|
222
|
+
<button type="button" class="btn-close btn-close-white position-absolute top-0 end-0 mt-2 me-2" aria-label="Close" onclick="this.closest('#pricing-promo-banner').hidden=true;document.querySelector('.navbar-wrapper').style.marginTop='';document.querySelector('main > section:first-of-type').style.paddingTop=''"></button>
|
|
223
223
|
<div class="container-fluid">
|
|
224
224
|
<div class="d-flex align-items-center justify-content-center gap-3 flex-wrap pe-4">
|
|
225
225
|
<span id="pricing-promo-badge" class="badge bg-gradient-rainbow px-2 py-1 fs-6 animation-wiggle">
|
|
@@ -240,7 +240,7 @@ faqs:
|
|
|
240
240
|
</div>
|
|
241
241
|
|
|
242
242
|
<!-- Hero Section -->
|
|
243
|
-
<section
|
|
243
|
+
<section>
|
|
244
244
|
<div class="container">
|
|
245
245
|
<div class="row justify-content-center text-center">
|
|
246
246
|
<div class="col-lg-10">
|