- Institution Browser: multi-select for types and countries - URL query param sync for shareable filter URLs - New utility: countryNames.ts with flag emoji support - New utility: imageProxy.ts for image URL handling - New component: SearchableMultiSelect dropdown - Career timeline CSS and component updates - Media gallery improvements - Lazy load error boundary component - Version check utility
608 lines
11 KiB
CSS
608 lines
11 KiB
CSS
/**
|
|
* CareerTimeline.css
|
|
*
|
|
* Styles for the career timeline visualization component.
|
|
* Adapted from CustodianTimeline.css patterns.
|
|
*/
|
|
|
|
/* Container */
|
|
.career-timeline {
|
|
margin: 8px 0;
|
|
padding: 10px;
|
|
background: #f8f9fa;
|
|
border-radius: 8px;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.career-timeline--empty {
|
|
padding: 8px 12px;
|
|
background: #f0f0f0;
|
|
}
|
|
|
|
.career-timeline__empty-message {
|
|
color: #888;
|
|
font-style: italic;
|
|
text-align: center;
|
|
font-size: 11px;
|
|
}
|
|
|
|
/* Header */
|
|
.career-timeline__header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.career-timeline__title {
|
|
font-weight: 600;
|
|
color: #333;
|
|
font-size: 11px;
|
|
}
|
|
|
|
/* Mode Selector */
|
|
.career-timeline__mode-selector {
|
|
display: flex;
|
|
gap: 2px;
|
|
background: #e9ecef;
|
|
border-radius: 4px;
|
|
padding: 2px;
|
|
}
|
|
|
|
.career-timeline__mode-btn {
|
|
width: 20px;
|
|
height: 20px;
|
|
border: none;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
border-radius: 3px;
|
|
font-size: 10px;
|
|
color: #666;
|
|
transition: all 0.15s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.career-timeline__mode-btn:hover {
|
|
background: #dee2e6;
|
|
color: #333;
|
|
}
|
|
|
|
.career-timeline__mode-btn--active {
|
|
background: #fff;
|
|
color: #007bff;
|
|
box-shadow: 0 1px 2px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.career-timeline__mode-btn--disabled {
|
|
opacity: 0.4;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.career-timeline__mode-btn--disabled:hover {
|
|
background: transparent;
|
|
color: #666;
|
|
}
|
|
|
|
.career-timeline__mode-separator {
|
|
color: #ccc;
|
|
font-size: 10px;
|
|
padding: 0 2px;
|
|
user-select: none;
|
|
}
|
|
|
|
/* Summary */
|
|
.career-timeline__summary {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 8px;
|
|
padding-bottom: 6px;
|
|
border-bottom: 1px solid #e0e0e0;
|
|
}
|
|
|
|
.career-timeline__stats {
|
|
font-weight: 500;
|
|
color: #333;
|
|
}
|
|
|
|
.career-timeline__range {
|
|
color: #666;
|
|
font-size: 10px;
|
|
}
|
|
|
|
/* ============================================
|
|
SEQUENTIAL VIEW
|
|
============================================ */
|
|
.career-timeline__sequential-view {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
padding: 8px 0;
|
|
}
|
|
|
|
.career-timeline__sequential-item {
|
|
display: flex;
|
|
gap: 12px;
|
|
padding: 8px 0;
|
|
transition: background-color 0.15s ease;
|
|
}
|
|
|
|
.career-timeline__sequential-item:hover {
|
|
background-color: rgba(0, 123, 255, 0.05);
|
|
border-radius: 6px;
|
|
margin: 0 -6px;
|
|
padding-left: 6px;
|
|
padding-right: 6px;
|
|
}
|
|
|
|
.career-timeline__sequential-item--current {
|
|
background-color: rgba(40, 167, 69, 0.08);
|
|
border-radius: 6px;
|
|
margin: 0 -6px;
|
|
padding-left: 6px;
|
|
padding-right: 6px;
|
|
}
|
|
|
|
.career-timeline__sequential-marker {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
flex-shrink: 0;
|
|
width: 16px;
|
|
}
|
|
|
|
.career-timeline__sequential-dot {
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
border: 2px solid #fff;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.2);
|
|
}
|
|
|
|
.career-timeline__sequential-line {
|
|
width: 2px;
|
|
flex-grow: 1;
|
|
min-height: 24px;
|
|
background: linear-gradient(180deg, #ccc 0%, #e0e0e0 100%);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.career-timeline__sequential-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.career-timeline__sequential-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.career-timeline__sequential-role {
|
|
font-weight: 600;
|
|
color: #333;
|
|
font-size: 11px;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.career-timeline__sequential-badge {
|
|
font-size: 9px;
|
|
font-weight: 500;
|
|
color: #28a745;
|
|
background: rgba(40, 167, 69, 0.15);
|
|
padding: 1px 6px;
|
|
border-radius: 10px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.career-timeline__sequential-company {
|
|
font-size: 10px;
|
|
color: #555;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.career-timeline__sequential-dates {
|
|
font-size: 9px;
|
|
color: #888;
|
|
}
|
|
|
|
.career-timeline__sequential-location {
|
|
font-size: 9px;
|
|
color: #999;
|
|
}
|
|
|
|
/* ============================================
|
|
BAR VIEW
|
|
============================================ */
|
|
.career-timeline__bar-view {
|
|
position: relative;
|
|
padding-top: 16px;
|
|
padding-bottom: 8px;
|
|
}
|
|
|
|
.career-timeline__axis {
|
|
position: relative;
|
|
height: 16px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.career-timeline__axis-line {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 0;
|
|
right: 0;
|
|
height: 1px;
|
|
background: #ccc;
|
|
}
|
|
|
|
.career-timeline__tick {
|
|
position: absolute;
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
.career-timeline__tick-mark {
|
|
width: 1px;
|
|
height: 5px;
|
|
background: #999;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.career-timeline__tick-label {
|
|
display: block;
|
|
font-size: 8px;
|
|
color: #888;
|
|
margin-top: 2px;
|
|
text-align: center;
|
|
}
|
|
|
|
.career-timeline__bars-container {
|
|
position: relative;
|
|
min-height: 120px;
|
|
}
|
|
|
|
.career-timeline__bar {
|
|
position: absolute;
|
|
height: 22px;
|
|
border-radius: 3px;
|
|
min-width: 4px;
|
|
display: flex;
|
|
align-items: center;
|
|
overflow: hidden;
|
|
transition: all 0.2s ease;
|
|
cursor: pointer;
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.career-timeline__bar:hover {
|
|
opacity: 1;
|
|
transform: scaleY(1.1);
|
|
z-index: 10;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.2);
|
|
}
|
|
|
|
.career-timeline__bar--current {
|
|
opacity: 1;
|
|
box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.3);
|
|
}
|
|
|
|
.career-timeline__bar-label {
|
|
color: #fff;
|
|
font-size: 9px;
|
|
font-weight: 500;
|
|
padding: 0 6px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
text-shadow: 0 1px 1px rgba(0,0,0,0.3);
|
|
flex: 1;
|
|
}
|
|
|
|
.career-timeline__current-badge {
|
|
color: #28a745;
|
|
font-size: 8px;
|
|
margin-right: 4px;
|
|
text-shadow: 0 0 4px rgba(40,167,69,0.5);
|
|
}
|
|
|
|
/* ============================================
|
|
MILESTONES VIEW
|
|
============================================ */
|
|
.career-timeline__milestones-view {
|
|
position: relative;
|
|
min-height: 100px;
|
|
padding: 24px 0;
|
|
}
|
|
|
|
.career-timeline__milestones-line {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 5%;
|
|
right: 5%;
|
|
height: 2px;
|
|
background: linear-gradient(90deg, #ddd 0%, #aaa 50%, #ddd 100%);
|
|
border-radius: 1px;
|
|
}
|
|
|
|
.career-timeline__milestones-events {
|
|
position: relative;
|
|
height: 100%;
|
|
}
|
|
|
|
.career-timeline__milestone {
|
|
position: absolute;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
.career-timeline__milestone--top {
|
|
top: 0;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.career-timeline__milestone--bottom {
|
|
bottom: 0;
|
|
flex-direction: column-reverse;
|
|
}
|
|
|
|
.career-timeline__milestone-connector {
|
|
width: 1px;
|
|
height: 12px;
|
|
background: #999;
|
|
}
|
|
|
|
.career-timeline__milestone-dot {
|
|
width: 20px;
|
|
height: 20px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 10px;
|
|
color: #fff;
|
|
border: 2px solid #fff;
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.15);
|
|
cursor: pointer;
|
|
transition: transform 0.15s ease;
|
|
}
|
|
|
|
.career-timeline__milestone-dot:hover {
|
|
transform: scale(1.2);
|
|
}
|
|
|
|
.career-timeline__milestone-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
margin-top: 4px;
|
|
max-width: 70px;
|
|
}
|
|
|
|
.career-timeline__milestone--bottom .career-timeline__milestone-content {
|
|
margin-top: 0;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.career-timeline__milestone-year {
|
|
font-weight: 600;
|
|
font-size: 10px;
|
|
color: #333;
|
|
}
|
|
|
|
.career-timeline__milestone-company {
|
|
font-size: 8px;
|
|
color: #333;
|
|
text-align: center;
|
|
line-height: 1.1;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.career-timeline__milestone-role {
|
|
font-size: 7px;
|
|
color: #666;
|
|
text-align: center;
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.career-timeline__milestones-axis {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 5%;
|
|
right: 5%;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 9px;
|
|
color: #999;
|
|
}
|
|
|
|
/* ============================================
|
|
BEESWARM VIEW
|
|
============================================ */
|
|
.career-timeline__beeswarm-view {
|
|
position: relative;
|
|
padding: 20px 0 16px;
|
|
}
|
|
|
|
.career-timeline__beeswarm-axis {
|
|
position: relative;
|
|
height: 1px;
|
|
margin: 0 10px;
|
|
}
|
|
|
|
.career-timeline__beeswarm-axis .career-timeline__axis-line {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 1px;
|
|
background: #999;
|
|
}
|
|
|
|
.career-timeline__beeswarm-dots {
|
|
position: relative;
|
|
height: 50px;
|
|
margin: 0 10px;
|
|
}
|
|
|
|
.career-timeline__beeswarm-dot {
|
|
position: absolute;
|
|
top: 25px;
|
|
width: 18px;
|
|
height: 18px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 9px;
|
|
color: #fff;
|
|
border: 2px solid #fff;
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.2);
|
|
cursor: pointer;
|
|
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
|
}
|
|
|
|
.career-timeline__beeswarm-dot:hover {
|
|
transform: translateX(-50%) scale(1.25);
|
|
box-shadow: 0 3px 8px rgba(0,0,0,0.3);
|
|
z-index: 10;
|
|
}
|
|
|
|
.career-timeline__beeswarm-dot--current {
|
|
box-shadow: 0 0 0 3px rgba(40,167,69,0.3), 0 2px 4px rgba(0,0,0,0.2);
|
|
}
|
|
|
|
.career-timeline__beeswarm-labels {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin: 8px 10px 0;
|
|
font-size: 8px;
|
|
color: #888;
|
|
}
|
|
|
|
/* ============================================
|
|
LEGEND
|
|
============================================ */
|
|
.career-timeline__legend {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
margin-top: 8px;
|
|
padding-top: 6px;
|
|
border-top: 1px solid #e0e0e0;
|
|
}
|
|
|
|
.career-timeline__legend-item {
|
|
font-size: 9px;
|
|
color: #666;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.career-timeline__legend-item--current {
|
|
color: #28a745;
|
|
}
|
|
|
|
/* ============================================
|
|
RESPONSIVE
|
|
============================================ */
|
|
@media (max-width: 400px) {
|
|
.career-timeline {
|
|
padding: 8px;
|
|
}
|
|
|
|
.career-timeline__milestone-content {
|
|
max-width: 50px;
|
|
}
|
|
|
|
.career-timeline__bar-label {
|
|
font-size: 8px;
|
|
}
|
|
}
|
|
|
|
/* Dark mode support */
|
|
@media (prefers-color-scheme: dark) {
|
|
.career-timeline {
|
|
background: #2d2d2d;
|
|
}
|
|
|
|
.career-timeline__title {
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.career-timeline__mode-selector {
|
|
background: #3d3d3d;
|
|
}
|
|
|
|
.career-timeline__mode-btn {
|
|
color: #aaa;
|
|
}
|
|
|
|
.career-timeline__mode-btn:hover {
|
|
background: #4d4d4d;
|
|
color: #fff;
|
|
}
|
|
|
|
.career-timeline__mode-btn--active {
|
|
background: #555;
|
|
color: #4dabf7;
|
|
}
|
|
|
|
.career-timeline__stats {
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.career-timeline__axis-line {
|
|
background: #555;
|
|
}
|
|
|
|
.career-timeline__tick-label,
|
|
.career-timeline__range {
|
|
color: #aaa;
|
|
}
|
|
|
|
.career-timeline__milestone-year,
|
|
.career-timeline__milestone-company {
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.career-timeline__milestone-role {
|
|
color: #aaa;
|
|
}
|
|
|
|
/* Sequential view dark mode */
|
|
.career-timeline__sequential-item:hover {
|
|
background-color: rgba(77, 171, 247, 0.1);
|
|
}
|
|
|
|
.career-timeline__sequential-item--current {
|
|
background-color: rgba(40, 167, 69, 0.15);
|
|
}
|
|
|
|
.career-timeline__sequential-role {
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.career-timeline__sequential-company {
|
|
color: #bbb;
|
|
}
|
|
|
|
.career-timeline__sequential-dates {
|
|
color: #999;
|
|
}
|
|
|
|
.career-timeline__sequential-location {
|
|
color: #888;
|
|
}
|
|
|
|
.career-timeline__sequential-line {
|
|
background: linear-gradient(180deg, #555 0%, #444 100%);
|
|
}
|
|
}
|