|
|
@@ -251,126 +251,157 @@
|
|
|
min-height: 400px;
|
|
|
}
|
|
|
|
|
|
-// 图例说明
|
|
|
+// 图例说明 - 简化版
|
|
|
.timeline-legend {
|
|
|
display: flex;
|
|
|
- justify-content: center;
|
|
|
align-items: center;
|
|
|
- gap: 24px;
|
|
|
padding: 12px 20px;
|
|
|
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
|
- border-radius: 8px 8px 0 0;
|
|
|
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
|
+ 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: 8px;
|
|
|
+ gap: 6px;
|
|
|
|
|
|
- // 🔥 高亮样式
|
|
|
&.legend-highlight {
|
|
|
- padding: 6px 12px;
|
|
|
- background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
|
|
|
- border-radius: 8px;
|
|
|
- border: 2px solid #fbbf24;
|
|
|
- box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
|
|
|
- animation: legend-glow 2s ease-in-out infinite;
|
|
|
+ background: #fff7ed;
|
|
|
+ padding: 4px 10px;
|
|
|
+ border-radius: 4px;
|
|
|
+ border: 1px solid #fed7aa;
|
|
|
|
|
|
.legend-label {
|
|
|
+ color: #ea580c;
|
|
|
font-weight: 600;
|
|
|
- color: #7c3aed;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+.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: 24px;
|
|
|
- height: 24px;
|
|
|
- border-radius: 50%;
|
|
|
- font-size: 16px;
|
|
|
- color: #ffffff;
|
|
|
- box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
|
|
|
-
|
|
|
- &.start-icon {
|
|
|
- background: #10b981;
|
|
|
- }
|
|
|
+ width: 20px;
|
|
|
+ height: 20px;
|
|
|
+ font-size: 14px;
|
|
|
|
|
|
- &.review-icon {
|
|
|
- background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
|
|
|
- border: 2px solid #fbbf24;
|
|
|
- width: 28px;
|
|
|
- height: 28px;
|
|
|
- font-size: 18px;
|
|
|
- box-shadow: 0 0 15px rgba(139, 92, 246, 0.5), 0 2px 6px rgba(0, 0, 0, 0.2);
|
|
|
- }
|
|
|
+ &.start-icon { color: #10b981; }
|
|
|
+ &.delivery-icon { color: #f59e0b; }
|
|
|
|
|
|
- &.delivery-icon {
|
|
|
- background: #f59e0b;
|
|
|
- border-radius: 4px;
|
|
|
- transform: rotate(45deg);
|
|
|
- }
|
|
|
-
|
|
|
- // 🆕 阶段文本图标样式
|
|
|
&.phase-icon {
|
|
|
- font-size: 14px; // 调整字体大小使其在小圆圈中居中
|
|
|
- font-weight: bold;
|
|
|
- width: 28px;
|
|
|
- height: 28px;
|
|
|
+ width: 20px;
|
|
|
+ height: 20px;
|
|
|
border-radius: 50%;
|
|
|
- background: rgba(255, 255, 255, 0.2); // 半透明背景
|
|
|
- border: 1px solid rgba(255, 255, 255, 0.4); // 描边
|
|
|
- color: #ffffff;
|
|
|
- box-shadow: none; // 移除阴影
|
|
|
+ background: #f3f4f6;
|
|
|
+ color: #6b7280;
|
|
|
+ font-size: 10px;
|
|
|
+ font-weight: 600;
|
|
|
+ border: 1px solid #e5e7eb;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.review-icon {
|
|
|
+ font-size: 16px;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-.legend-bar-demo {
|
|
|
- width: 40px;
|
|
|
- height: 12px;
|
|
|
- border-radius: 4px;
|
|
|
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
|
+// 项目标签区 - 优化
|
|
|
+.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;
|
|
|
}
|
|
|
|
|
|
-// 🆕 四种紧急度颜色图例
|
|
|
-.legend-bar-green {
|
|
|
- background: linear-gradient(135deg, #86EFAC 0%, #4ADE80 100%);
|
|
|
+.project-main-info {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 6px;
|
|
|
+ overflow: hidden;
|
|
|
}
|
|
|
|
|
|
-.legend-bar-yellow {
|
|
|
- background: linear-gradient(135deg, #FEF08A 0%, #EAB308 100%);
|
|
|
+.project-name-label {
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: 600;
|
|
|
+ color: #111827;
|
|
|
+ white-space: nowrap;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
}
|
|
|
|
|
|
-.legend-bar-orange {
|
|
|
- background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%);
|
|
|
+.priority-icon {
|
|
|
+ font-size: 14px;
|
|
|
+ flex-shrink: 0;
|
|
|
}
|
|
|
|
|
|
-.legend-bar-red {
|
|
|
- background: linear-gradient(135deg, #FCA5A5 0%, #EF4444 100%);
|
|
|
+.project-sub-info {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 10px;
|
|
|
}
|
|
|
|
|
|
-.legend-label {
|
|
|
- font-size: 13px;
|
|
|
- font-weight: 500;
|
|
|
- color: #ffffff;
|
|
|
- text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
|
|
|
+.designer-label {
|
|
|
+ font-size: 12px;
|
|
|
+ color: #9ca3af;
|
|
|
}
|
|
|
|
|
|
-// 🆕 图例注释样式
|
|
|
-.legend-note {
|
|
|
- margin-left: auto;
|
|
|
- padding-left: 16px;
|
|
|
- border-left: 1px solid rgba(255, 255, 255, 0.3);
|
|
|
+.deliverable-info {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 4px;
|
|
|
+ font-size: 11px;
|
|
|
+ color: #d1d5db; // Inactive color
|
|
|
+ padding: 1px 6px;
|
|
|
+ border-radius: 4px;
|
|
|
+ background: #f9fafb;
|
|
|
|
|
|
- .legend-label {
|
|
|
- font-size: 12px;
|
|
|
- font-weight: 600;
|
|
|
- color: #fef3c7;
|
|
|
- opacity: 0.95;
|
|
|
+ &.has-data {
|
|
|
+ color: #6b7280;
|
|
|
+ background: #f3f4f6;
|
|
|
+
|
|
|
+ .count {
|
|
|
+ font-weight: 500;
|
|
|
+ color: #4b5563;
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
+ .icon { font-size: 12px; }
|
|
|
}
|
|
|
|
|
|
// 时间刻度尺
|
|
|
@@ -380,19 +411,21 @@
|
|
|
top: 0;
|
|
|
z-index: 10;
|
|
|
background: #ffffff;
|
|
|
- border-bottom: 2px solid #e5e7eb;
|
|
|
+ border-bottom: 1px solid #f3f4f6;
|
|
|
padding: 8px 0;
|
|
|
}
|
|
|
|
|
|
.ruler-header {
|
|
|
- width: 180px;
|
|
|
- min-width: 180px;
|
|
|
- padding: 12px 12px;
|
|
|
+ width: 200px;
|
|
|
+ min-width: 200px;
|
|
|
+ padding: 12px 16px;
|
|
|
font-weight: 600;
|
|
|
font-size: 14px;
|
|
|
color: #111827;
|
|
|
- border-right: 2px solid #e5e7eb;
|
|
|
- background: #f9fafb;
|
|
|
+ border-right: 1px solid #f3f4f6;
|
|
|
+ background: #ffffff;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
}
|
|
|
|
|
|
.ruler-ticks {
|
|
|
@@ -404,7 +437,7 @@
|
|
|
.ruler-tick {
|
|
|
flex: 1;
|
|
|
text-align: center;
|
|
|
- border-right: 1px solid #e5e7eb;
|
|
|
+ border-right: 1px solid #f3f4f6;
|
|
|
padding: 8px 4px;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
@@ -415,437 +448,238 @@
|
|
|
}
|
|
|
|
|
|
&.first {
|
|
|
- border-left: 2px solid #3b82f6;
|
|
|
+ border-left: 1px solid #e5e7eb;
|
|
|
+ background: #f9fafb;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.tick-date {
|
|
|
- font-size: 14px;
|
|
|
- color: #111827;
|
|
|
+ font-size: 13px;
|
|
|
+ color: #374151;
|
|
|
font-weight: 600;
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.tick-weekday {
|
|
|
font-size: 11px;
|
|
|
- color: #6b7280;
|
|
|
+ color: #9ca3af;
|
|
|
font-weight: 500;
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
-// 🆕 今日标记线(实时移动,精确到分钟)- 重构版
|
|
|
-.today-line {
|
|
|
- position: absolute;
|
|
|
- top: 0;
|
|
|
- bottom: 0;
|
|
|
- z-index: 10;
|
|
|
- pointer-events: none;
|
|
|
- left: 0; // 通过 [style.left] 动态设置
|
|
|
-}
|
|
|
-
|
|
|
-// 🆕 今日时间标签(顶部显示完整时间)
|
|
|
-.today-label {
|
|
|
- position: absolute;
|
|
|
- top: -40px;
|
|
|
- left: 50%;
|
|
|
- transform: translateX(-50%);
|
|
|
- padding: 8px 16px;
|
|
|
- background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
|
|
|
- color: #ffffff;
|
|
|
- font-size: 13px;
|
|
|
- font-weight: 700;
|
|
|
- border-radius: 8px;
|
|
|
- white-space: nowrap;
|
|
|
- box-shadow: 0 4px 16px rgba(239, 68, 68, 0.5);
|
|
|
- letter-spacing: 0.5px;
|
|
|
- animation: today-label-pulse 2s ease-in-out infinite;
|
|
|
-
|
|
|
- // 小三角箭头
|
|
|
- &::after {
|
|
|
- content: '';
|
|
|
- position: absolute;
|
|
|
- top: 100%;
|
|
|
- left: 50%;
|
|
|
- transform: translateX(-50%);
|
|
|
- width: 0;
|
|
|
- height: 0;
|
|
|
- border-left: 6px solid transparent;
|
|
|
- border-right: 6px solid transparent;
|
|
|
- border-top: 6px solid #dc2626;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-// 🆕 顶部圆点指示器(更大更明显)
|
|
|
-.today-dot {
|
|
|
- position: absolute;
|
|
|
- top: -4px;
|
|
|
- left: 50%;
|
|
|
- transform: translateX(-50%);
|
|
|
- width: 16px;
|
|
|
- height: 16px;
|
|
|
- background: #ef4444;
|
|
|
- border-radius: 50%;
|
|
|
- border: 3px solid #ffffff;
|
|
|
- box-shadow: 0 0 0 2px #ef4444, 0 4px 12px rgba(239, 68, 68, 0.6);
|
|
|
- animation: today-dot-pulse 1.5s ease-in-out infinite;
|
|
|
-}
|
|
|
-
|
|
|
-// 🆕 主竖线条(更宽更明显)
|
|
|
-.today-bar {
|
|
|
- position: absolute;
|
|
|
- top: 0;
|
|
|
- bottom: 0;
|
|
|
- left: 50%;
|
|
|
- transform: translateX(-50%);
|
|
|
- width: 4px;
|
|
|
- background: linear-gradient(180deg,
|
|
|
- rgba(239, 68, 68, 0.95) 0%,
|
|
|
- rgba(239, 68, 68, 0.85) 50%,
|
|
|
- rgba(239, 68, 68, 0.95) 100%
|
|
|
- );
|
|
|
- box-shadow:
|
|
|
- 0 0 8px rgba(239, 68, 68, 0.6),
|
|
|
- 0 0 16px rgba(239, 68, 68, 0.4);
|
|
|
- animation: today-bar-pulse 2s ease-in-out infinite;
|
|
|
-}
|
|
|
-
|
|
|
-// 🆕 时间标签脉动动画
|
|
|
-@keyframes today-label-pulse {
|
|
|
- 0%, 100% {
|
|
|
- transform: translateX(-50%) scale(1);
|
|
|
- box-shadow: 0 4px 16px rgba(239, 68, 68, 0.5);
|
|
|
- }
|
|
|
- 50% {
|
|
|
- transform: translateX(-50%) scale(1.05);
|
|
|
- box-shadow: 0 6px 24px rgba(239, 68, 68, 0.7);
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-// 🆕 圆点脉动动画(更明显)
|
|
|
-@keyframes today-dot-pulse {
|
|
|
- 0%, 100% {
|
|
|
- transform: translateX(-50%) scale(1);
|
|
|
- box-shadow: 0 0 0 2px #ef4444, 0 4px 12px rgba(239, 68, 68, 0.6);
|
|
|
- }
|
|
|
- 50% {
|
|
|
- transform: translateX(-50%) scale(1.4);
|
|
|
- box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.5), 0 6px 20px rgba(239, 68, 68, 0.8);
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-// 🆕 竖线脉动动画
|
|
|
-@keyframes today-bar-pulse {
|
|
|
- 0%, 100% {
|
|
|
- opacity: 1;
|
|
|
- box-shadow:
|
|
|
- 0 0 8px rgba(239, 68, 68, 0.6),
|
|
|
- 0 0 16px rgba(239, 68, 68, 0.4);
|
|
|
- }
|
|
|
- 50% {
|
|
|
- opacity: 0.9;
|
|
|
- box-shadow:
|
|
|
- 0 0 12px rgba(239, 68, 68, 0.8),
|
|
|
- 0 0 24px rgba(239, 68, 68, 0.6);
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-// 项目时间轴
|
|
|
-.timeline-projects {
|
|
|
- position: relative;
|
|
|
- min-height: 300px;
|
|
|
-}
|
|
|
-
|
|
|
-.timeline-row {
|
|
|
- display: flex;
|
|
|
- border-bottom: 1px solid #f3f4f6;
|
|
|
- cursor: pointer;
|
|
|
- transition: background 0.2s;
|
|
|
-
|
|
|
- &:hover {
|
|
|
- background: #f9fafb;
|
|
|
-
|
|
|
- .project-bar {
|
|
|
- transform: scaleY(1.1);
|
|
|
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
|
- }
|
|
|
-
|
|
|
- .event-marker {
|
|
|
- transform: scale(1.3);
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-// 项目标签区
|
|
|
-.project-label {
|
|
|
- width: 180px;
|
|
|
- min-width: 180px;
|
|
|
- padding: 12px 12px;
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- gap: 4px;
|
|
|
- border-right: 2px solid #e5e7eb;
|
|
|
- background: #fafafa;
|
|
|
-}
|
|
|
-
|
|
|
-.project-name-label {
|
|
|
- font-size: 14px;
|
|
|
- font-weight: 500;
|
|
|
- color: #111827;
|
|
|
- white-space: nowrap;
|
|
|
- overflow: hidden;
|
|
|
- text-overflow: ellipsis;
|
|
|
-}
|
|
|
-
|
|
|
-.designer-label {
|
|
|
- font-size: 12px;
|
|
|
- color: #6b7280;
|
|
|
-}
|
|
|
-
|
|
|
-.priority-badge {
|
|
|
- font-size: 16px;
|
|
|
- line-height: 1;
|
|
|
-}
|
|
|
-
|
|
|
-// 🆕 空间与交付物统计徽章
|
|
|
-.space-deliverable-badge {
|
|
|
- padding: 2px 8px;
|
|
|
- border-radius: 10px;
|
|
|
- font-size: 10px;
|
|
|
- font-weight: 600;
|
|
|
- color: white;
|
|
|
- margin-left: 4px;
|
|
|
- white-space: nowrap;
|
|
|
- cursor: help;
|
|
|
- transition: transform 0.2s, box-shadow 0.2s;
|
|
|
-
|
|
|
- &:hover {
|
|
|
- transform: scale(1.05);
|
|
|
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
// 时间轴轨道
|
|
|
.timeline-track {
|
|
|
flex: 1;
|
|
|
position: relative;
|
|
|
- height: 70px;
|
|
|
- padding: 19px 0;
|
|
|
- overflow: visible;
|
|
|
+ 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),
|
|
|
- #f3f4f6 calc(100% / 7 - 1px),
|
|
|
- #f3f4f6 calc(100% / 7)
|
|
|
+ #e5e7eb calc(100% / 7 - 1px), // Slightly darker grid line
|
|
|
+ #e5e7eb calc(100% / 7)
|
|
|
);
|
|
|
}
|
|
|
|
|
|
-// 项目条形图
|
|
|
+// 项目条形图 - 扁平化
|
|
|
.project-bar {
|
|
|
position: absolute;
|
|
|
- top: 50%;
|
|
|
- transform: translateY(-50%);
|
|
|
- height: 34px;
|
|
|
- border-radius: 8px;
|
|
|
- transition: all 0.3s;
|
|
|
- overflow: hidden;
|
|
|
- box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
|
|
|
- border: 1px solid rgba(255, 255, 255, 0.4);
|
|
|
- opacity: 0.95;
|
|
|
+ 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 {
|
|
|
- content: '';
|
|
|
- position: absolute;
|
|
|
- left: 0;
|
|
|
- right: 0;
|
|
|
- top: 0;
|
|
|
- height: 5px;
|
|
|
- border-radius: 8px 8px 0 0;
|
|
|
- background: rgba(255, 255, 255, 0.35);
|
|
|
- transition: background 0.3s ease;
|
|
|
- }
|
|
|
-
|
|
|
- &.status-overdue::before {
|
|
|
- background: #dc2626;
|
|
|
- }
|
|
|
-
|
|
|
- &.status-urgent::before {
|
|
|
- background: #f97316;
|
|
|
- }
|
|
|
-
|
|
|
- &.status-warning::before {
|
|
|
- background: #facc15;
|
|
|
- }
|
|
|
-
|
|
|
- &.status-normal::before {
|
|
|
- background: #22c55e;
|
|
|
- }
|
|
|
-
|
|
|
- &.status-stalled::before {
|
|
|
- background: #7c3aed;
|
|
|
+ display: none; // Remove the top gloss effect
|
|
|
}
|
|
|
|
|
|
&:hover {
|
|
|
- opacity: 1;
|
|
|
- transform: translateY(-50%) scale(1.01);
|
|
|
- box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
|
|
|
+ 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: 8px;
|
|
|
- transition: left 0.3s ease, width 0.3s ease;
|
|
|
- opacity: 0.7;
|
|
|
- z-index: 5;
|
|
|
+ border-radius: 5px;
|
|
|
+ background: rgba(0,0,0,0.05); // Subtle darkening for progress area
|
|
|
|
|
|
.progress-fill {
|
|
|
- position: absolute;
|
|
|
- top: 0;
|
|
|
- left: 0;
|
|
|
- bottom: 0;
|
|
|
- right: 0;
|
|
|
- border-radius: 8px;
|
|
|
- transition: background 0.3s ease;
|
|
|
- box-shadow: inset 0 -8px 12px rgba(0, 0, 0, 0.05);
|
|
|
- opacity: 0.9;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- overflow: hidden;
|
|
|
+ background: rgba(0,0,0,0.15) !important; // Darker overlay for completion
|
|
|
+ box-shadow: none;
|
|
|
|
|
|
.progress-text {
|
|
|
- font-size: 12px;
|
|
|
+ font-size: 11px;
|
|
|
+ color: #374151; // Darker text for contrast
|
|
|
+ text-shadow: none;
|
|
|
font-weight: 700;
|
|
|
- color: #ffffff;
|
|
|
- text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
|
|
|
- letter-spacing: 0.3px;
|
|
|
- white-space: nowrap;
|
|
|
- pointer-events: none;
|
|
|
- opacity: 0.95;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-// 任务完成度标记
|
|
|
+// 任务完成度标记 - 简化
|
|
|
.completion-marker {
|
|
|
- position: absolute;
|
|
|
- top: -40px;
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- align-items: center;
|
|
|
- gap: 6px;
|
|
|
- transform: translateX(-50%);
|
|
|
- pointer-events: none;
|
|
|
+ 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;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
-.progress-marker {
|
|
|
+// 今日标记线 - 修复版
|
|
|
+.today-line {
|
|
|
position: absolute;
|
|
|
- top: -40px;
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- align-items: center;
|
|
|
- gap: 6px;
|
|
|
- transform: translateX(-50%);
|
|
|
+ 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
|
|
|
}
|
|
|
|
|
|
-.marker-label {
|
|
|
- color: #ffffff;
|
|
|
- font-size: 11px;
|
|
|
- font-weight: 700;
|
|
|
- padding: 3px 10px;
|
|
|
- border-radius: 999px;
|
|
|
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
|
|
|
- letter-spacing: 0.5px;
|
|
|
- white-space: nowrap;
|
|
|
+.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);
|
|
|
}
|
|
|
|
|
|
-.marker-dot {
|
|
|
- width: 12px;
|
|
|
- height: 12px;
|
|
|
+.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 3px 10px rgba(0, 0, 0, 0.3);
|
|
|
+ box-shadow: 0 0 0 1px #ef4444;
|
|
|
+ animation: none;
|
|
|
}
|
|
|
|
|
|
-// 事件标记
|
|
|
-.event-marker {
|
|
|
+.today-label {
|
|
|
position: absolute;
|
|
|
- top: 50%;
|
|
|
- transform: translateY(-50%);
|
|
|
- width: 28px;
|
|
|
- height: 28px;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- font-size: 20px;
|
|
|
+ top: -35px;
|
|
|
+ left: 0;
|
|
|
+ transform: translateX(-50%);
|
|
|
+ background: #ef4444;
|
|
|
color: #ffffff;
|
|
|
- border-radius: 50%;
|
|
|
- cursor: pointer;
|
|
|
- transition: all 0.2s;
|
|
|
- z-index: 10;
|
|
|
- box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
|
|
|
- border: 2px solid rgba(255, 255, 255, 0.9);
|
|
|
-
|
|
|
- &.start {
|
|
|
- font-size: 16px;
|
|
|
- width: 24px;
|
|
|
- height: 24px;
|
|
|
- }
|
|
|
-
|
|
|
- &.review {
|
|
|
- font-size: 24px;
|
|
|
- width: 40px;
|
|
|
- height: 40px;
|
|
|
- border-radius: 50%;
|
|
|
- // 🔥 高亮显示:使用金黄色渐变背景和脉冲动画
|
|
|
- background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%) !important;
|
|
|
- border: 3px solid #fef3c7;
|
|
|
- box-shadow: 0 0 25px rgba(245, 158, 11, 0.8), 0 4px 15px rgba(0, 0, 0, 0.3);
|
|
|
- animation: pulse-highlight 2s ease-in-out infinite;
|
|
|
- z-index: 15; // 比其他事件更高的层级
|
|
|
-
|
|
|
- &:hover {
|
|
|
- transform: translateY(-50%) scale(1.5);
|
|
|
- box-shadow: 0 0 35px rgba(245, 158, 11, 1), 0 6px 20px rgba(0, 0, 0, 0.4);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- &.delivery {
|
|
|
- font-size: 22px;
|
|
|
- width: 30px;
|
|
|
- height: 30px;
|
|
|
- border-radius: 4px;
|
|
|
- transform: translateY(-50%) rotate(45deg);
|
|
|
-
|
|
|
- &:hover {
|
|
|
- transform: translateY(-50%) rotate(45deg) scale(1.3);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- &.blink {
|
|
|
- animation: blink 1s infinite;
|
|
|
- }
|
|
|
-
|
|
|
- &.phase-deadline {
|
|
|
- font-size: 14px; // 调整字体大小使其在小圆圈中居中
|
|
|
- font-weight: bold;
|
|
|
- width: 28px;
|
|
|
- height: 28px;
|
|
|
- border-radius: 50%;
|
|
|
- // background 会由 [style.background] 动态设置
|
|
|
- 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;
|
|
|
}
|
|
|
+}
|
|
|
|
|
|
- &:hover {
|
|
|
- transform: translateY(-50%) scale(1.4);
|
|
|
- z-index: 20;
|
|
|
- box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
|
|
|
- }
|
|
|
+// 移除之前的复杂样式
|
|
|
+.space-deliverable-badge, .priority-badge {
|
|
|
+ display: none; // We moved these or restyled them
|
|
|
}
|
|
|
|
|
|
// 动画
|