## Major Enhancements ### 🏗️ Architecture & Infrastructure - Implement comprehensive Docker testing infrastructure with hermetic environment - Add Forgejo Actions CI/CD pipeline for automated deployments - Create Page Object Model (POM) testing architecture reducing test duplication by 90% - Establish security-first development patterns with input validation and output escaping ### 🧪 Testing Framework Modernization - Migrate 146+ tests from 80 duplicate files to centralized architecture - Add comprehensive E2E test suites for all user roles and workflows - Implement WordPress error detection with automatic site health monitoring - Create robust browser lifecycle management with proper cleanup ### 📚 Documentation & Guides - Add comprehensive development best practices guide - Create detailed administrator setup documentation - Establish user guides for trainers and master trainers - Document security incident reports and migration guides ### 🔧 Core Plugin Features - Enhance trainer profile management with certification system - Improve find trainer functionality with advanced filtering - Strengthen master trainer area with content management - Add comprehensive venue and organizer management ### 🛡️ Security & Reliability - Implement security-first patterns throughout codebase - Add comprehensive input validation and output escaping - Create secure credential management system - Establish proper WordPress role-based access control ### 🎯 WordPress Integration - Strengthen singleton pattern implementation across all classes - Enhance template hierarchy with proper WordPress integration - Improve page manager with hierarchical URL structure - Add comprehensive shortcode and menu system ### 🔍 Developer Experience - Add extensive debugging and troubleshooting tools - Create comprehensive test data seeding scripts - Implement proper error handling and logging - Establish consistent code patterns and standards ### 📊 Performance & Optimization - Optimize database queries and caching strategies - Improve asset loading and script management - Enhance template rendering performance - Streamline user experience across all interfaces 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
718 lines
No EOL
13 KiB
CSS
718 lines
No EOL
13 KiB
CSS
/**
|
|
* HVAC Trainer Profile Styles
|
|
*
|
|
* @package HVAC_Community_Events
|
|
* @version 2.0.0
|
|
*/
|
|
|
|
/* Page Layout */
|
|
.hvac-trainer-profile-view,
|
|
.hvac-trainer-profile-edit {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 2rem;
|
|
}
|
|
|
|
/* Page Header */
|
|
.hvac-page-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 2rem;
|
|
padding-bottom: 1rem;
|
|
border-bottom: 2px solid #e0e0e0;
|
|
}
|
|
|
|
.hvac-page-header h1 {
|
|
margin: 0;
|
|
color: #0274be;
|
|
font-size: 2rem;
|
|
}
|
|
|
|
/* Breadcrumb */
|
|
.hvac-breadcrumb {
|
|
margin-bottom: 1.5rem;
|
|
color: #666;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.hvac-breadcrumb a {
|
|
color: #0274be;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.hvac-breadcrumb a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Profile Content Layout */
|
|
.hvac-profile-content {
|
|
display: flex;
|
|
gap: 2rem;
|
|
}
|
|
|
|
/* Profile Sidebar */
|
|
.hvac-profile-sidebar {
|
|
flex: 0 0 300px;
|
|
}
|
|
|
|
/* Profile Photo */
|
|
.hvac-profile-photo {
|
|
margin-bottom: 2rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.hvac-profile-photo img {
|
|
width: 200px;
|
|
height: 200px;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
border: 5px solid #f0f0f0;
|
|
}
|
|
|
|
.hvac-profile-photo-placeholder {
|
|
width: 200px;
|
|
height: 200px;
|
|
border-radius: 50%;
|
|
background-color: #0274be;
|
|
color: white;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 3rem;
|
|
font-weight: 600;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/* Profile Stats */
|
|
.hvac-profile-stats {
|
|
background-color: #f8f9fa;
|
|
padding: 1.5rem;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.hvac-stat-item {
|
|
text-align: center;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.hvac-stat-item:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.hvac-stat-value {
|
|
display: block;
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
color: #0274be;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.hvac-stat-label {
|
|
display: block;
|
|
font-size: 0.875rem;
|
|
color: #666;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
/* Profile Main Content */
|
|
.hvac-profile-main {
|
|
flex: 1;
|
|
}
|
|
|
|
.hvac-profile-section {
|
|
background-color: white;
|
|
padding: 2rem;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.hvac-profile-section h2 {
|
|
margin-top: 0;
|
|
margin-bottom: 1.5rem;
|
|
color: #333;
|
|
font-size: 1.5rem;
|
|
padding-bottom: 0.75rem;
|
|
border-bottom: 2px solid #e0e0e0;
|
|
}
|
|
|
|
/* Profile Details */
|
|
.hvac-profile-details {
|
|
display: grid;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.hvac-detail-row {
|
|
display: grid;
|
|
grid-template-columns: 150px 1fr;
|
|
align-items: center;
|
|
}
|
|
|
|
.hvac-detail-label {
|
|
font-weight: 600;
|
|
color: #666;
|
|
}
|
|
|
|
.hvac-detail-value {
|
|
color: #333;
|
|
}
|
|
|
|
.hvac-detail-value a {
|
|
color: #0274be;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.hvac-detail-value a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Profile Bio */
|
|
.hvac-profile-bio {
|
|
color: #333;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* Certifications List */
|
|
.hvac-certifications-list {
|
|
display: grid;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.hvac-certification-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.75rem;
|
|
background-color: #f8f9fa;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.hvac-certification-item .dashicons {
|
|
color: #0274be;
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
/* Edit Form Styles */
|
|
.hvac-form {
|
|
background-color: white;
|
|
padding: 2rem;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.hvac-form-section {
|
|
margin-bottom: 2rem;
|
|
padding-bottom: 2rem;
|
|
border-bottom: 1px solid #e0e0e0;
|
|
}
|
|
|
|
.hvac-form-section:last-child {
|
|
margin-bottom: 0;
|
|
padding-bottom: 0;
|
|
border-bottom: none;
|
|
}
|
|
|
|
.hvac-form-section h3 {
|
|
margin-bottom: 1.5rem;
|
|
color: #333;
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.hvac-form-row {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.hvac-form-row label {
|
|
display: block;
|
|
margin-bottom: 0.5rem;
|
|
font-weight: 600;
|
|
color: #333;
|
|
}
|
|
|
|
.hvac-form-row input,
|
|
.hvac-form-row select,
|
|
.hvac-form-row textarea {
|
|
width: 100%;
|
|
padding: 0.75rem;
|
|
border: 1px solid #ddd;
|
|
border-radius: 4px;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.hvac-form-row input:focus,
|
|
.hvac-form-row select:focus,
|
|
.hvac-form-row textarea:focus {
|
|
outline: none;
|
|
border-color: #0274be;
|
|
box-shadow: 0 0 0 3px rgba(2, 116, 190, 0.1);
|
|
}
|
|
|
|
.hvac-form-row-half {
|
|
display: flex;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.hvac-form-row-half > div {
|
|
flex: 1;
|
|
}
|
|
|
|
/* Profile Photo Upload */
|
|
.hvac-profile-photo-upload {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2rem;
|
|
}
|
|
|
|
.hvac-current-photo img {
|
|
width: 100px;
|
|
height: 100px;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.hvac-photo-placeholder {
|
|
width: 100px;
|
|
height: 100px;
|
|
border-radius: 50%;
|
|
background-color: #f0f0f0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: #999;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.hvac-photo-actions {
|
|
display: flex;
|
|
gap: 1rem;
|
|
}
|
|
|
|
/* Buttons */
|
|
.hvac-button {
|
|
display: inline-block;
|
|
padding: 0.75rem 1.5rem;
|
|
border: none;
|
|
border-radius: 4px;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.hvac-button-primary {
|
|
background-color: #0274be;
|
|
color: white;
|
|
}
|
|
|
|
.hvac-button-primary:hover {
|
|
background-color: #005fa3;
|
|
}
|
|
|
|
.hvac-button-secondary {
|
|
background-color: #6c757d;
|
|
color: white;
|
|
}
|
|
|
|
.hvac-button-secondary:hover {
|
|
background-color: #5a6268;
|
|
}
|
|
|
|
.hvac-button-danger-outline {
|
|
background-color: transparent;
|
|
color: #dc3545;
|
|
border: 1px solid #dc3545;
|
|
}
|
|
|
|
.hvac-button-danger-outline:hover {
|
|
background-color: #dc3545;
|
|
color: white;
|
|
}
|
|
|
|
/* Form Actions */
|
|
.hvac-form-actions {
|
|
display: flex;
|
|
gap: 1rem;
|
|
margin-top: 2rem;
|
|
padding-top: 2rem;
|
|
border-top: 1px solid #e0e0e0;
|
|
}
|
|
|
|
/* Messages */
|
|
.hvac-message {
|
|
padding: 1rem 1.5rem;
|
|
border-radius: 4px;
|
|
margin-bottom: 1.5rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.hvac-message-success {
|
|
background-color: #d4edda;
|
|
color: #155724;
|
|
border: 1px solid #c3e6cb;
|
|
}
|
|
|
|
.hvac-message-error {
|
|
background-color: #f8d7da;
|
|
color: #721c24;
|
|
border: 1px solid #f5c6cb;
|
|
}
|
|
|
|
/* Form Errors */
|
|
.hvac-form-error {
|
|
border-color: #dc3545 !important;
|
|
}
|
|
|
|
.hvac-error-message {
|
|
display: block;
|
|
color: #dc3545;
|
|
font-size: 0.875rem;
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.hvac-trainer-profile-view,
|
|
.hvac-trainer-profile-edit {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.hvac-page-header {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.hvac-profile-content {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.hvac-profile-sidebar {
|
|
flex: none;
|
|
width: 100%;
|
|
}
|
|
|
|
.hvac-detail-row {
|
|
grid-template-columns: 1fr;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.hvac-detail-label {
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.hvac-form-row-half {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.hvac-profile-photo-upload {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.hvac-photo-actions {
|
|
flex-wrap: wrap;
|
|
}
|
|
}
|
|
|
|
/* Certification section styling */
|
|
.hvac-certification-section {
|
|
border: 2px solid #0073aa;
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
margin-bottom: 30px;
|
|
background: linear-gradient(135deg, #f8fdff 0%, #e6f7ff 100%);
|
|
position: relative;
|
|
}
|
|
|
|
.hvac-certification-section h2,
|
|
.hvac-certification-section h3 {
|
|
color: #0073aa;
|
|
margin-top: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.hvac-certification-section h2::before,
|
|
.hvac-certification-section h3::before {
|
|
content: "🏆";
|
|
font-size: 1.2em;
|
|
}
|
|
|
|
/* Certification status badges */
|
|
.hvac-cert-status {
|
|
padding: 4px 12px;
|
|
border-radius: 20px;
|
|
font-weight: bold;
|
|
font-size: 0.85em;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.hvac-cert-status-active {
|
|
background-color: #d4edda;
|
|
color: #155724;
|
|
border: 1px solid #c3e6cb;
|
|
}
|
|
|
|
.hvac-cert-status-expired {
|
|
background-color: #f8d7da;
|
|
color: #721c24;
|
|
border: 1px solid #f5c6cb;
|
|
}
|
|
|
|
.hvac-cert-status-pending {
|
|
background-color: #fff3cd;
|
|
color: #856404;
|
|
border: 1px solid #ffeaa7;
|
|
}
|
|
|
|
.hvac-cert-status-disabled {
|
|
background-color: #e2e3e5;
|
|
color: #495057;
|
|
border: 1px solid #ced4da;
|
|
}
|
|
|
|
/* Read-only field styling for certification edit */
|
|
.hvac-certification-edit-section .hvac-read-only-field {
|
|
background-color: #f8f9fa;
|
|
border: 1px solid #e9ecef;
|
|
padding: 8px 12px;
|
|
border-radius: 4px;
|
|
color: #6c757d;
|
|
font-style: italic;
|
|
}
|
|
|
|
.hvac-read-only-note {
|
|
font-size: 0.8em;
|
|
color: #6c757d;
|
|
font-weight: normal;
|
|
margin-left: 10px;
|
|
}
|
|
|
|
/* Enhanced form styling for certification fields */
|
|
.hvac-certification-edit-section .hvac-form-row select,
|
|
.hvac-certification-edit-section .hvac-form-row input[type="date"] {
|
|
border: 2px solid #e9ecef;
|
|
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
|
}
|
|
|
|
.hvac-certification-edit-section .hvac-form-row select:focus,
|
|
.hvac-certification-edit-section .hvac-form-row input[type="date"]:focus {
|
|
border-color: #0073aa;
|
|
box-shadow: 0 0 0 0.2rem rgba(0, 115, 170, 0.25);
|
|
outline: none;
|
|
}
|
|
|
|
/* New Certification Cards System */
|
|
.hvac-certifications-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
|
|
gap: 1.5rem;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.hvac-certification-card {
|
|
background: white;
|
|
border: 2px solid #e9ecef;
|
|
border-radius: 12px;
|
|
padding: 1.5rem;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
transition: all 0.3s ease;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.hvac-certification-card:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.hvac-certification-card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.hvac-certification-title {
|
|
font-size: 1.1rem;
|
|
font-weight: 700;
|
|
color: #333;
|
|
margin: 0;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.hvac-certification-status-badge {
|
|
padding: 0.25rem 0.75rem;
|
|
border-radius: 20px;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.hvac-certification-details {
|
|
display: grid;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.hvac-certification-detail {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.hvac-certification-detail-label {
|
|
color: #666;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.hvac-certification-detail-value {
|
|
color: #333;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.hvac-certification-expiration {
|
|
margin-top: 1rem;
|
|
padding: 0.75rem;
|
|
border-radius: 8px;
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Certification Color Classes */
|
|
.hvac-cert-trainer {
|
|
border-left: 6px solid #0274be;
|
|
}
|
|
|
|
.hvac-cert-trainer .hvac-certification-title {
|
|
color: #0274be;
|
|
}
|
|
|
|
.hvac-cert-champion {
|
|
border-left: 6px solid #28a745;
|
|
}
|
|
|
|
.hvac-cert-champion .hvac-certification-title {
|
|
color: #28a745;
|
|
}
|
|
|
|
.hvac-cert-default {
|
|
border-left: 6px solid #6c757d;
|
|
}
|
|
|
|
.hvac-cert-default .hvac-certification-title {
|
|
color: #6c757d;
|
|
}
|
|
|
|
/* Status-based styling */
|
|
.hvac-cert-expired {
|
|
border-color: #dc3545;
|
|
background-color: #fff5f5;
|
|
}
|
|
|
|
.hvac-cert-expired .hvac-certification-title {
|
|
color: #dc3545;
|
|
}
|
|
|
|
.hvac-cert-expiring {
|
|
border-color: #ffc107;
|
|
background-color: #fffdf0;
|
|
}
|
|
|
|
.hvac-cert-expiring .hvac-certification-title {
|
|
color: #856404;
|
|
}
|
|
|
|
.hvac-cert-inactive {
|
|
border-color: #6c757d;
|
|
background-color: #f8f9fa;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.hvac-cert-inactive .hvac-certification-title {
|
|
color: #6c757d;
|
|
}
|
|
|
|
/* Status Badge Colors */
|
|
.hvac-certification-status-badge.status-active {
|
|
background-color: #d4edda;
|
|
color: #155724;
|
|
}
|
|
|
|
.hvac-certification-status-badge.status-expired {
|
|
background-color: #f8d7da;
|
|
color: #721c24;
|
|
}
|
|
|
|
.hvac-certification-status-badge.status-suspended {
|
|
background-color: #fff3cd;
|
|
color: #856404;
|
|
}
|
|
|
|
.hvac-certification-status-badge.status-revoked {
|
|
background-color: #f8d7da;
|
|
color: #721c24;
|
|
}
|
|
|
|
/* Expiration Status Colors */
|
|
.hvac-certification-expiration.expiration-valid {
|
|
background-color: #d4edda;
|
|
color: #155724;
|
|
}
|
|
|
|
.hvac-certification-expiration.expiration-expiring {
|
|
background-color: #fff3cd;
|
|
color: #856404;
|
|
}
|
|
|
|
.hvac-certification-expiration.expiration-expired {
|
|
background-color: #f8d7da;
|
|
color: #721c24;
|
|
}
|
|
|
|
/* Legacy fallback message */
|
|
.hvac-certifications-legacy-fallback {
|
|
background-color: #e7f3ff;
|
|
border: 1px solid #bee5eb;
|
|
border-radius: 8px;
|
|
padding: 1rem;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.hvac-certifications-legacy-message {
|
|
color: #0c5460;
|
|
font-size: 0.9rem;
|
|
margin-bottom: 0.5rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Responsive adjustments for certification cards */
|
|
@media (max-width: 768px) {
|
|
.hvac-certifications-grid {
|
|
grid-template-columns: 1fr;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.hvac-certification-card {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.hvac-certification-card-header {
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.hvac-certification-title {
|
|
font-size: 1rem;
|
|
}
|
|
} |