0956c78d00
Following LogRocket CSS best practices: - Added fallback values to 150+ CSS variable usages across 22 files - Fallbacks use light theme defaults for consistent behavior - Improves compatibility with older browsers - Example: var(--text-primary) → var(--text-primary, #1a1a1a) Variables with fallbacks: - Colors: text-primary, text-secondary, text-muted, accent-blue, etc. - Backgrounds: page-bg, paper-bg, action-bar-bg, sidebar-bg - Shadows: shadow-sm, shadow-md, shadow-lg - Borders: border-color, border-light, icon-border CSS Variables Best Practices compliance: 6/7 recommendations now followed
116 lines
2.5 KiB
CSS
116 lines
2.5 KiB
CSS
/* Courses */
|
|
.course-item {
|
|
display: flex;
|
|
gap: 1.2rem;
|
|
align-items: flex-start;
|
|
margin-bottom: 2.5rem;
|
|
padding-bottom: 2rem;
|
|
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
/* Keep border on all course items including last one */
|
|
|
|
.course-icon {
|
|
flex-shrink: 0;
|
|
width: 80px;
|
|
height: 80px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.course-icon img {
|
|
width: 80px;
|
|
height: 80px;
|
|
object-fit: contain;
|
|
border-radius: 4px;
|
|
border: 1px solid var(--icon-border, #ddd);
|
|
background: transparent;
|
|
padding: 4px;
|
|
}
|
|
|
|
.default-course-icon {
|
|
width: 80px;
|
|
height: 80px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 4px;
|
|
border: 1px solid var(--icon-border, #ddd);
|
|
background: transparent;
|
|
color: var(--text-light, #999999);
|
|
padding: 10px;
|
|
}
|
|
|
|
.course-content {
|
|
flex: 1;
|
|
}
|
|
|
|
.course-header {
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.course-title {
|
|
font-size: 1em;
|
|
font-weight: 600;
|
|
margin: 0 0 0.3rem 0;
|
|
line-height: 1.4;
|
|
color: var(--text-dark, #1a1a1a);
|
|
}
|
|
|
|
.course-title-text {
|
|
display: inline;
|
|
}
|
|
|
|
.course-institution {
|
|
display: inline;
|
|
margin-left: 0.5em;
|
|
font-weight: normal;
|
|
}
|
|
|
|
.course-period,
|
|
.course-separator,
|
|
.course-location,
|
|
.course-duration {
|
|
color: var(--text-muted, #666666);
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.course-separator {
|
|
color: var(--text-light, #999999);
|
|
}
|
|
|
|
.course-desc {
|
|
font-size: 0.85em;
|
|
color: var(--text-gray, #333333);
|
|
margin-top: 0.4rem;
|
|
line-height: 1.4;
|
|
text-align: justify;
|
|
}
|
|
|
|
/* Course list icons in responsibilities - match project structure (60px with inline colors) */
|
|
.course-item .responsibilities li iconify-icon.default-company-icon {
|
|
width: 60px !important; /* Match projects structure */
|
|
height: 60px !important;
|
|
color: unset !important; /* Reset color to allow inline styles */
|
|
display: flex !important;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 4px;
|
|
border: 1px solid var(--icon-border, #ddd);
|
|
background: transparent !important;
|
|
padding: 8px;
|
|
}
|
|
|
|
/* Inline icons within course descriptions */
|
|
.course-desc iconify-icon {
|
|
width: 1.2em !important; /* Override inline width attributes */
|
|
height: 1.2em !important; /* Override inline height attributes */
|
|
font-size: 1em;
|
|
vertical-align: middle;
|
|
margin: 0 0.15em;
|
|
color: inherit !important; /* Preserve icon colors */
|
|
display: inline-block;
|
|
}
|
|
|