chaged overlay to js

This commit is contained in:
2026-01-10 10:03:50 +01:00
parent f39f8878e0
commit c1fba3b72f
+31 -17
View File
@@ -274,11 +274,10 @@ data:
object-fit: contain !important; object-fit: contain !important;
} }
/* Iframe container sizing and positioning for overlay */ /* Iframe container sizing */
.calcom-iframe, .calcom-iframe,
.calendar-iframe { .calendar-iframe {
height: 600px !important; height: 600px !important;
position: relative !important;
} }
/* Purple filter on iframes */ /* Purple filter on iframes */
@@ -288,23 +287,38 @@ data:
border-radius: 8px !important; border-radius: 8px !important;
} }
/* Purple overlay on iframe containers */ # Custom JS
.calcom-iframe::after, custom.js: |
.calendar-iframe::after { // Wait for page to fully load, then add purple overlay to calendar iframes
content: "" !important; function addCalendarOverlays() {
position: absolute !important; document.querySelectorAll('iframe[src*="calendar.google.com"], iframe[src*="booking.dooplex.hu"]').forEach(function(iframe) {
top: 0 !important; // Skip if overlay already exists
left: 0 !important; if (iframe.parentElement.querySelector('.calendar-overlay')) return;
right: 0 !important;
bottom: 0 !important; // Create overlay div
background: rgba(226, 146, 255, 0.18) !important; var overlay = document.createElement('div');
pointer-events: none !important; overlay.className = 'calendar-overlay';
z-index: 10 !important; overlay.style.cssText = 'position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(226,146,255,0.18);pointer-events:none;z-index:10;border-radius:8px;';
border-radius: 8px !important;
// Ensure parent is positioned
iframe.parentElement.style.position = 'relative';
// Add overlay
iframe.parentElement.appendChild(overlay);
});
} }
# Custom JS // Run on load and periodically (in case of dynamic content)
custom.js: "" if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', addCalendarOverlays);
} else {
addCalendarOverlays();
}
// Also run after a short delay to catch late-loading iframes
setTimeout(addCalendarOverlays, 1000);
setTimeout(addCalendarOverlays, 3000);
--- ---
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment