f7cda5dba3
CSS Restructuring: - Reorganize monolithic main.css into modular architecture - Create foundation/ (reset, variables, typography, themes) - Create layout/ (container, page, grid, paper) - Create components/ (8 component files) - Create interactive/ (toggles, remaining for future split) - Create effects/ (skeleton loading) - Create contexts/ (print styles) Theme Support Fixes: - Replace all hardcoded text colors with CSS variables - Fix .section-title: rgb(51,51,51) → var(--text-primary) - Fix .cv-name, .intro-text: hardcoded → theme-aware - Fix .experience-period, .duration-text: #555/#aaa → variables - Fix course/project/experience text colors - Support proper light/dark theme text contrast Icon & Layout Fixes: - Standardize all icon sizes to 80×80px - Change all icon backgrounds to transparent - Fix award section layout (missing flexbox) - Update HTML templates (experience.html, awards.html) to width='80' - Fix default icon sizing conflicts View Switcher Fix: - Fix toggleTheme() to target .cv-container instead of body - Ensures clean/default theme toggle works correctly Files: 40+ CSS files modularized, 3 templates updated, 7 tests added
59 lines
1.5 KiB
CSS
59 lines
1.5 KiB
CSS
/* ============================================================================
|
|
CV CONTAINER & ZOOM WRAPPER
|
|
============================================================================ */
|
|
|
|
/* Zoom Wrapper - wraps cv-container for zoom functionality */
|
|
.zoom-wrapper {
|
|
/* CSS zoom property changes actual layout space (not just visual) */
|
|
/* This allows footer to naturally position right after zoomed content */
|
|
}
|
|
|
|
/* Main CV Container */
|
|
.cv-container {
|
|
width: 100%;
|
|
max-width: 100%; /* Full width to accommodate pages */
|
|
margin: 0 auto;
|
|
padding: 20px 0 0 0; /* Top padding to prevent sticky action bar overlap */
|
|
display: block;
|
|
|
|
/* Clean theme - no sidebars, centered content */
|
|
&.theme-clean {
|
|
padding: 20px 0 0 0;
|
|
transition: all 0.3s ease-in-out;
|
|
|
|
.cv-page {
|
|
box-shadow: var(--shadow-lg);
|
|
border: 1px solid var(--border-color);
|
|
margin: 0 auto;
|
|
max-width: 900px;
|
|
transition: all 0.3s ease-in-out;
|
|
}
|
|
|
|
.cv-sidebar,
|
|
.cv-title-badges-header,
|
|
.cv-footer {
|
|
display: none !important;
|
|
animation: fadeOutShrink 0.3s ease-in-out;
|
|
}
|
|
|
|
.page-content {
|
|
grid-template-columns: 1fr !important;
|
|
transition: grid-template-columns 0.3s ease-in-out;
|
|
}
|
|
|
|
.cv-main {
|
|
grid-column: 1 !important;
|
|
padding: 2rem 3rem!important;
|
|
transition: all 0.3s ease-in-out;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* Animate sidebar, header, footer when hiding/showing */
|
|
.cv-sidebar,
|
|
.cv-title-badges-header,
|
|
.cv-footer {
|
|
overflow: hidden;
|
|
transition: all 0.3s ease-in-out;
|
|
}
|