upskill-event-manager/assets/css/hvac-welcome-popup.css
Ben Reed cdc5ea85f4 feat: Add comprehensive CSS, JavaScript and theme asset infrastructure
Add massive collection of CSS, JavaScript and theme assets that were previously excluded:

**CSS Files (681 total):**
- HVAC plugin-specific styles (hvac-*.css): 34 files including dashboard, certificates, registration, mobile nav, accessibility fixes, animations, and welcome popup
- Theme framework files (Astra, builder systems, layouts): 200+ files
- Plugin compatibility styles (WooCommerce, WPForms, Elementor, Contact Form 7): 150+ files
- WordPress core and editor styles: 50+ files
- Responsive and RTL language support: 200+ files

**JavaScript Files (400+ total):**
- HVAC plugin functionality (hvac-*.js): 27 files including menu systems, dashboard enhancements, profile sharing, mobile responsive features, accessibility, and animations
- Framework and library files: jQuery plugins, GSAP, AOS, Swiper, Chart.js, Lottie, Isotope
- Plugin compatibility scripts: WPForms, WooCommerce, Elementor, Contact Form 7, LifterLMS
- WordPress core functionality: customizer, admin, block editor compatibility
- Third-party integrations: Stripe, SMTP, analytics, search functionality

**Assets:**
- Certificate background images and logos
- Comprehensive theme styling infrastructure
- Mobile-responsive design systems
- Cross-browser compatibility assets
- Performance-optimized minified versions

**Updated .gitignore:**
- Fixed asset directory whitelisting patterns to properly include CSS/JS/images
- Added proper directory structure recognition (!/assets/css/, !/assets/js/, etc.)
- Maintains security by excluding sensitive files while including essential assets

This commit provides the complete frontend infrastructure needed for:
- Full theme functionality and styling
- Plugin feature implementations
- Mobile responsiveness and accessibility
- Cross-browser compatibility
- Performance optimization
- Developer workflow support
2025-08-11 16:20:31 -03:00

475 lines
No EOL
9 KiB
CSS

/**
* HVAC Welcome Popup Styles
*
* Styles for the welcome popup modal system
* Updated: 2025-08-05 - Fixed navigation overlapping with content v1.0.6
*/
/* Popup overlay and modal */
.hvac-welcome-popup {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 999999;
}
.hvac-welcome-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(2px);
}
.hvac-welcome-modal {
position: relative;
max-width: 800px;
width: 90%;
max-height: 90vh;
margin: 5vh auto;
background: #ffffff;
border-radius: 8px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
overflow-y: auto;
animation: hvacWelcomeSlideIn 0.3s ease-out;
}
/* Prevent body scroll when popup is open */
body.hvac-welcome-open {
overflow: hidden;
}
/* Close button */
.hvac-welcome-close {
position: absolute;
top: 15px;
right: 20px;
background: transparent;
border: none;
font-size: 28px;
line-height: 1;
color: #666;
cursor: pointer;
z-index: 10;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
transition: all 0.2s ease;
}
.hvac-welcome-close:hover {
background: #f0f0f0;
color: #333;
transform: scale(1.1);
}
/* Content wrapper */
.hvac-welcome-content {
padding: 40px;
position: relative;
}
/* Carousel container */
.hvac-welcome-carousel {
position: relative;
min-height: 460px;
overflow: visible;
margin-bottom: 30px;
}
/* Cards */
.hvac-welcome-card {
position: absolute;
top: 0;
left: 0;
width: 100%;
opacity: 0;
transform: translateX(30px);
transition: all 0.4s ease;
text-align: center;
}
.hvac-welcome-card.active {
opacity: 1;
transform: translateX(0);
}
/* Card icon */
.hvac-welcome-icon {
margin-bottom: 20px;
}
.hvac-welcome-icon .dashicons {
font-size: 60px;
width: 60px;
height: 60px;
color: var(--ast-global-color-0, #0073aa);
}
/* Card typography */
.hvac-welcome-card h2 {
font-size: 32px;
font-weight: 600;
color: var(--ast-global-color-2, #333333);
margin: 0 0 15px;
line-height: 1.2;
}
.hvac-welcome-subtitle {
font-size: 18px;
color: #666;
margin: 0 0 25px;
line-height: 1.4;
font-weight: 400;
}
.hvac-welcome-description {
text-align: left;
max-width: 600px;
margin: 0 auto;
}
.hvac-welcome-description p {
font-size: 16px;
line-height: 1.6;
color: #333;
margin: 0 0 15px;
}
.hvac-welcome-description ul {
margin: 15px 0;
padding-left: 0;
list-style: none;
}
.hvac-welcome-description li {
position: relative;
padding: 8px 0 8px 30px;
font-size: 15px;
line-height: 1.5;
color: #444;
}
.hvac-welcome-description li:before {
content: "✓";
position: absolute;
left: 0;
top: 8px;
color: var(--ast-global-color-0, #0073aa);
font-weight: bold;
font-size: 16px;
}
.hvac-welcome-description strong {
color: var(--ast-global-color-2, #333333);
font-weight: 600;
}
/* Navigation */
.hvac-welcome-navigation {
display: flex;
align-items: center;
justify-content: center;
gap: 20px;
margin: 20px 0 50px;
position: relative;
z-index: 1;
clear: both;
}
.hvac-welcome-nav {
background: #f8f9fa;
border: 2px solid #e9ecef;
border-radius: 50%;
width: 50px;
height: 50px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.2s ease;
color: #666;
}
.hvac-welcome-nav:hover:not(.disabled) {
background: var(--ast-global-color-0, #0073aa);
border-color: var(--ast-global-color-0, #0073aa);
color: white;
transform: scale(1.05);
}
.hvac-welcome-nav.disabled {
opacity: 0.4;
cursor: not-allowed;
}
.hvac-welcome-nav .dashicons {
font-size: 20px;
width: 20px;
height: 20px;
}
/* Dots navigation */
.hvac-welcome-dots {
display: flex;
gap: 12px;
}
.hvac-welcome-dot {
width: 12px;
height: 12px;
border-radius: 50%;
border: none;
background: #ddd;
cursor: pointer;
transition: all 0.2s ease;
}
.hvac-welcome-dot.active {
background: var(--ast-global-color-0, #0073aa);
transform: scale(1.2);
}
.hvac-welcome-dot:hover {
background: var(--ast-global-color-1, #005a87);
transform: scale(1.1);
}
/* Footer */
.hvac-welcome-footer {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 10px;
padding-top: 20px;
border-top: 1px solid #eee;
position: relative;
z-index: 10;
background: white;
clear: both;
}
.hvac-welcome-checkbox {
display: flex;
align-items: center;
gap: 8px;
font-size: 14px;
color: #666;
cursor: pointer;
user-select: none;
position: relative;
z-index: 11;
}
.hvac-welcome-checkbox input[type="checkbox"] {
margin: 0;
}
.hvac-welcome-dismiss {
background: var(--ast-global-color-0, #0073aa) !important;
border-color: var(--ast-global-color-0, #0073aa) !important;
color: white !important;
font-weight: 600;
padding: 12px 24px !important;
font-size: 16px !important;
border-radius: 6px !important;
transition: all 0.2s ease !important;
cursor: pointer;
position: relative;
z-index: 11;
}
.hvac-welcome-dismiss:hover {
background: var(--ast-global-color-1, #005a87) !important;
border-color: var(--ast-global-color-1, #005a87) !important;
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}
/* Animations */
@keyframes hvacWelcomeSlideIn {
from {
opacity: 0;
transform: translateY(-50px) scale(0.95);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
/* Responsive design */
@media (max-width: 768px) {
.hvac-welcome-modal {
width: 95%;
margin: 2.5vh auto;
max-height: 95vh;
}
.hvac-welcome-content {
padding: 30px 20px;
}
.hvac-welcome-card h2 {
font-size: 26px;
}
.hvac-welcome-subtitle {
font-size: 16px;
}
.hvac-welcome-carousel {
min-height: 380px;
margin-bottom: 20px;
}
.hvac-welcome-navigation {
margin: 15px 0 35px;
gap: 15px;
}
.hvac-welcome-footer {
flex-direction: column;
gap: 15px;
text-align: center;
margin-top: 10px;
}
.hvac-welcome-nav {
width: 45px;
height: 45px;
}
}
@media (max-width: 480px) {
.hvac-welcome-content {
padding: 25px 15px;
}
.hvac-welcome-card h2 {
font-size: 22px;
}
.hvac-welcome-subtitle {
font-size: 15px;
}
.hvac-welcome-description p,
.hvac-welcome-description li {
font-size: 14px;
}
.hvac-welcome-carousel {
min-height: 350px;
margin-bottom: 15px;
}
.hvac-welcome-navigation {
margin: 10px 0 30px;
}
.hvac-welcome-icon .dashicons {
font-size: 50px;
width: 50px;
height: 50px;
}
}
/* High contrast mode support */
@media (prefers-contrast: high) {
.hvac-welcome-modal {
border: 2px solid #000;
}
.hvac-welcome-card h2 {
color: #000;
}
.hvac-welcome-nav,
.hvac-welcome-dot {
border: 1px solid #000;
}
}
/* WordPress and Astra theme integration */
.hvac-welcome-popup {
font-family: var(--ast-global-font-family-base, inherit);
}
.hvac-welcome-modal {
color: var(--ast-global-color-3, #333);
}
/* WordPress button compatibility */
.hvac-welcome-dismiss.wp-element-button {
box-sizing: border-box;
display: inline-block;
text-decoration: none;
cursor: pointer;
}
.hvac-welcome-dismiss.wp-element-button:focus {
outline: 2px solid var(--ast-global-color-0, #0073aa);
outline-offset: 2px;
}
/* Accessibility improvements */
.hvac-welcome-nav:focus,
.hvac-welcome-dot:focus,
.hvac-welcome-close:focus {
outline: 2px solid var(--ast-global-color-0, #0073aa);
outline-offset: 2px;
}
.hvac-welcome-checkbox input:focus {
outline: 2px solid var(--ast-global-color-0, #0073aa);
outline-offset: 2px;
}
/* Ensure minimum touch target size (44px) for mobile */
@media (max-width: 768px) {
.hvac-welcome-nav {
min-width: 44px;
min-height: 44px;
}
.hvac-welcome-dot {
min-width: 24px;
min-height: 24px;
border-radius: 50%;
}
}
/* Ensure proper scrolling on mobile */
@media (max-height: 600px) {
.hvac-welcome-modal {
max-height: 95vh;
margin: 2.5vh auto;
}
.hvac-welcome-carousel {
min-height: 300px;
}
}
/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
.hvac-welcome-modal {
animation: none;
}
.hvac-welcome-card,
.hvac-welcome-nav,
.hvac-welcome-dot,
.hvac-welcome-dismiss,
.hvac-welcome-close {
transition: none;
}
}