upskill-event-manager/assets/css/hvac-bulk-operations.css
ben 3be155c507 feat: Complete Phase 2A Event Templates & Bulk Operations System
🚀 PHASE 2A COMPLETE: Event Templates & Bulk Operations Infrastructure

📋 CORE IMPLEMENTATIONS:
• HVAC_Event_Template_Manager - Complete CRUD operations with caching
• HVAC_Event_Form_Builder - Extended form builder with template integration
• HVAC_Bulk_Event_Manager - Bulk operations with background processing
• Client-side template management with progress tracking
• Comprehensive UI components with responsive design

🏗️ ARCHITECTURE HIGHLIGHTS:
• Modern PHP 8+ patterns with strict typing
• WordPress transient caching (15-minute TTL)
• Security-first design with nonce validation
• Performance optimization with lazy loading
• Background job processing for bulk operations

📊 IMPLEMENTATION METRICS:
• 4 new PHP classes (30K+ lines total)
• 2 JavaScript modules (50K+ characters)
• 2 CSS modules with responsive design
• Comprehensive E2E test suite
• Automated validation scripts

🔧 INTEGRATION POINTS:
• Database table creation in activator
• Plugin initialization integration
• Asset loading with conditional enqueuing
• AJAX endpoints with security validation
• WordPress cron job scheduling

🧪 TESTING & VALIDATION:
• Phase 2A comprehensive test suite (E2E)
• Validation script with multiple checks
• Documentation with implementation notes
• Performance and security validation

This completes Phase 2A deliverables with full template and bulk operations functionality.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-24 19:44:46 -03:00

767 lines
No EOL
13 KiB
CSS

/**
* HVAC Bulk Operations CSS
*
* Styles for bulk event operations interface including progress tracking,
* event selection, and batch processing UI components.
*
* @package HVAC_Community_Events
* @since 3.1.0 (Phase 2A)
*/
/* Bulk Operations Buttons */
.hvac-bulk-operations-section {
background: #f9f9f9;
border: 1px solid #ddd;
border-radius: 6px;
padding: 20px;
margin-bottom: 20px;
}
.hvac-bulk-operations-section h3 {
margin-top: 0;
margin-bottom: 15px;
color: #333;
border-bottom: 1px solid #ddd;
padding-bottom: 10px;
}
.hvac-bulk-actions {
display: flex;
gap: 10px;
flex-wrap: wrap;
align-items: center;
}
.hvac-bulk-create-btn,
.hvac-apply-template-bulk-btn,
.hvac-bulk-action-btn {
background: #0085ba;
border-color: #0085ba;
color: white;
padding: 8px 16px;
border-radius: 4px;
font-weight: 500;
transition: background-color 0.3s ease;
}
.hvac-bulk-create-btn:hover,
.hvac-apply-template-bulk-btn:hover,
.hvac-bulk-action-btn:hover {
background: #005a87;
border-color: #005a87;
}
.hvac-bulk-action-btn:disabled {
background: #ccc;
border-color: #ccc;
cursor: not-allowed;
opacity: 0.6;
}
.hvac-bulk-create-btn .dashicons,
.hvac-apply-template-bulk-btn .dashicons {
margin-right: 5px;
vertical-align: middle;
}
/* Event Selection */
.hvac-events-list {
margin-top: 20px;
}
.hvac-events-table {
width: 100%;
border-collapse: collapse;
background: white;
border-radius: 6px;
overflow: hidden;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.hvac-events-table thead {
background: #f1f1f1;
}
.hvac-events-table th,
.hvac-events-table td {
padding: 12px 15px;
text-align: left;
border-bottom: 1px solid #eee;
}
.hvac-events-table th {
font-weight: 600;
color: #333;
border-bottom: 2px solid #ddd;
}
.hvac-events-table tbody tr:hover {
background: #f9f9f9;
}
.hvac-events-table .checkbox-column {
width: 40px;
text-align: center;
}
.hvac-events-table .event-title-column {
font-weight: 500;
}
.hvac-events-table .event-date-column {
color: #666;
font-size: 13px;
}
.hvac-events-table .event-status-column {
text-align: center;
}
.hvac-bulk-select-all {
margin-right: 5px;
}
/* Bulk Variations Modal */
.hvac-bulk-modal-content {
width: 95%;
max-width: 800px;
max-height: 90vh;
overflow-y: auto;
}
.bulk-variations-container {
max-height: 500px;
overflow-y: auto;
border: 1px solid #ddd;
border-radius: 4px;
padding: 15px;
margin-bottom: 20px;
background: white;
}
.variation-row {
border: 1px solid #e0e0e0;
border-radius: 6px;
margin-bottom: 20px;
background: #fafafa;
transition: border-color 0.3s ease;
}
.variation-row:hover {
border-color: #0085ba;
}
.variation-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 15px;
background: #f1f1f1;
border-bottom: 1px solid #e0e0e0;
border-radius: 6px 6px 0 0;
}
.variation-header h4 {
margin: 0;
font-size: 14px;
font-weight: 600;
color: #333;
}
.hvac-remove-variation {
color: #d94f4f;
text-decoration: none;
padding: 5px;
border-radius: 3px;
transition: background-color 0.3s ease;
}
.hvac-remove-variation:hover {
background: rgba(217, 79, 79, 0.1);
color: #d94f4f;
}
.variation-fields {
padding: 15px;
}
.field-row {
margin-bottom: 15px;
}
.field-row-group {
display: flex;
gap: 15px;
margin-bottom: 15px;
}
.field-row-group .field-row {
margin-bottom: 0;
}
.field-row.half-width {
flex: 1;
}
.field-row label {
display: block;
margin-bottom: 5px;
font-weight: 600;
color: #333;
}
.field-row input,
.field-row textarea,
.field-row select {
width: 100%;
padding: 8px 12px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
box-sizing: border-box;
transition: border-color 0.3s ease;
}
.field-row input:focus,
.field-row textarea:focus,
.field-row select:focus {
border-color: #0085ba;
outline: none;
box-shadow: 0 0 0 1px rgba(0, 133, 186, 0.2);
}
.field-row .description {
display: block;
margin-top: 5px;
font-size: 12px;
color: #666;
font-style: italic;
}
.bulk-actions {
text-align: center;
padding: 15px 0;
border-top: 1px solid #eee;
margin-top: 10px;
}
.hvac-add-variation {
background: #46b450;
border-color: #46b450;
color: white;
}
.hvac-add-variation:hover {
background: #369842;
border-color: #369842;
}
.hvac-add-variation .dashicons {
margin-right: 5px;
vertical-align: middle;
}
/* Progress Modal */
.hvac-progress-modal-content {
width: 90%;
max-width: 600px;
min-height: 300px;
}
.progress-header {
margin-bottom: 20px;
padding-bottom: 15px;
border-bottom: 1px solid #eee;
}
.progress-header h3 {
margin: 0 0 10px 0;
color: #333;
}
.progress-info {
font-size: 13px;
color: #666;
}
.progress-operation-id {
font-family: monospace;
background: #f5f5f5;
padding: 2px 6px;
border-radius: 3px;
}
.progress-stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 15px;
margin-bottom: 25px;
padding: 15px;
background: #f9f9f9;
border-radius: 6px;
}
.progress-stat {
text-align: center;
}
.progress-stat label {
display: block;
font-size: 12px;
font-weight: 600;
color: #666;
text-transform: uppercase;
margin-bottom: 5px;
}
.progress-stat span {
font-size: 18px;
font-weight: bold;
color: #333;
}
.progress-failed-items {
color: #d94f4f !important;
}
.progress-percentage {
color: #0085ba !important;
}
.progress-bar-container {
margin-bottom: 25px;
}
.progress-bar {
width: 100%;
height: 20px;
background: #f1f1f1;
border-radius: 10px;
overflow: hidden;
margin-bottom: 10px;
position: relative;
}
.progress-bar-fill {
height: 100%;
background: linear-gradient(90deg, #0085ba, #46b450);
border-radius: 10px;
transition: width 0.5s ease;
position: relative;
}
.progress-bar-fill::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
animation: progress-shine 2s infinite;
}
@keyframes progress-shine {
0% { transform: translateX(-100%); }
100% { transform: translateX(100%); }
}
.progress-status {
text-align: center;
font-weight: 500;
color: #333;
}
/* Progress Results */
.progress-results {
margin-top: 20px;
padding: 15px;
background: #f9f9f9;
border-radius: 6px;
max-height: 300px;
overflow-y: auto;
}
.progress-results h4 {
margin-top: 0;
margin-bottom: 15px;
color: #333;
}
.results-section {
margin-bottom: 20px;
}
.results-section:last-child {
margin-bottom: 0;
}
.results-section h5 {
margin: 0 0 10px 0;
font-size: 14px;
font-weight: 600;
}
.success-results h5 {
color: #46b450;
}
.error-results h5 {
color: #d94f4f;
}
.results-section ul {
margin: 0;
padding-left: 20px;
max-height: 150px;
overflow-y: auto;
}
.results-section li {
margin-bottom: 5px;
font-size: 13px;
line-height: 1.4;
}
.success-results li {
color: #333;
}
.error-results li {
color: #d94f4f;
}
/* Progress Actions */
.progress-actions {
text-align: center;
padding-top: 20px;
border-top: 1px solid #eee;
}
.progress-actions button {
margin: 0 5px;
}
.hvac-cancel-operation-btn {
background: #d94f4f;
border-color: #d94f4f;
color: white;
}
.hvac-cancel-operation-btn:hover {
background: #b33a3a;
border-color: #b33a3a;
}
.hvac-close-progress-modal {
background: #46b450;
border-color: #46b450;
color: white;
}
.hvac-close-progress-modal:hover {
background: #369842;
border-color: #369842;
}
/* Event Status Badges */
.event-status-badge {
display: inline-block;
padding: 3px 8px;
border-radius: 12px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
}
.event-status-badge.status-publish {
background: #e8f5e8;
color: #46b450;
}
.event-status-badge.status-draft {
background: #fff3e0;
color: #ff9800;
}
.event-status-badge.status-private {
background: #f3e5f5;
color: #9c27b0;
}
.event-status-badge.status-pending {
background: #e3f2fd;
color: #2196f3;
}
/* Loading States */
.hvac-bulk-loading {
opacity: 0.6;
pointer-events: none;
position: relative;
}
.hvac-bulk-loading::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 20px;
height: 20px;
margin: -10px 0 0 -10px;
border: 2px solid #ddd;
border-radius: 50%;
border-top-color: #0085ba;
animation: hvac-spin 1s infinite linear;
z-index: 1000;
}
/* Bulk Actions Toolbar */
.hvac-bulk-toolbar {
background: white;
border: 1px solid #ddd;
border-radius: 6px;
padding: 15px;
margin-bottom: 20px;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 10px;
}
.hvac-bulk-selection-info {
color: #666;
font-weight: 500;
}
.hvac-bulk-selection-info .selected-count {
color: #0085ba;
font-weight: bold;
}
.hvac-bulk-toolbar-actions {
display: flex;
gap: 10px;
align-items: center;
}
/* Responsive Design */
@media (max-width: 768px) {
.hvac-bulk-modal-content {
width: 95%;
margin: 10px;
padding: 15px;
}
.field-row-group {
flex-direction: column;
gap: 0;
}
.field-row-group .field-row {
margin-bottom: 15px;
}
.progress-stats {
grid-template-columns: repeat(2, 1fr);
gap: 10px;
}
.hvac-bulk-actions {
flex-direction: column;
align-items: stretch;
}
.hvac-bulk-actions button {
width: 100%;
margin-bottom: 10px;
}
.hvac-bulk-toolbar {
flex-direction: column;
text-align: center;
}
.hvac-bulk-toolbar-actions {
width: 100%;
justify-content: center;
flex-wrap: wrap;
}
.hvac-events-table {
font-size: 14px;
}
.hvac-events-table th,
.hvac-events-table td {
padding: 8px 10px;
}
.hvac-events-table .event-date-column {
display: none; /* Hide date on mobile */
}
}
@media (max-width: 480px) {
.hvac-bulk-modal-content {
width: 100%;
margin: 5px;
padding: 10px;
border-radius: 0;
}
.progress-stats {
grid-template-columns: 1fr;
}
.variation-header {
padding: 8px 10px;
}
.variation-fields {
padding: 10px;
}
.bulk-variations-container {
padding: 10px;
max-height: 400px;
}
.hvac-events-table .event-status-column {
display: none; /* Hide status on small mobile */
}
}
/* Print Styles */
@media print {
.hvac-bulk-operations-section,
.hvac-modal,
.hvac-bulk-toolbar {
display: none;
}
.hvac-events-table {
border: 1px solid #333;
}
.hvac-events-table th,
.hvac-events-table td {
border: 1px solid #333;
}
}
/* Dark Mode Compatibility */
@media (prefers-color-scheme: dark) {
.hvac-bulk-operations-section {
background: #2c2c2c;
border-color: #555;
color: #e0e0e0;
}
.hvac-events-table {
background: #2c2c2c;
color: #e0e0e0;
}
.hvac-events-table thead {
background: #3c3c3c;
}
.hvac-events-table th {
border-bottom-color: #555;
}
.hvac-events-table tbody tr:hover {
background: #3c3c3c;
}
.variation-row {
background: #2c2c2c;
border-color: #555;
}
.variation-header {
background: #3c3c3c;
border-bottom-color: #555;
}
.field-row input,
.field-row textarea,
.field-row select {
background: #2c2c2c;
border-color: #555;
color: #e0e0e0;
}
.progress-stats {
background: #2c2c2c;
}
.progress-results {
background: #2c2c2c;
}
}
/* Accessibility Enhancements */
.hvac-bulk-create-btn:focus,
.hvac-apply-template-bulk-btn:focus,
.hvac-bulk-action-btn:focus {
outline: 2px solid #0085ba;
outline-offset: 2px;
}
.hvac-remove-variation:focus {
outline: 2px solid #d94f4f;
outline-offset: 2px;
}
.hvac-bulk-event-checkbox:focus,
.hvac-bulk-select-all:focus {
outline: 2px solid #0085ba;
outline-offset: 1px;
}
/* Skip to content for screen readers */
.hvac-bulk-skip-link {
position: absolute;
left: -9999px;
width: 1px;
height: 1px;
overflow: hidden;
}
.hvac-bulk-skip-link:focus {
position: static;
width: auto;
height: auto;
padding: 10px;
background: #0085ba;
color: white;
text-decoration: none;
border-radius: 4px;
}
/* High Contrast Mode */
@media (prefers-contrast: high) {
.hvac-bulk-operations-section {
border: 2px solid #000;
}
.hvac-events-table {
border: 2px solid #000;
}
.hvac-events-table th,
.hvac-events-table td {
border: 1px solid #000;
}
.progress-bar {
border: 1px solid #000;
}
.variation-row {
border: 2px solid #000;
}
}