|
|
@@ -1,834 +1,507 @@
|
|
|
-.project-timeline-container {
|
|
|
- width: 100%;
|
|
|
+@import '../../../../styles/variables.scss';
|
|
|
+
|
|
|
+:host {
|
|
|
+ display: block;
|
|
|
height: 100%;
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- background: #ffffff;
|
|
|
- border-radius: 8px;
|
|
|
+ background-color: #f8fafc;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
|
|
|
-// 顶部筛选栏
|
|
|
-.timeline-header {
|
|
|
- padding: 16px;
|
|
|
- background: #f9fafb;
|
|
|
- border-bottom: 1px solid #e5e7eb;
|
|
|
-}
|
|
|
-
|
|
|
-.filter-section {
|
|
|
+.project-timeline-container {
|
|
|
display: flex;
|
|
|
- align-items: center;
|
|
|
- gap: 16px;
|
|
|
- flex-wrap: wrap;
|
|
|
+ flex-direction: column;
|
|
|
+ height: 100%;
|
|
|
+ padding: 16px;
|
|
|
+ box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
-.filter-group {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- gap: 8px;
|
|
|
+/* ==================== Header & Filters ==================== */
|
|
|
+.timeline-header {
|
|
|
+ flex-shrink: 0;
|
|
|
+ margin-bottom: 16px;
|
|
|
+ background: white;
|
|
|
+ padding: 16px;
|
|
|
+ border-radius: 12px;
|
|
|
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
|
|
|
|
|
|
- label {
|
|
|
- font-size: 14px;
|
|
|
- font-weight: 500;
|
|
|
- color: #374151;
|
|
|
- white-space: nowrap;
|
|
|
+ .filter-section {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 16px;
|
|
|
+ flex-wrap: wrap;
|
|
|
}
|
|
|
-}
|
|
|
|
|
|
-.filter-select {
|
|
|
- padding: 6px 12px;
|
|
|
- border: 1px solid #d1d5db;
|
|
|
- border-radius: 6px;
|
|
|
- font-size: 14px;
|
|
|
- background: #ffffff;
|
|
|
- cursor: pointer;
|
|
|
- transition: all 0.2s;
|
|
|
+ .filter-group {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 8px;
|
|
|
|
|
|
- &:hover {
|
|
|
- border-color: #9ca3af;
|
|
|
+ label {
|
|
|
+ font-size: 13px;
|
|
|
+ color: #64748b;
|
|
|
+ font-weight: 500;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
- &:focus {
|
|
|
+ .filter-select {
|
|
|
+ padding: 6px 12px;
|
|
|
+ border: 1px solid #e2e8f0;
|
|
|
+ border-radius: 6px;
|
|
|
+ font-size: 13px;
|
|
|
+ color: #334155;
|
|
|
+ background-color: #fff;
|
|
|
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;
|
|
|
- }
|
|
|
+ transition: all 0.2s;
|
|
|
+ min-width: 140px;
|
|
|
|
|
|
- &.active {
|
|
|
- background: #3b82f6;
|
|
|
- color: #ffffff;
|
|
|
- border-color: #3b82f6;
|
|
|
+ &:focus {
|
|
|
+ border-color: $ios-primary;
|
|
|
+ box-shadow: 0 0 0 2px rgba($ios-primary, 0.1);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-.sort-controls,
|
|
|
-.time-scale-controls {
|
|
|
- border-left: 1px solid #e5e7eb;
|
|
|
- padding-left: 16px;
|
|
|
-}
|
|
|
-
|
|
|
-.sort-btn,
|
|
|
-.scale-btn,
|
|
|
-.refresh-btn {
|
|
|
+/* Buttons */
|
|
|
+.filter-btn, .scale-btn, .refresh-btn, .sort-btn {
|
|
|
padding: 6px 12px;
|
|
|
- border: 1px solid #d1d5db;
|
|
|
+ border: 1px solid #e2e8f0;
|
|
|
border-radius: 6px;
|
|
|
- background: #ffffff;
|
|
|
+ background: white;
|
|
|
+ color: #64748b;
|
|
|
font-size: 13px;
|
|
|
cursor: pointer;
|
|
|
transition: all 0.2s;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 6px;
|
|
|
|
|
|
&:hover {
|
|
|
- background: #f3f4f6;
|
|
|
+ background: #f8fafc;
|
|
|
+ color: #334155;
|
|
|
+ border-color: #cbd5e1;
|
|
|
}
|
|
|
|
|
|
&.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);
|
|
|
+ background: #eff6ff;
|
|
|
+ color: $ios-primary;
|
|
|
+ border-color: $ios-primary;
|
|
|
+ font-weight: 500;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-// 设计师统计面板
|
|
|
+/* Designer Stats Panel */
|
|
|
.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;
|
|
|
+ padding-top: 12px;
|
|
|
+ border-top: 1px solid #f1f5f9;
|
|
|
+
|
|
|
+ animation: slideDown 0.2s ease-out;
|
|
|
|
|
|
- &.level-low {
|
|
|
- background: #d1fae5;
|
|
|
- color: #065f46;
|
|
|
- }
|
|
|
+ .stats-header {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 12px;
|
|
|
+ margin-bottom: 8px;
|
|
|
|
|
|
- &.level-medium {
|
|
|
- background: #fef3c7;
|
|
|
- color: #92400e;
|
|
|
- }
|
|
|
+ h3 {
|
|
|
+ margin: 0;
|
|
|
+ font-size: 15px;
|
|
|
+ font-weight: 600;
|
|
|
+ color: #1e293b;
|
|
|
+ }
|
|
|
|
|
|
- &.level-high {
|
|
|
- background: #fee2e2;
|
|
|
- color: #991b1b;
|
|
|
+ .workload-badge {
|
|
|
+ font-size: 12px;
|
|
|
+ padding: 2px 8px;
|
|
|
+ border-radius: 12px;
|
|
|
+ background: #f1f5f9;
|
|
|
+ color: #64748b;
|
|
|
+
|
|
|
+ &.level-high { background: #fee2e2; color: #ef4444; }
|
|
|
+ &.level-medium { background: #fef3c7; color: #d97706; }
|
|
|
+ &.level-low { background: #dcfce7; color: #16a34a; }
|
|
|
+ }
|
|
|
}
|
|
|
-}
|
|
|
-
|
|
|
-.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;
|
|
|
+ .stats-body {
|
|
|
+ display: flex;
|
|
|
+ gap: 24px;
|
|
|
|
|
|
- &.urgent {
|
|
|
- color: #ea580c;
|
|
|
- }
|
|
|
+ .stat-item {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 6px;
|
|
|
+ font-size: 13px;
|
|
|
|
|
|
- &.overdue {
|
|
|
- color: #dc2626;
|
|
|
+ .stat-label { color: #64748b; }
|
|
|
+ .stat-value {
|
|
|
+ font-weight: 600;
|
|
|
+ color: #334155;
|
|
|
+ &.urgent { color: #f59e0b; }
|
|
|
+ &.overdue { color: #ef4444; }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-// 时间轴主体
|
|
|
+/* ==================== Main Dashboard Table ==================== */
|
|
|
.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 {
|
|
|
+ background: white;
|
|
|
+ border-radius: 12px;
|
|
|
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
|
|
|
display: flex;
|
|
|
- align-items: center;
|
|
|
- gap: 6px;
|
|
|
+ flex-direction: column;
|
|
|
+ overflow: hidden;
|
|
|
|
|
|
- &.legend-highlight {
|
|
|
- background: #fff7ed;
|
|
|
- padding: 4px 10px;
|
|
|
- border-radius: 4px;
|
|
|
- border: 1px solid #fed7aa;
|
|
|
+ /* Table Header */
|
|
|
+ .dashboard-header-row {
|
|
|
+ display: grid;
|
|
|
+ grid-template-columns: 260px 240px 1fr; /* Fixed | Fixed | Fluid Timeline */
|
|
|
+ padding: 16px 24px;
|
|
|
+ border-bottom: 1px solid #e2e8f0;
|
|
|
+ background: #f8fafc;
|
|
|
|
|
|
- .legend-label {
|
|
|
- color: #ea580c;
|
|
|
+ .header-cell {
|
|
|
+ font-size: 13px;
|
|
|
font-weight: 600;
|
|
|
+ color: #64748b;
|
|
|
+ text-transform: uppercase;
|
|
|
+ letter-spacing: 0.5px;
|
|
|
+
|
|
|
+ &.timeline-header-cell {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+
|
|
|
+ .timeline-dates {
|
|
|
+ font-size: 11px;
|
|
|
+ font-weight: normal;
|
|
|
+ color: #94a3b8;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
-
|
|
|
-.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; }
|
|
|
-}
|
|
|
+ /* Scrollable List */
|
|
|
+ .dashboard-list {
|
|
|
+ flex: 1;
|
|
|
+ overflow-y: auto;
|
|
|
+ padding: 0;
|
|
|
|
|
|
-.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;
|
|
|
+ &::-webkit-scrollbar {
|
|
|
+ width: 6px;
|
|
|
+ }
|
|
|
+ &::-webkit-scrollbar-track {
|
|
|
+ background: transparent;
|
|
|
+ }
|
|
|
+ &::-webkit-scrollbar-thumb {
|
|
|
+ background: #cbd5e1;
|
|
|
+ border-radius: 3px;
|
|
|
+ &:hover { background: #94a3b8; }
|
|
|
+ }
|
|
|
}
|
|
|
-}
|
|
|
-
|
|
|
-// 项目标签区 - 优化
|
|
|
-.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;
|
|
|
-}
|
|
|
+ .dashboard-row {
|
|
|
+ display: grid;
|
|
|
+ grid-template-columns: 260px 240px 1fr;
|
|
|
+ padding: 16px 24px;
|
|
|
+ border-bottom: 1px solid #f1f5f9;
|
|
|
+ align-items: center;
|
|
|
+ transition: background-color 0.2s;
|
|
|
+ cursor: pointer;
|
|
|
|
|
|
-.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;
|
|
|
+ &:hover {
|
|
|
+ background-color: #f8fafc;
|
|
|
+ }
|
|
|
|
|
|
- .count {
|
|
|
- font-weight: 500;
|
|
|
- color: #4b5563;
|
|
|
+ &:last-child {
|
|
|
+ border-bottom: none;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- .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;
|
|
|
-}
|
|
|
+/* ==================== Column 1: Project Info ==================== */
|
|
|
+.project-info-cell {
|
|
|
+ padding-right: 16px;
|
|
|
|
|
|
-.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;
|
|
|
-}
|
|
|
+ .project-name-row {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 8px;
|
|
|
+ margin-bottom: 6px;
|
|
|
|
|
|
-.ruler-tick {
|
|
|
- flex: 1;
|
|
|
- text-align: center;
|
|
|
- border-right: 1px solid #f3f4f6;
|
|
|
- padding: 8px 4px;
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- gap: 2px;
|
|
|
+ h4 {
|
|
|
+ margin: 0;
|
|
|
+ font-size: 15px;
|
|
|
+ font-weight: 600;
|
|
|
+ color: #1e293b;
|
|
|
+ white-space: nowrap;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ }
|
|
|
|
|
|
- &:last-child {
|
|
|
- border-right: none;
|
|
|
- }
|
|
|
-
|
|
|
- &.first {
|
|
|
- border-left: 1px solid #e5e7eb;
|
|
|
- background: #f9fafb;
|
|
|
+ .priority-tag {
|
|
|
+ font-size: 12px;
|
|
|
+ }
|
|
|
}
|
|
|
-}
|
|
|
-
|
|
|
-.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;
|
|
|
+ .project-meta-row {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ gap: 2px;
|
|
|
+
|
|
|
+ .designer-name {
|
|
|
+ font-size: 13px;
|
|
|
+ color: #475569;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 4px;
|
|
|
+
|
|
|
+ i { font-size: 12px; color: #94a3b8; }
|
|
|
+ }
|
|
|
+
|
|
|
+ .status-text {
|
|
|
+ font-size: 12px;
|
|
|
+ color: #64748b;
|
|
|
+
|
|
|
+ &.urgent { color: #f59e0b; }
|
|
|
+ &.overdue { color: #ef4444; }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-// 进度条容器 - 简化
|
|
|
-.progress-bar-container {
|
|
|
- position: absolute;
|
|
|
- top: 0;
|
|
|
- bottom: 0;
|
|
|
- border-radius: 5px;
|
|
|
- background: rgba(0,0,0,0.05); // Subtle darkening for progress area
|
|
|
+/* ==================== Column 2: Progress Stats ==================== */
|
|
|
+.progress-stats-cell {
|
|
|
+ padding-right: 32px;
|
|
|
|
|
|
- .progress-fill {
|
|
|
- background: rgba(0,0,0,0.15) !important; // Darker overlay for completion
|
|
|
- box-shadow: none;
|
|
|
+ .progress-summary {
|
|
|
+ display: flex;
|
|
|
+ align-items: baseline;
|
|
|
+ gap: 8px;
|
|
|
+ margin-bottom: 8px;
|
|
|
|
|
|
- .progress-text {
|
|
|
- font-size: 11px;
|
|
|
- color: #374151; // Darker text for contrast
|
|
|
- text-shadow: none;
|
|
|
+ .rate-value {
|
|
|
+ font-size: 20px;
|
|
|
font-weight: 700;
|
|
|
+ line-height: 1;
|
|
|
+
|
|
|
+ &.rate-low { color: #94a3b8; }
|
|
|
+ &.rate-mid { color: #f59e0b; }
|
|
|
+ &.rate-high { color: #16a34a; }
|
|
|
+ &.rate-done { color: #16a34a; }
|
|
|
+ }
|
|
|
+
|
|
|
+ .rate-label {
|
|
|
+ font-size: 12px;
|
|
|
+ color: #64748b;
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
-
|
|
|
-// 任务完成度标记 - 简化
|
|
|
-.completion-marker {
|
|
|
- top: -26px; // Closer to bar
|
|
|
+
|
|
|
+ .progress-pills {
|
|
|
+ display: flex;
|
|
|
+ gap: 4px;
|
|
|
+ height: 6px;
|
|
|
+ width: 100%;
|
|
|
+ background: #f1f5f9;
|
|
|
+ border-radius: 3px;
|
|
|
+ overflow: hidden;
|
|
|
|
|
|
- .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;
|
|
|
+ .pill {
|
|
|
+ flex: 1;
|
|
|
+ height: 100%;
|
|
|
+ background: transparent;
|
|
|
+ position: relative;
|
|
|
+
|
|
|
+ &::after {
|
|
|
+ content: '';
|
|
|
+ position: absolute;
|
|
|
+ left: 0;
|
|
|
+ top: 0;
|
|
|
+ height: 100%;
|
|
|
+ width: var(--fill-percent, 0%);
|
|
|
+ background: var(--fill-color, #cbd5e1);
|
|
|
+ border-radius: 2px;
|
|
|
+ transition: width 0.3s ease;
|
|
|
+ }
|
|
|
+
|
|
|
+ /* Pill Colors */
|
|
|
+ &.type-model { --fill-color: #3b82f6; }
|
|
|
+ &.type-soft { --fill-color: #f59e0b; }
|
|
|
+ &.type-render { --fill-color: #8b5cf6; }
|
|
|
+ &.type-post { --fill-color: #10b981; }
|
|
|
}
|
|
|
+ }
|
|
|
+
|
|
|
+ .pill-labels {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ margin-top: 4px;
|
|
|
+ padding: 0 2px;
|
|
|
|
|
|
- .marker-dot {
|
|
|
- width: 8px;
|
|
|
- height: 8px;
|
|
|
- border: 2px solid #ffffff;
|
|
|
- box-shadow: 0 1px 2px rgba(0,0,0,0.1);
|
|
|
+ span {
|
|
|
+ font-size: 10px;
|
|
|
+ color: #94a3b8;
|
|
|
+ width: 25%;
|
|
|
+ text-align: center;
|
|
|
}
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
-// 事件标记 - 简化重构
|
|
|
-.event-marker {
|
|
|
- position: absolute;
|
|
|
- top: 50%;
|
|
|
- transform: translateY(-50%);
|
|
|
+/* ==================== Column 3: Timeline Track ==================== */
|
|
|
+.timeline-track-cell {
|
|
|
+ position: relative;
|
|
|
+ height: 100%;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ padding: 0 10px; /* Buffer for end markers */
|
|
|
+
|
|
|
+ .track-container {
|
|
|
+ position: relative;
|
|
|
+ width: 100%;
|
|
|
+ height: 40px; /* Interaction area height */
|
|
|
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;
|
|
|
- }
|
|
|
+ /* The gray background line */
|
|
|
+ &::before {
|
|
|
+ content: '';
|
|
|
+ position: absolute;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ top: 50%;
|
|
|
+ height: 4px;
|
|
|
+ background: #f1f5f9;
|
|
|
+ border-radius: 2px;
|
|
|
+ margin-top: -2px;
|
|
|
}
|
|
|
-
|
|
|
- // 🔶 图标样式 (交付、小图对图) - 保留视觉重心
|
|
|
- &.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);
|
|
|
+
|
|
|
+ /* Grid lines for days */
|
|
|
+ .grid-lines {
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ bottom: 0;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ pointer-events: none;
|
|
|
+
|
|
|
+ .grid-line {
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ bottom: 0;
|
|
|
+ width: 1px;
|
|
|
+ background: rgba(0, 0, 0, 0.02);
|
|
|
|
|
|
- &.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;
|
|
|
- }
|
|
|
+ &.weekend {
|
|
|
+ background: rgba(0, 0, 0, 0.04);
|
|
|
}
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
- &.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;
|
|
|
+ /* The colored project duration bar */
|
|
|
+ .project-duration-bar {
|
|
|
+ position: absolute;
|
|
|
+ top: 50%;
|
|
|
+ height: 6px;
|
|
|
+ margin-top: -3px;
|
|
|
+ border-radius: 3px;
|
|
|
+ background: #bfdbfe; /* Default blue-ish */
|
|
|
+ opacity: 0.8;
|
|
|
+
|
|
|
+ &.status-normal { background: #bbf7d0; }
|
|
|
+ &.status-warning { background: #fde047; }
|
|
|
+ &.status-urgent { background: #fdba74; }
|
|
|
+ &.status-overdue { background: #fca5a5; }
|
|
|
+ &.status-stalled { background: #e2e8f0; }
|
|
|
}
|
|
|
|
|
|
- .project-bar {
|
|
|
- height: 22px;
|
|
|
+ /* Today Line */
|
|
|
+ .today-line {
|
|
|
+ position: absolute;
|
|
|
+ top: -5px;
|
|
|
+ bottom: -5px;
|
|
|
+ width: 2px;
|
|
|
+ background: #ef4444;
|
|
|
+ z-index: 10;
|
|
|
+ pointer-events: none;
|
|
|
+
|
|
|
+ &::after {
|
|
|
+ content: 'NOW';
|
|
|
+ position: absolute;
|
|
|
+ top: -16px;
|
|
|
+ left: 50%;
|
|
|
+ transform: translateX(-50%);
|
|
|
+ background: #ef4444;
|
|
|
+ color: white;
|
|
|
+ font-size: 9px;
|
|
|
+ padding: 1px 4px;
|
|
|
+ border-radius: 2px;
|
|
|
+ white-space: nowrap;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
- .event-marker {
|
|
|
+ /* Markers */
|
|
|
+ .t-marker {
|
|
|
+ position: absolute;
|
|
|
+ top: 50%;
|
|
|
+ transform: translate(-50%, -50%);
|
|
|
width: 20px;
|
|
|
height: 20px;
|
|
|
- font-size: 14px;
|
|
|
+ background: white;
|
|
|
+ border: 2px solid #cbd5e1;
|
|
|
+ border-radius: 50%;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ font-size: 10px;
|
|
|
+ z-index: 5;
|
|
|
+ box-shadow: 0 1px 2px rgba(0,0,0,0.05);
|
|
|
+ transition: transform 0.2s;
|
|
|
|
|
|
- &.start {
|
|
|
- width: 18px;
|
|
|
- height: 18px;
|
|
|
- font-size: 12px;
|
|
|
+ &:hover {
|
|
|
+ transform: translate(-50%, -50%) scale(1.2);
|
|
|
+ z-index: 20;
|
|
|
}
|
|
|
|
|
|
- &.review {
|
|
|
- width: 19px;
|
|
|
- height: 19px;
|
|
|
- font-size: 13px;
|
|
|
+ &.type-start { border-color: #10b981; color: #10b981; }
|
|
|
+ &.type-delivery { border-color: #3b82f6; background: #eff6ff; }
|
|
|
+ &.type-review { border-color: #f59e0b; color: #f59e0b; }
|
|
|
+ &.type-deadline {
|
|
|
+ width: 8px;
|
|
|
+ height: 8px;
|
|
|
+ border: none;
|
|
|
+ background: #94a3b8;
|
|
|
+
|
|
|
+ &.phase-modeling { background: #3b82f6; }
|
|
|
+ &.phase-softDecor { background: #f59e0b; }
|
|
|
+ &.phase-rendering { background: #8b5cf6; }
|
|
|
+ &.phase-postProcessing { background: #10b981; }
|
|
|
}
|
|
|
|
|
|
- &.delivery {
|
|
|
- width: 22px;
|
|
|
- height: 22px;
|
|
|
- font-size: 16px;
|
|
|
- }
|
|
|
+ /* Overdue/Urgent states for markers */
|
|
|
+ &.urgent { border-color: #f97316; color: #f97316; }
|
|
|
+ &.overdue { border-color: #ef4444; color: #ef4444; background: #fef2f2; }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-@keyframes fadeInDown {
|
|
|
- from {
|
|
|
- opacity: 0;
|
|
|
- transform: translateX(-50%) translateY(-10px);
|
|
|
- }
|
|
|
- to {
|
|
|
- opacity: 1;
|
|
|
- transform: translateX(-50%) translateY(0);
|
|
|
+/* Empty State */
|
|
|
+.empty-state {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ padding: 60px;
|
|
|
+ color: #94a3b8;
|
|
|
+
|
|
|
+ p {
|
|
|
+ margin-top: 16px;
|
|
|
+ font-size: 14px;
|
|
|
}
|
|
|
-}
|
|
|
+}
|
|
|
+
|
|
|
+/* Animation */
|
|
|
+@keyframes slideDown {
|
|
|
+ from { opacity: 0; transform: translateY(-10px); }
|
|
|
+ to { opacity: 1; transform: translateY(0); }
|
|
|
+}
|