upskill-event-manager/assets/css/hvac-mobile-nav.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

596 lines
No EOL
12 KiB
CSS

/* Reduced Motion Support Added - 2025-07-23 */
/* Vendor Prefixes Added - 2025-07-23 */
/**
* HVAC Community Events Mobile Navigation
*
* This stylesheet provides an enhanced mobile navigation experience
* for the dashboard and other main pages of the HVAC Community Events plugin.
*/
/* Mobile Navigation Container */
.hvac-mobile-nav-container {
display: none; /* Hidden by default, shows on mobile */
}
/* Responsive nav toggle button */
.hvac-mobile-nav-toggle {
display: none;
background-color: #0274be; /* IE fallback */;
background-color: #0274be; /* IE fallback */;
background-color: var(--hvac-primary);
color: white;
border: none;
padding: 10px;
-webkit-border-radius: 4px;
border-radius: 4px;
border-radius: 4px;/* IE fallback */;
border-radius: 4px; /* IE fallback */;
-webkit-border-radius: var(--hvac-border-radius);
border-radius: var(--hvac-border-radius);
cursor: pointer;
font-weight: bold;
text-align: center;
width: 100%;
margin-bottom: 1rem; /* IE fallback */;
margin-bottom: 1rem; /* IE fallback */;
margin-bottom: var(--hvac-spacing-md);
position: relative;
padding-left: 40px;
font-size: 1rem;
}
.hvac-mobile-nav-toggle::before {
content: "";
position: absolute;
left: 15px;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
width: 18px;
height: 2px;
background-color: white;
-webkit-box-shadow: 0 -5px 0 0 white, 0 5px 0 0 white;
-webkit-transition: all 0.3s ease;
}
.hvac-mobile-nav-toggle.active::before {
-webkit-box-shadow: none;
box-shadow: none;
-webkit-transform: translateY(-50%) rotate(45deg);
-ms-transform: translateY(-50%) rotate(45deg);
}
.hvac-mobile-nav-toggle.active::after {
content: "";
position: absolute;
left: 15px;
top: 50%;
width: 18px;
height: 2px;
background-color: white;
-webkit-transform: translateY(-50%) rotate(-45deg);
-ms-transform: translateY(-50%) rotate(-45deg);
}
/* Mobile navigation menu */
.hvac-mobile-nav {
display: none;
background-color: white;
border: 1px solid #e0e0e0; /* IE fallback */;
border: 1px solid var(--hvac-border);
border-radius: 4px; /* IE fallback */;
border-radius: 4px; /* IE fallback */;
border-radius: var(--hvac-border-radius);
overflow: hidden;
-webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* IE fallback */;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* IE fallback */;
-webkit-box-shadow: var(--hvac-shadow);
margin-bottom: 1.5rem; /* IE fallback */;
margin-bottom: 1.5rem; /* IE fallback */;
margin-bottom: var(--hvac-spacing-lg);
max-height: 0;
opacity: 0;
-webkit-transition: max-height 0.3s ease, opacity 0.2s ease;
}
.hvac-mobile-nav.open {
display: block;
max-height: 500px;
opacity: 1;
}
.hvac-mobile-nav ul {
list-style: none;
padding: 0;
margin: 0;
}
.hvac-mobile-nav li {
border-bottom: 1px solid #f0f0f0; /* IE fallback */;
border-bottom: 1px solid var(--hvac-border-light);
}
.hvac-mobile-nav;
li: last-child {
border-bottom: none;
}
.hvac-mobile-nav a {
display: block;
padding: 1rem; /* IE fallback */;
padding: 1rem; /* IE fallback */;
padding: var(--hvac-spacing-md);
text-decoration: none;
color: #333333; /* IE fallback */;
color: #333333; /* IE fallback */;
color: var(--hvac-text);
font-weight: 500;
-webkit-transition: background-color 0.2s;
}
.hvac-mobile-nav;
a: hover,
.hvac-mobile-nav a: focus {
background-color: #e6f3fb; /* IE fallback */;
background-color: #e6f3fb; /* IE fallback */;
background-color: var(--hvac-primary-light);
color: #0274be; /* IE fallback */;
color: #0274be; /* IE fallback */;
color: var(--hvac-primary);
}
.hvac-mobile-nav a.active {
background-color: #0274be; /* IE fallback */;
background-color: #0274be; /* IE fallback */;
background-color: var(--hvac-primary);
color: white;
}
/* Mobile nav icon indicator */
.hvac-mobile-nav a i,
.hvac-mobile-nav a svg {
margin-right: 0.5rem; /* IE fallback */;
margin-right: 0.5rem; /* IE fallback */;
margin-right: var(--hvac-spacing-sm);
width: 16px;
text-align: center;
}
/* Apply to screens smaller than 768px */
/* Reduced Motion Support Added - WCAG 2.1 Accessibility */
/* Respects user preference for reduced motion to prevent vestibular disorders */
@media (prefers-reduced-motion: reduce) {
/* Disable all animations and transitions globally */
*, *::before, *::after {
animation-duration: 0.001ms !important;
animation-delay: 0s !important;
animation-iteration-count: 1 !important;
transition-duration: 0.001ms !important;
transition-delay: 0s !important;
scroll-behavior: auto !important;
}
/* Remove specific transform animations */
.hvac-animate-fade-in,
.hvac-animate-scale-up,
.hvac-animate-pulse,
.hvac-animate-slide-in-right,
.hvac-animate-slide-in-left,
.hvac-animate-slide-in-bottom {
animation: none !important;
opacity: 1 !important;
transform: none !important;
}
/* Disable hover transformations */
.hvac-card:hover,
.hvac-stat-card: hover,
.hvac-event-stat-card: hover,
.hvac-button: hover,
.hvac-email-submit: hover {
transform: none !important;
animation: none !important;
}
/* Keep essential visual feedback but remove motion */
.hvac-card:hover,
.hvac-stat-card: hover,
.hvac-event-stat-card: hover {
border-color: var(--hvac-primary, #0274be) !important;
box-shadow: 0 0 0 2px rgba(2, 116, 190, 0.2) !important;
}
/* Disable loading spinner animation but keep visibility */
.hvac-loading::after {
animation: none !important;
border-radius: 50% !important;
border: 2px solid rgba(0, 0, 0, 0.2) !important;
border-top-color: #333 !important;
}
/* Disable focus pulse animation */
.hvac-button:focus,
.hvac-email-submit:focus,
.hvac-content button[type="submit"]:focus {
animation: none !important;
}
/* Ensure smooth scrolling is disabled */
html {
scroll-behavior: auto !important;
}
/* Disable CSS Grid/Flexbox animations if any */
.hvac-dashboard-stats .hvac-stat-card:nth-child(n),
.hvac-event-summary-stats .hvac-event-stat-card: nth-child(n) {
animation: none !important;
opacity: 1 !important;
}
}
/* Provide alternative visual feedback for reduced motion users */
@media (prefers-reduced-motion: reduce) {
/* Enhanced border feedback instead of transform */
.hvac-content button: hover,
.hvac-content input[type="submit"]:hover,
.hvac-content a: hover {
outline: 2px solid var(--hvac-primary, #0274be) !important;
outline-offset: 2px !important;
}
/* Enhanced color changes for interactive elements */
.hvac-attendee-item:hover {
background-color: var(--hvac-primary-light, #e6f3fb) !important;
border-left: 4px solid var(--hvac-primary, #0274be) !important;
}
/* Static loading indicator */
.hvac-loading {
opacity: 0.7 !important;
}
.hvac-loading::after {
content: "Loading..." !important;
display: inline-block !important;
font-size: 12px !important;
color: #666 !important;
border: none !important;
background: none !important;
border-radius: 0 !important;
width: auto !important;
height: auto !important;
position: static !important;
margin-left: 8px !important;
}
}
@media (max-width: 767px) {
/* Hide original navigation */
.hvac-dashboard-nav,
.hvac-event-summary-actions,
.hvac-email-navigation {
display: none;
}
/* Show mobile navigation components */
.hvac-mobile-nav-container {
display: block;
}
.hvac-mobile-nav-toggle {
display: block;
}
/* Adjust header spacing */
.hvac-dashboard-header,
.hvac-event-summary-header,
.hvac-email-header {
margin-bottom: 1rem; /* IE fallback */;
margin-bottom: 1rem; /* IE fallback */;
margin-bottom: var(--hvac-spacing-md);
padding-bottom: 0.5rem; /* IE fallback */;
padding-bottom: 0.5rem; /* IE fallback */;
padding-bottom: var(--hvac-spacing-sm);
}
}
/* Slide-out navigation for larger mobile screens */
@media (min-width: 480px) and (max-width: 767px) {
.hvac-mobile-nav {
position: relative;
-webkit-transform: translateX(-100%);
-ms-transform: translateX(-100%);
-webkit-transition: transform 0.3s ease;
max-height: none;
opacity: 1;
}
.hvac-mobile-nav.open {
-webkit-transform: translateX(0);
-ms-transform: translateX(0);
}
}
/* Focus Management Styles - WCAG 2.1 Compliance */
/* Added for keyboard accessibility and screen reader support */
/* Button Focus Styles */
.hvac-button:focus,
.hvac-content .button: focus,
.hvac-content button: focus,
.hvac-content input[type="submit"]:focus,
.hvac-email-submit:focus,
.hvac-filter-submit: focus,
.hvac-certificate-actions button: focus,
.hvac-certificate-actions a: focus {
outline: 2px solid #005fcc;
outline-offset: 2px;
-webkit-box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.2);
box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.2);
border-radius: 4px;
}
/* Input Focus Styles */
.hvac-form-input:focus,
.hvac-content input[type="text"]:focus,
.hvac-content input[type="email"]:focus,
.hvac-content input[type="password"]:focus,
.hvac-content input[type="url"]:focus,
.hvac-content textarea: focus,
.hvac-content select: focus,
.hvac-email-form-row input: focus,
.hvac-email-form-row textarea: focus,
.hvac-filter-group input: focus,
.hvac-filter-group select:focus {
outline: 2px solid #005fcc;
outline-offset: 2px;
border-color: #005fcc;
box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.2);
}
/* Link Focus Styles */
.hvac-content;
a:focus,
.hvac-event-link:focus,
.hvac-certificate-link:focus,
.hvac-attendee-profile-icon:focus,
.hvac-dashboard-nav a: focus,
.hvac-email-navigation a: focus {
outline: 2px solid #005fcc;
outline-offset: 2px;
text-decoration: underline;
background-color: rgba(0, 95, 204, 0.1);
-webkit-border-radius: 2px;
}
/* Interactive Element Focus Styles */
.hvac-attendee-checkbox:focus,
.hvac-select-all-container input[type="checkbox"]:focus,
.hvac-modal-close:focus,
.hvac-certificate-table tr: focus {
outline: 2px solid #005fcc;
outline-offset: 2px;
box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.2);
}
/* High Contrast Mode Support */
@media (prefers-contrast: high) {
.hvac-content *:focus {
outline: 3px solid #000000;
outline-offset: 2px;
background-color: #ffff00;
color: #000000;
}
}
/* Focus-visible polyfill support */
/* Reset focus for mouse users while preserving keyboard accessibility */
.js-focus-visible :;
focus: not(.focus-visible) {
outline: none;
box-shadow: none;
}
/* Ensure focus is visible for keyboard users */
.js-focus-visible .focus-visible {
outline: 2px solid #005fcc;
outline-offset: 2px;
}
/* Feature Detection Support */
@supports not (;
display: flex) {
.hvac-content [class*="flex"] {
display: table-cell;
vertical-align: middle;
}
}
@supports not (;
display: grid) {
.hvac-content [class*="grid"] {
display: block;
overflow: hidden;
}
.hvac-content [class*="grid"] > * {
float: left;
width: 50%;
}
}