Skip to content

Commit

Permalink
fix CV section again
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-Larkin committed Aug 2, 2024
1 parent b035d55 commit bcdcc3d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
13 changes: 3 additions & 10 deletions assets/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
4 changes: 2 additions & 2 deletions assets/js/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit bcdcc3d

Please sign in to comment.