upskill-event-manager/assets/css/hvac-consolidated.css
Ben 27af93a398 fix: Resolve trainer dashboard template and navigation issues
- Remove hardcoded template override in class-hvac-community-events.php forcing old shortcode-based template
- Update dashboard to use refactored page-trainer-dashboard.php template with proper WordPress integration
- Fix navigation menu rendering by removing conflicting HVAC_NAV_RENDERED constant checks
- Add missing hvac-menu-system.css file to resolve navigation styling
- Update deployment script to automatically assign correct page template
- Clean up template files to use consistent navigation rendering approach
- Update documentation with dashboard refactoring details

The dashboard now displays correctly with working navigation across all trainer pages.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-11 16:28:26 -03:00

513 lines
9.1 KiB
CSS

/* HVAC Consolidated CSS - Generated on 2025-08-11 16:12:07 */
/* === hvac-trainer-profile.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;
}