From bcdcc3df001d80bdbc14f7f61d8b0b73e0347895 Mon Sep 17 00:00:00 2001 From: Chris-Larkin Date: Fri, 2 Aug 2024 19:45:20 +0000 Subject: [PATCH] fix CV section again --- assets/css/custom.css | 13 +++---------- assets/js/custom.js | 4 ++-- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/assets/css/custom.css b/assets/css/custom.css index b09e5bc..dab6f2b 100644 --- a/assets/css/custom.css +++ b/assets/css/custom.css @@ -20,16 +20,9 @@ width: 100%; } -.flex.flex-col.items-center.max-w-prose.mx-auto.gap-3.justify-center, -.items-center.max-w-prose.mx-auto { - align-items: flex-start !important; - max-width: none !important; - padding: 0 20px; -} - -/* Ensure the CV section remains unaffected */ -.flex.flex-col.items-center.max-w-prose.mx-auto .flex.flex-col.lg\\:gap-x-6.w-100.px-6.sm\\:px-0 { +.flex.flex-col.items-center.max-w-prose.mx-auto, +.flex.flex-col.items-center.max-w-prose.mx-auto .flex.flex-col.lg\:gap-x-6.w-100.px-6.sm\:px-0 { + align-items: center !important; padding-left: 0 !important; max-width: initial !important; - align-items: center !important; } diff --git a/assets/js/custom.js b/assets/js/custom.js index 63382fc..0738104 100644 --- a/assets/js/custom.js +++ b/assets/js/custom.js @@ -49,8 +49,8 @@ document.addEventListener('DOMContentLoaded', function() { console.log('Found', sections.length, 'section headings'); sections.forEach((section, index) => { - // Skip the CV section by checking the closest parent element's class list - if (section.closest('.flex.flex-col.lg\\:gap-x-6.w-100.px-6.sm\\:px-0')) return; + // Skip the CV section by checking the parent elements' class list + if (section.closest('.flex.flex-col.items-center.max-w-prose.mx-auto')) return; console.log(`Processing section ${index}:`, section.textContent);