Portfolio-DX/assets/styling/experience.css
2025-07-24 23:25:40 +08:00

90 lines
1.8 KiB
CSS

.experience-card {
background: var(--main);
border: 1px solid var(--border);
border-radius: 15px;
padding: 25px;
margin: 0 0 20px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
display: flex;
flex-direction: column;
}
.experience-card:hover {
border-color: var(--border-hover);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
transform: translateY(-2px);
}
.experience-avatar {
width: 48px;
height: 48px;
background: #64748b;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.experience-avatar-inner {
width: 32px;
height: 32px;
background: rgba(255, 255, 255, 0.3);
border-radius: 8px;
}
.experience-skills {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 20px;
}
.skill-chip {
/* width: 24px; */
padding: 2px;
height: 24px;
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
font-size: 10px;
font-weight: bold;
color: white;
border: 1px solid var(--border);
transition: all 0.2s ease;
cursor: pointer;
}
.skill-chip:hover {
transform: scale(1.1);
border-color: var(--border-hover);
}
@media (min-width: 1024px) {
.experience-item {
padding: 0 60px; /* Add padding to bring cards closer to center */
}
.experience-card-container {
width: calc(
50% - 30px
) !important; /* Reduce width to bring closer to center */
}
.timeline-spacer {
flex: 0 0 20% !important; /* Reduce spacer size from 50% to 20% */
}
.timeline-dot {
left: 50% !important;
transform: translateX(-50%) !important;
}
.timeline-line {
left: 50% !important;
transform: translateX(-50%) !important;
}
}