| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834 |
- .project-timeline-container {
- width: 100%;
- height: 100%;
- display: flex;
- flex-direction: column;
- background: #ffffff;
- border-radius: 8px;
- overflow: hidden;
- }
- // 顶部筛选栏
- .timeline-header {
- padding: 16px;
- background: #f9fafb;
- border-bottom: 1px solid #e5e7eb;
- }
- .filter-section {
- display: flex;
- align-items: center;
- gap: 16px;
- flex-wrap: wrap;
- }
- .filter-group {
- display: flex;
- align-items: center;
- gap: 8px;
- label {
- font-size: 14px;
- font-weight: 500;
- color: #374151;
- white-space: nowrap;
- }
- }
- .filter-select {
- padding: 6px 12px;
- border: 1px solid #d1d5db;
- border-radius: 6px;
- font-size: 14px;
- background: #ffffff;
- cursor: pointer;
- transition: all 0.2s;
- &:hover {
- border-color: #9ca3af;
- }
- &:focus {
- outline: none;
- border-color: #3b82f6;
- box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
- }
- }
- .quick-filters {
- margin-left: auto;
- }
- .filter-btn {
- padding: 6px 12px;
- border: 1px solid #d1d5db;
- border-radius: 6px;
- background: #ffffff;
- font-size: 13px;
- cursor: pointer;
- transition: all 0.2s;
- &:hover {
- background: #f3f4f6;
- }
- &.active {
- background: #3b82f6;
- color: #ffffff;
- border-color: #3b82f6;
- }
- }
- .sort-controls,
- .time-scale-controls {
- border-left: 1px solid #e5e7eb;
- padding-left: 16px;
- }
- .sort-btn,
- .scale-btn,
- .refresh-btn {
- padding: 6px 12px;
- border: 1px solid #d1d5db;
- border-radius: 6px;
- background: #ffffff;
- font-size: 13px;
- cursor: pointer;
- transition: all 0.2s;
- &:hover {
- background: #f3f4f6;
- }
- &.active {
- background: #3b82f6;
- color: #ffffff;
- border-color: #3b82f6;
- }
- }
- // 时间尺度切换按钮特殊样式
- .time-scale-controls {
- .scale-btn.active {
- background: #10b981;
- border-color: #10b981;
- font-weight: 600;
- }
- }
- // 🆕 刷新按钮特殊样式
- .refresh-btn {
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- color: #ffffff;
- border: none;
- font-weight: 600;
-
- &:hover {
- background: linear-gradient(135deg, #5568d3 0%, #63408b 100%);
- transform: scale(1.05);
- }
-
- &:active {
- animation: refresh-spin 0.6s ease-in-out;
- }
- }
- @keyframes refresh-spin {
- from {
- transform: rotate(0deg);
- }
- to {
- transform: rotate(360deg);
- }
- }
- // 设计师统计面板
- .designer-stats-panel {
- margin-top: 12px;
- padding: 12px 16px;
- background: #ffffff;
- border: 1px solid #e5e7eb;
- border-radius: 6px;
- }
- .stats-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: 12px;
- h3 {
- margin: 0;
- font-size: 16px;
- font-weight: 600;
- color: #111827;
- }
- }
- .workload-badge {
- padding: 4px 12px;
- border-radius: 12px;
- font-size: 13px;
- font-weight: 500;
- &.level-low {
- background: #d1fae5;
- color: #065f46;
- }
- &.level-medium {
- background: #fef3c7;
- color: #92400e;
- }
- &.level-high {
- background: #fee2e2;
- color: #991b1b;
- }
- }
- .stats-body {
- display: grid;
- grid-template-columns: repeat(3, 1fr);
- gap: 12px;
- }
- .stat-item {
- display: flex;
- flex-direction: column;
- padding: 8px;
- background: #f9fafb;
- border-radius: 4px;
- }
- .stat-label {
- font-size: 12px;
- color: #6b7280;
- margin-bottom: 4px;
- }
- .stat-value {
- font-size: 18px;
- font-weight: 600;
- color: #111827;
- &.urgent {
- color: #ea580c;
- }
- &.overdue {
- color: #dc2626;
- }
- }
- // 时间轴主体
- .timeline-body {
- flex: 1;
- overflow-y: auto;
- padding: 16px;
- }
- // 空状态
- .empty-state {
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 60px 20px;
- text-align: center;
- p {
- margin: 0;
- font-size: 15px;
- color: #9ca3af;
- }
- }
- // 时间轴视图容器
- .timeline-view-container {
- position: relative;
- width: 100%;
- min-height: 400px;
- }
- // 图例说明 - 简化版
- .timeline-legend {
- display: flex;
- align-items: center;
- padding: 12px 20px;
- background: #ffffff;
- border-bottom: 1px solid #f3f4f6;
- flex-wrap: wrap;
- gap: 24px;
- }
- .legend-group {
- display: flex;
- align-items: center;
- gap: 16px;
- }
- .legend-item {
- display: flex;
- align-items: center;
- gap: 6px;
-
- &.legend-highlight {
- background: #fff7ed;
- padding: 4px 10px;
- border-radius: 4px;
- border: 1px solid #fed7aa;
-
- .legend-label {
- color: #ea580c;
- font-weight: 600;
- }
- }
- }
- .legend-label {
- font-size: 12px;
- color: #4b5563;
- font-weight: 500;
- }
- .legend-separator {
- width: 1px;
- height: 16px;
- background: #e5e7eb;
- }
- .legend-dot {
- width: 10px;
- height: 10px;
- border-radius: 2px; // Slightly rounded square for status
-
- &.status-normal { background: #dcfce7; border: 1px solid #86efac; }
- &.status-warning { background: #fef9c3; border: 1px solid #fde047; }
- &.status-urgent { background: #ffedd5; border: 1px solid #fdba74; }
- &.status-overdue { background: #fee2e2; border: 1px solid #fca5a5; }
- }
- .legend-icon {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 20px;
- height: 20px;
- font-size: 14px;
-
- &.start-icon { color: #10b981; }
- &.delivery-icon { color: #f59e0b; }
-
- &.phase-icon {
- width: 20px;
- height: 20px;
- border-radius: 50%;
- background: #f3f4f6;
- color: #6b7280;
- font-size: 10px;
- font-weight: 600;
- border: 1px solid #e5e7eb;
- }
-
- &.review-icon {
- font-size: 16px;
- }
- }
- // 项目标签区 - 优化
- .project-label {
- width: 200px; // Slightly wider
- min-width: 200px;
- padding: 12px 16px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- gap: 6px;
- border-right: 1px solid #f3f4f6; // Lighter border
- background: #ffffff;
- }
- .project-main-info {
- display: flex;
- align-items: center;
- gap: 6px;
- overflow: hidden;
- }
- .project-name-label {
- font-size: 14px;
- font-weight: 600;
- color: #111827;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .priority-icon {
- font-size: 14px;
- flex-shrink: 0;
- }
- .project-sub-info {
- display: flex;
- align-items: center;
- gap: 10px;
- }
- .designer-label {
- font-size: 12px;
- color: #9ca3af;
- }
- .deliverable-info {
- display: flex;
- align-items: center;
- gap: 4px;
- font-size: 11px;
- color: #d1d5db; // Inactive color
- padding: 1px 6px;
- border-radius: 4px;
- background: #f9fafb;
-
- &.has-data {
- color: #6b7280;
- background: #f3f4f6;
-
- .count {
- font-weight: 500;
- color: #4b5563;
- }
- }
-
- .icon { font-size: 12px; }
- }
- // 时间刻度尺
- .timeline-ruler {
- display: flex;
- position: sticky;
- top: 0;
- z-index: 10;
- background: #ffffff;
- border-bottom: 1px solid #f3f4f6;
- padding: 8px 0;
- }
- .ruler-header {
- width: 200px;
- min-width: 200px;
- padding: 12px 16px;
- font-weight: 600;
- font-size: 14px;
- color: #111827;
- border-right: 1px solid #f3f4f6;
- background: #ffffff;
- display: flex;
- align-items: center;
- }
- .ruler-ticks {
- flex: 1;
- display: flex;
- position: relative;
- }
- .ruler-tick {
- flex: 1;
- text-align: center;
- border-right: 1px solid #f3f4f6;
- padding: 8px 4px;
- display: flex;
- flex-direction: column;
- gap: 2px;
- &:last-child {
- border-right: none;
- }
-
- &.first {
- border-left: 1px solid #e5e7eb;
- background: #f9fafb;
- }
- }
- .tick-date {
- font-size: 13px;
- color: #374151;
- font-weight: 600;
- line-height: 1.2;
- }
- .tick-weekday {
- font-size: 11px;
- color: #9ca3af;
- font-weight: 500;
- line-height: 1.2;
- }
- // 时间轴轨道
- .timeline-track {
- flex: 1;
- position: relative;
- height: 72px; // Slightly taller for breathing room
- padding: 0; // Remove padding, center bar vertically
- display: flex;
- align-items: center;
- background: repeating-linear-gradient(
- 90deg,
- transparent,
- transparent calc(100% / 7 - 1px),
- #e5e7eb calc(100% / 7 - 1px), // Slightly darker grid line
- #e5e7eb calc(100% / 7)
- );
- }
- // 项目条形图 - 扁平化
- .project-bar {
- position: absolute;
- height: 36px; // Slightly taller
- border-radius: 6px;
- transition: all 0.2s;
- box-shadow: 0 1px 2px rgba(0,0,0,0.05);
- border: 1px solid rgba(0,0,0,0.1); // Explicit border for better definition
- opacity: 1;
-
- &::before {
- display: none; // Remove the top gloss effect
- }
-
- &:hover {
- transform: scaleY(1.05);
- box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
- z-index: 5;
- }
- }
- // 进度条容器 - 简化
- .progress-bar-container {
- position: absolute;
- top: 0;
- bottom: 0;
- border-radius: 5px;
- background: rgba(0,0,0,0.05); // Subtle darkening for progress area
-
- .progress-fill {
- background: rgba(0,0,0,0.15) !important; // Darker overlay for completion
- box-shadow: none;
-
- .progress-text {
- font-size: 11px;
- color: #374151; // Darker text for contrast
- text-shadow: none;
- font-weight: 700;
- }
- }
- }
- // 任务完成度标记 - 简化
- .completion-marker {
- top: -26px; // Closer to bar
-
- .marker-label {
- color: #374151;
- background: #ffffff !important;
- border: 1px solid #d1d5db;
- box-shadow: 0 2px 4px rgba(0,0,0,0.05);
- font-size: 11px;
- padding: 2px 8px;
- }
-
- .marker-dot {
- width: 8px;
- height: 8px;
- border: 2px solid #ffffff;
- box-shadow: 0 1px 2px rgba(0,0,0,0.1);
- }
- }
- // 事件标记 - 简化重构
- .event-marker {
- position: absolute;
- top: 50%;
- transform: translateY(-50%);
- display: flex;
- align-items: center;
- justify-content: center;
- transition: all 0.2s;
- cursor: pointer;
-
- // 🔵 小圆点样式 (开始、阶段截止) - 极简,无文字,不占空间
- &.dot-marker {
- width: 10px;
- height: 10px;
- border-radius: 50%;
- border: 2px solid #ffffff;
- box-shadow: 0 1px 3px rgba(0,0,0,0.2);
- z-index: 7; // Above progress bar, below icons
-
- &:hover {
- transform: translateY(-50%) scale(1.5);
- z-index: 10;
- }
- }
- // 🔶 图标样式 (交付、小图对图) - 保留视觉重心
- &.icon-marker {
- z-index: 8;
- color: #ffffff;
- border-radius: 50%;
- border: 2px solid #ffffff;
- box-shadow: 0 2px 5px rgba(0,0,0,0.15);
-
- &.delivery {
- width: 24px;
- height: 24px;
- font-size: 14px;
- border-radius: 4px; // Square for box
- transform: translateY(-50%) rotate(45deg); // Diamond shape
-
- &:hover {
- transform: translateY(-50%) rotate(45deg) scale(1.2);
- z-index: 15;
- }
- }
- &.review {
- width: 32px;
- height: 32px;
- font-size: 18px;
- // border-color: #f59e0b; // Gold border
- box-shadow: 0 4px 8px rgba(245, 158, 11, 0.3);
- z-index: 9;
-
- &:hover {
- transform: translateY(-50%) scale(1.15);
- z-index: 15;
- }
- }
- }
-
- &.blink {
- animation: blink 1s infinite;
- }
- }
- // 今日标记线 - 修复版
- .today-line {
- position: absolute;
- top: 0;
- bottom: 0;
- z-index: 20;
- pointer-events: none;
- // left is set dynamically via style attribute
- width: 0; // Container width is 0, content flows from it
- }
- .today-bar {
- position: absolute;
- top: 0;
- bottom: 0;
- left: 0;
- width: 2px;
- background: #ef4444;
- box-shadow: 0 0 4px rgba(239, 68, 68, 0.3);
- }
- .today-dot {
- position: absolute;
- top: -5px; // Align with ruler ticks
- left: -4px; // Center on the 2px line
- width: 10px;
- height: 10px;
- background: #ef4444;
- border-radius: 50%;
- border: 2px solid #ffffff;
- box-shadow: 0 0 0 1px #ef4444;
- animation: none;
- }
- .today-label {
- position: absolute;
- top: -35px;
- left: 0;
- transform: translateX(-50%);
- background: #ef4444;
- color: #ffffff;
- padding: 4px 10px;
- font-size: 11px;
- font-weight: 600;
- border-radius: 20px;
- box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
- white-space: nowrap;
- animation: none;
-
- &::after {
- content: '';
- position: absolute;
- top: 100%;
- left: 50%;
- transform: translateX(-50%);
- width: 0;
- height: 0;
- border-left: 5px solid transparent;
- border-right: 5px solid transparent;
- border-top: 5px solid #ef4444;
- }
- }
- // 移除之前的复杂样式
- .space-deliverable-badge, .priority-badge {
- display: none; // We moved these or restyled them
- }
- // 动画
- @keyframes pulse {
- 0%, 100% {
- opacity: 1;
- }
- 50% {
- opacity: 0.7;
- }
- }
- @keyframes blink {
- 0%, 100% {
- opacity: 1;
- }
- 50% {
- opacity: 0.3;
- }
- }
- // 🔥 小图对图高亮脉冲动画
- @keyframes pulse-highlight {
- 0%, 100% {
- transform: translateY(-50%) scale(1);
- box-shadow: 0 0 25px rgba(245, 158, 11, 0.8), 0 4px 15px rgba(0, 0, 0, 0.3);
- }
- 50% {
- transform: translateY(-50%) scale(1.15);
- box-shadow: 0 0 35px rgba(245, 158, 11, 1), 0 6px 20px rgba(0, 0, 0, 0.4);
- }
- }
- // 🔥 图例发光动画
- @keyframes legend-glow {
- 0%, 100% {
- box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
- }
- 50% {
- box-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
- }
- }
- // 响应式设计
- @media (max-width: 768px) {
- .filter-section {
- flex-direction: column;
- align-items: stretch;
- }
- .filter-group {
- width: 100%;
- &.quick-filters {
- margin-left: 0;
- }
- &.view-controls,
- &.sort-controls {
- border-left: none;
- border-top: 1px solid #e5e7eb;
- padding-left: 0;
- padding-top: 12px;
- }
- }
- .stats-body {
- grid-template-columns: 1fr;
- }
-
- // 时间轴视图响应式
- .timeline-legend {
- flex-wrap: wrap;
- gap: 12px;
- padding: 8px 12px;
- }
-
- .legend-item {
- gap: 6px;
- }
-
- .legend-label {
- font-size: 11px;
- }
-
- .ruler-header,
- .project-label {
- width: 100px;
- min-width: 100px;
- padding: 8px;
- }
-
- .project-name-label {
- font-size: 11px;
- }
-
- .designer-label {
- font-size: 10px;
- }
-
- .tick-date {
- font-size: 11px;
- }
-
- .tick-weekday {
- font-size: 9px;
- }
-
- .timeline-track {
- height: 50px;
- padding: 14px 0;
- }
-
- .project-bar {
- height: 22px;
- }
-
- .event-marker {
- width: 20px;
- height: 20px;
- font-size: 14px;
-
- &.start {
- width: 18px;
- height: 18px;
- font-size: 12px;
- }
-
- &.review {
- width: 19px;
- height: 19px;
- font-size: 13px;
- }
-
- &.delivery {
- width: 22px;
- height: 22px;
- font-size: 16px;
- }
- }
- }
- @keyframes fadeInDown {
- from {
- opacity: 0;
- transform: translateX(-50%) translateY(-10px);
- }
- to {
- opacity: 1;
- transform: translateX(-50%) translateY(0);
- }
- }
|