|
@@ -1,6 +1,6 @@
|
|
|
/* 调试样式文件 - 增强版本,确保布局正确显示 */
|
|
|
|
|
|
-@use '../ios-theme.scss' as *;
|
|
|
+@import '../../../../styles/_variables';
|
|
|
|
|
|
/* 重置所有可能冲突的样式 - 使用最高优先级 */
|
|
|
* {
|
|
@@ -33,6 +33,15 @@
|
|
|
width: 100% !important;
|
|
|
padding: 0 !important;
|
|
|
margin: 0 !important;
|
|
|
+
|
|
|
+ /* 减少标签页内容的垂直间距 */
|
|
|
+ > * {
|
|
|
+ margin-bottom: 12px !important; /* 统一减少子元素的底部间距 */
|
|
|
+
|
|
|
+ &:last-child {
|
|
|
+ margin-bottom: 0 !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/* 重置项目进度标签页内容 */
|
|
@@ -40,12 +49,21 @@
|
|
|
width: 100% !important;
|
|
|
padding: 0 !important;
|
|
|
margin: 0 !important;
|
|
|
+
|
|
|
+ /* 减少进度标签页内容的垂直间距 */
|
|
|
+ > * {
|
|
|
+ margin-bottom: 12px !important; /* 统一减少子元素的底部间距 */
|
|
|
+
|
|
|
+ &:last-child {
|
|
|
+ margin-bottom: 0 !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/* 上传区域样式优化 - 确保在并排显示时内容清晰可读 */
|
|
|
.upload-section {
|
|
|
/* 基础样式保持不变 */
|
|
|
- margin-bottom: 16px !important;
|
|
|
+ margin-bottom: 12px !important; /* 从16px减少到12px */
|
|
|
|
|
|
/* 针对四个卡片并排时的特殊优化 */
|
|
|
.stage-progress-container:has(.vertical-stage-block:nth-child(4):last-child) & {
|
|
@@ -187,14 +205,14 @@
|
|
|
.left-column .project-info-card .info-grid {
|
|
|
display: grid !important;
|
|
|
grid-template-columns: 1fr 1fr !important;
|
|
|
- gap: 8px !important;
|
|
|
- margin-bottom: 12px !important;
|
|
|
+ gap: 6px !important; // 从8px减少到6px
|
|
|
+ margin-bottom: 8px !important; // 从12px减少到8px
|
|
|
}
|
|
|
|
|
|
.left-column .project-info-card .info-item {
|
|
|
display: flex !important;
|
|
|
flex-direction: column !important;
|
|
|
- padding: 8px !important;
|
|
|
+ padding: 6px !important; // 从8px减少到6px
|
|
|
background: #f8f9fa !important;
|
|
|
border-radius: 6px !important;
|
|
|
border: 1px solid #e9ecef !important;
|
|
@@ -204,7 +222,7 @@
|
|
|
.left-column .project-info-card .info-item label {
|
|
|
font-weight: 500 !important;
|
|
|
color: #6c757d !important;
|
|
|
- margin-bottom: 4px !important;
|
|
|
+ margin-bottom: 2px !important; // 从4px减少到2px
|
|
|
font-size: 11px !important;
|
|
|
}
|
|
|
|
|
@@ -215,18 +233,18 @@
|
|
|
}
|
|
|
|
|
|
.left-column .project-info-card .tags-container {
|
|
|
- margin-top: 8px !important;
|
|
|
+ margin-top: 6px !important; // 从8px减少到6px
|
|
|
}
|
|
|
|
|
|
.left-column .project-info-card .tag-section {
|
|
|
- margin-bottom: 8px !important;
|
|
|
+ margin-bottom: 6px !important; // 从8px减少到6px
|
|
|
}
|
|
|
|
|
|
.left-column .project-info-card .tag-section h3 {
|
|
|
font-size: 12px !important;
|
|
|
font-weight: 600 !important;
|
|
|
color: #495057 !important;
|
|
|
- margin-bottom: 6px !important;
|
|
|
+ margin-bottom: 4px !important; // 从6px减少到4px
|
|
|
}
|
|
|
|
|
|
.left-column .project-info-card .tags .tag {
|
|
@@ -346,24 +364,41 @@
|
|
|
.delivery-stage-header .dot.completed { background: $ios-success; }
|
|
|
.delivery-stage-header .dot.active { background: $ios-primary; }
|
|
|
|
|
|
-.delivery-stage-body { display: flex; flex-direction: column; gap: $ios-spacing-md; }
|
|
|
+/* 优化垂直间距和内边距 - 减少空白 */
|
|
|
+.delivery-stage-body {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ gap: $ios-spacing-xs; // 从 $ios-spacing-sm 减少到 $ios-spacing-xs
|
|
|
+}
|
|
|
|
|
|
-/* 统一纵向内容容器 */
|
|
|
-.section-vertical { display: flex; flex-direction: column; gap: $ios-spacing-lg; }
|
|
|
+/* 减少垂直区域间距 */
|
|
|
+.section-vertical {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ gap: $ios-spacing-sm; // 从 $ios-spacing-md 减少到 $ios-spacing-sm
|
|
|
+}
|
|
|
|
|
|
+/* 减少垂直阶段块的内边距 */
|
|
|
.vertical-stage-block {
|
|
|
- background: $ios-background-secondary;
|
|
|
- border: 1px solid $ios-border;
|
|
|
- border-radius: $ios-radius-md;
|
|
|
- padding: $ios-spacing-md;
|
|
|
+ border-radius: 8px; // 替换未定义的变量为固定值
|
|
|
+ background: white; // 替换未定义的变量为固定值
|
|
|
+ padding: 10px; // 进一步减少内边距,从 $ios-spacing-xs 减少到固定值10px
|
|
|
+ margin-bottom: 10px; // 添加底部间距控制
|
|
|
}
|
|
|
|
|
|
-.vertical-stage-header { display: flex; align-items: center; gap: $ios-spacing-sm; margin-bottom: $ios-spacing-sm; }
|
|
|
-.vertical-stage-header .dot { width: 10px; height: 10px; border-radius: 50%; background: $ios-border; }
|
|
|
-.vertical-stage-header .dot.completed { background: $ios-success; }
|
|
|
-.vertical-stage-header .dot.active { background: $ios-primary; }
|
|
|
+.vertical-stage-header {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 8px; // 从 $ios-spacing-xs 减少到固定值8px
|
|
|
+ margin-bottom: 8px; // 从 $ios-spacing-xs 减少到固定值8px
|
|
|
+}
|
|
|
|
|
|
-.vertical-stage-body { display: flex; flex-direction: column; gap: $ios-spacing-md; }
|
|
|
+/* 减少垂直阶段主体间距 */
|
|
|
+.vertical-stage-body {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ gap: 10px; // 从 $ios-spacing-sm 减少到固定值10px
|
|
|
+}
|
|
|
|
|
|
/* 缩略图列表适配到新容器 */
|
|
|
.section-panel .thumb-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: $ios-spacing-md; }
|
|
@@ -422,8 +457,8 @@
|
|
|
display: flex !important;
|
|
|
justify-content: space-between !important;
|
|
|
align-items: center !important;
|
|
|
- margin-bottom: 16px !important;
|
|
|
- padding-bottom: 12px !important;
|
|
|
+ margin-bottom: 12px !important; // 从16px减少到12px
|
|
|
+ padding-bottom: 8px !important; // 从12px减少到8px
|
|
|
border-bottom: 1px solid #f0f0f0 !important;
|
|
|
}
|
|
|
|
|
@@ -514,7 +549,7 @@
|
|
|
/* 阶段卡片横向排列(按板块的阶段数量自适应列数) */
|
|
|
.stage-progress-container {
|
|
|
display: grid !important;
|
|
|
- gap: 12px !important;
|
|
|
+ gap: 8px !important; // 从10px进一步减少到8px
|
|
|
align-items: stretch !important; // 保证同一行的卡片等高
|
|
|
margin-top: 0 !important; // 删除标题后,移除上边距以优化空间利用
|
|
|
|
|
@@ -526,25 +561,26 @@
|
|
|
/* 笔记本端适配(1366px及以上) */
|
|
|
@media (min-width: 1366px) {
|
|
|
grid-template-columns: repeat(4, 1fr) !important;
|
|
|
- gap: 16px !important;
|
|
|
+ gap: 12px !important; // 从16px减少到12px
|
|
|
}
|
|
|
|
|
|
/* 24寸PC端适配(1920px及以上) */
|
|
|
@media (min-width: 1920px) {
|
|
|
grid-template-columns: repeat(4, 1fr) !important;
|
|
|
- gap: 20px !important;
|
|
|
+ gap: 16px !important; // 从20px减少到16px
|
|
|
}
|
|
|
|
|
|
/* 较小屏幕的降级处理(小于1366px) */
|
|
|
@media (max-width: 1365px) {
|
|
|
grid-template-columns: repeat(2, 1fr) !important;
|
|
|
- gap: 12px !important;
|
|
|
+ gap: 10px !important; // 从12px减少到10px
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* 其他情况保持原有的自适应布局 */
|
|
|
&:not(:has(.vertical-stage-block:nth-child(4):last-child)) {
|
|
|
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
|
|
|
+ gap: 10px !important; // 添加间距控制
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -552,7 +588,7 @@
|
|
|
display: flex !important;
|
|
|
flex-direction: column !important;
|
|
|
height: 100% !important;
|
|
|
- padding: 12px !important;
|
|
|
+ padding: 8px !important; // 从10px进一步减少到8px
|
|
|
background: white !important;
|
|
|
border-radius: 8px !important;
|
|
|
border: 1px solid #e9ecef !important;
|
|
@@ -565,20 +601,20 @@
|
|
|
.stage-progress-container:has(.vertical-stage-block:nth-child(4):last-child) & {
|
|
|
/* 笔记本端和PC端的内容优化 */
|
|
|
@media (min-width: 1366px) {
|
|
|
- padding: 16px !important;
|
|
|
- min-height: 300px !important; /* 确保卡片有足够高度 */
|
|
|
+ padding: 12px !important; // 从16px减少到12px
|
|
|
+ min-height: 280px !important; /* 从300px减少到280px */
|
|
|
}
|
|
|
|
|
|
/* 24寸PC端的内容优化 */
|
|
|
@media (min-width: 1920px) {
|
|
|
- padding: 20px !important;
|
|
|
- min-height: 320px !important;
|
|
|
+ padding: 16px !important; // 从20px减少到16px
|
|
|
+ min-height: 300px !important; // 从320px减少到300px
|
|
|
}
|
|
|
|
|
|
/* 较小屏幕时保持紧凑布局 */
|
|
|
@media (max-width: 1365px) {
|
|
|
- padding: 12px !important;
|
|
|
- min-height: 280px !important;
|
|
|
+ padding: 10px !important; // 从12px减少到10px
|
|
|
+ min-height: 260px !important; // 从280px减少到260px
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -670,4 +706,34 @@
|
|
|
.vertical-stage-block[id="stage-requirements-talk"].active .dot {
|
|
|
background: #ff4d4f !important;
|
|
|
box-shadow: 0 0 0 4px rgba(255, 77, 79, 0.2) !important;
|
|
|
+}
|
|
|
+/* 新增:三板块垂直高度填充 —— 客户信息、需求沟通、方案确认 */
|
|
|
+/* 让主布局的两列在同一行内等高伸展 */
|
|
|
+.progress-tab-content > .main-content-layout {
|
|
|
+ align-items: stretch !important;
|
|
|
+}
|
|
|
+
|
|
|
+/* 客户信息卡片设定统一的最低高度以填补左侧空白 */
|
|
|
+.left-column .project-info-card.card {
|
|
|
+ min-height: 420px !important;
|
|
|
+}
|
|
|
+
|
|
|
+/* 当右侧仅展示 需求沟通 + 方案确认 两个阶段时,强制两列并排,设定统一最低高度 */
|
|
|
+.right-column .stage-progress-container:has(#stage-requirements-talk):has(#stage-proposal-confirm) {
|
|
|
+ grid-template-columns: repeat(2, 1fr) !important;
|
|
|
+}
|
|
|
+
|
|
|
+.right-column .stage-progress-container:has(#stage-requirements-talk):has(#stage-proposal-confirm) .vertical-stage-block {
|
|
|
+ min-height: 420px !important;
|
|
|
+}
|
|
|
+
|
|
|
+/* 根据屏幕尺寸微调高度,保证在大屏下更饱满,在小屏下不压迫 */
|
|
|
+@media (min-width: 1920px) {
|
|
|
+ .left-column .project-info-card.card { min-height: 480px !important; }
|
|
|
+ .right-column .stage-progress-container:has(#stage-requirements-talk):has(#stage-proposal-confirm) .vertical-stage-block { min-height: 480px !important; }
|
|
|
+}
|
|
|
+
|
|
|
+@media (max-width: 1365px) {
|
|
|
+ .left-column .project-info-card.card { min-height: 360px !important; }
|
|
|
+ .right-column .stage-progress-container:has(#stage-requirements-talk):has(#stage-proposal-confirm) .vertical-stage-block { min-height: 360px !important; }
|
|
|
}
|