- 卡片头部简化为单行: 视图标签 | 筛选:状态/月份/季度下拉 + 新增按钮 - 状态筛选从标签按钮改为统一风格下拉框(自定义SVG箭头) - 下拉框字体/高度与视图标签 btn-sm 完全对齐 - 表格增加状态列(已签约/流程中/待签约,分色显示) - 季度视图 p-4 padding 修复
1219 lines
25 KiB
CSS
1219 lines
25 KiB
CSS
body {
|
||
min-width: 1180px;
|
||
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
|
||
}
|
||
|
||
.topbar {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
}
|
||
|
||
/* 工作台侧边栏 */
|
||
.workspace-nav-item {
|
||
width: 52px;
|
||
height: 52px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
border-radius: 14px;
|
||
color: #94a3b8;
|
||
cursor: pointer;
|
||
transition: all 0.15s;
|
||
margin-bottom: 2px;
|
||
}
|
||
.workspace-nav-item:hover {
|
||
color: #e2e8f0;
|
||
background: rgba(255,255,255,0.08);
|
||
}
|
||
.workspace-nav-item.active {
|
||
color: #60a5fa;
|
||
background: rgba(96,165,250,0.15);
|
||
}
|
||
|
||
.sidebar-tab {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
padding: 8px 4px;
|
||
border-radius: 8px;
|
||
cursor: pointer;
|
||
color: #94a3b8;
|
||
transition: all 0.15s ease;
|
||
width: 100%;
|
||
}
|
||
|
||
.sidebar-tab:hover {
|
||
background: #1e293b;
|
||
color: #cbd5e1;
|
||
}
|
||
|
||
.sidebar-tab.active {
|
||
background: #1e293b;
|
||
color: #60a5fa;
|
||
}
|
||
|
||
.sidebar-tab.active i {
|
||
color: #60a5fa;
|
||
}
|
||
|
||
.panel {
|
||
display: none;
|
||
}
|
||
|
||
.panel.active {
|
||
display: block;
|
||
}
|
||
|
||
/* 财务模态框 Tab */
|
||
.finance-tabs {
|
||
display: flex;
|
||
gap: 0;
|
||
border-bottom: 1px solid #e2e8f0;
|
||
padding: 0 32px;
|
||
background: #fff;
|
||
}
|
||
|
||
.finance-tab {
|
||
padding: 10px 20px;
|
||
font-size: 13px;
|
||
font-weight: 500;
|
||
color: #64748b;
|
||
background: none;
|
||
border: none;
|
||
border-bottom: 2px solid transparent;
|
||
cursor: pointer;
|
||
transition: all 0.15s;
|
||
}
|
||
|
||
.finance-tab:hover { color: #1e293b; }
|
||
|
||
.finance-tab.active {
|
||
color: #1d4ed8;
|
||
border-bottom-color: #1d4ed8;
|
||
}
|
||
|
||
/* 详情弹窗固定高度,tab 切换不抖动 */
|
||
#financeModal > div {
|
||
height: 650px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
#financeModal .finance-tabs { flex-shrink: 0; }
|
||
#financeModal form {
|
||
flex: 1;
|
||
min-height: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
overflow: hidden;
|
||
}
|
||
#financeModal .finance-tab-body {
|
||
flex: 1;
|
||
min-height: 0;
|
||
overflow-y: auto;
|
||
padding: 32px;
|
||
}
|
||
#financeModal .finance-form-actions {
|
||
flex-shrink: 0;
|
||
background: #fff;
|
||
padding: 12px 32px 8px;
|
||
border-top: 1px solid #f1f5f9;
|
||
}
|
||
|
||
/* 项目统一卡片布局 */
|
||
.project-board {
|
||
background: #fff;
|
||
border: 1px solid #e5e7eb;
|
||
border-radius: 12px;
|
||
overflow: hidden;
|
||
display: flex;
|
||
flex-direction: column;
|
||
height: calc(100vh - 190px);
|
||
}
|
||
|
||
/* 项目树头部 */
|
||
.project-tree-hd {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding: 8px 12px;
|
||
font-size: 13px;
|
||
font-weight: 600;
|
||
color: #374151;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.project-search {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
background: #fff;
|
||
border: 1px solid #d1d5db;
|
||
border-radius: 8px;
|
||
padding: 5px 10px;
|
||
font-size: 13px;
|
||
}
|
||
|
||
.project-search i {
|
||
color: #9ca3af;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.project-search input {
|
||
border: none;
|
||
outline: none;
|
||
font-size: 13px;
|
||
color: #374151;
|
||
width: 160px;
|
||
background: transparent;
|
||
}
|
||
|
||
.project-search input::placeholder { color: #9ca3af; }
|
||
|
||
.project-board-body {
|
||
display: flex;
|
||
flex: 1;
|
||
overflow: hidden;
|
||
}
|
||
|
||
/* 项目树 */
|
||
.project-tree {
|
||
width: 200px;
|
||
flex-shrink: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
|
||
.project-tree-list {
|
||
flex: 1;
|
||
overflow-y: auto;
|
||
padding: 4px 0;
|
||
}
|
||
|
||
.project-tree-node {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
padding: 8px 16px;
|
||
font-size: 13px;
|
||
color: #334155;
|
||
cursor: pointer;
|
||
transition: background 0.1s;
|
||
border-left: 3px solid transparent;
|
||
}
|
||
|
||
.project-tree-node:hover {
|
||
background: #f1f5f9;
|
||
}
|
||
|
||
.project-tree-node.active {
|
||
background: #eff6ff;
|
||
border-left-color: #3b82f6;
|
||
color: #1d4ed8;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.project-tree-icon {
|
||
flex-shrink: 0;
|
||
display: flex;
|
||
align-items: center;
|
||
color: #94a3b8;
|
||
}
|
||
|
||
.project-tree-name {
|
||
flex: 1;
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.project-tree-empty {
|
||
padding: 20px 16px;
|
||
font-size: 13px;
|
||
color: #94a3b8;
|
||
text-align: center;
|
||
}
|
||
|
||
/* 右键菜单 */
|
||
.project-context-menu {
|
||
position: fixed;
|
||
z-index: 100;
|
||
background: #fff;
|
||
border: 1px solid #e2e8f0;
|
||
border-radius: 8px;
|
||
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
|
||
padding: 4px 0;
|
||
min-width: 140px;
|
||
}
|
||
|
||
.project-context-item {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
padding: 7px 12px;
|
||
font-size: 12px;
|
||
color: #334155;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.project-context-item:hover {
|
||
background: #f1f5f9;
|
||
}
|
||
|
||
.project-empty {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
height: 100%;
|
||
color: #94a3b8;
|
||
font-size: 14px;
|
||
}
|
||
|
||
/* 台账任务流(Plane 风格) */
|
||
.task-feed {
|
||
flex: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
overflow-y: auto;
|
||
min-width: 0;
|
||
border-left: 1px solid #edf2f7;
|
||
}
|
||
|
||
.task-feed-hd {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding: 8px 16px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.task-feed-body {
|
||
flex: 1;
|
||
overflow-y: auto;
|
||
padding: 0;
|
||
}
|
||
|
||
.task-section {
|
||
border-bottom: 1px solid #edf2f7;
|
||
border-top: 1px solid #edf2f7;
|
||
}
|
||
.task-section:first-child { border-top: none; }
|
||
|
||
.task-section-hd {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
padding: 10px 20px;
|
||
background: #fafbfc;
|
||
cursor: pointer;
|
||
user-select: none;
|
||
}
|
||
|
||
.task-section-toggle {
|
||
display: flex;
|
||
align-items: center;
|
||
color: #9ca3af;
|
||
transition: transform 0.15s;
|
||
}
|
||
|
||
.task-section-list-wrap.collapsed {
|
||
display: none;
|
||
}
|
||
|
||
.task-section-icon {
|
||
display: flex;
|
||
align-items: center;
|
||
color: #9ca3af;
|
||
}
|
||
|
||
.task-section-label {
|
||
font-size: 14px;
|
||
font-weight: 600;
|
||
color: #111827;
|
||
}
|
||
|
||
.task-section-n {
|
||
background: #e5e7eb;
|
||
color: #6b7280;
|
||
font-size: 12px;
|
||
font-weight: 500;
|
||
padding: 2px 8px;
|
||
border-radius: 10px;
|
||
min-width: 20px;
|
||
text-align: center;
|
||
}
|
||
|
||
.task-section-list {
|
||
/* flat list, no card */
|
||
}
|
||
|
||
.task-item {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
height: 60px;
|
||
padding: 9px 20px;
|
||
cursor: pointer;
|
||
transition: background 0.1s;
|
||
border-bottom: 1px solid #f1f5f9;
|
||
}
|
||
.task-item:last-child { border-bottom: none; }
|
||
|
||
.task-item:hover {
|
||
background: #f9fafb;
|
||
}
|
||
|
||
.task-item.task-done .task-title {
|
||
text-decoration: line-through;
|
||
color: #9ca3af;
|
||
}
|
||
|
||
/* 状态徽章 */
|
||
.task-status-badge {
|
||
flex-shrink: 0;
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
padding: 2px 8px;
|
||
border-radius: 10px;
|
||
cursor: pointer;
|
||
white-space: nowrap;
|
||
transition: background 0.15s;
|
||
}
|
||
.status-未开始 { background: #f1f5f9; color: #64748b; }
|
||
.status-进行中 { background: #dbeafe; color: #1d4ed8; }
|
||
.status-验收中 { background: #fef3c7; color: #92400e; }
|
||
.status-已结束 { background: #dcfce7; color: #166534; }
|
||
/* 产品版本状态 */
|
||
.status-规划中 { background: #f1f5f9; color: #64748b; }
|
||
.status-开发中 { background: #dbeafe; color: #1d4ed8; }
|
||
.status-测试中 { background: #fef3c7; color: #92400e; }
|
||
.status-已上线 { background: #dcfce7; color: #166534; }
|
||
.status-已取消 { background: #f1f5f9; color: #94a3b8; }
|
||
.status-badge {
|
||
flex-shrink: 0; display: inline-flex; align-items: center;
|
||
font-size: 12px; font-weight: 500; padding: 2px 10px;
|
||
border-radius: 10px; cursor: pointer; white-space: nowrap;
|
||
transition: background 0.15s;
|
||
}
|
||
|
||
/* 优先级底色 */
|
||
.task-p0 { background: #fef2f2; }
|
||
.task-p0:hover { background: #fee2e2; }
|
||
.task-p1 { background: #fffbeb; }
|
||
.task-p1:hover { background: #fef3c7; }
|
||
|
||
.task-priority-badge {
|
||
flex-shrink: 0;
|
||
font-size: 11px;
|
||
font-weight: 700;
|
||
padding: 1px 6px;
|
||
border-radius: 4px;
|
||
}
|
||
.priority-p0 { background: #fecaca; color: #991b1b; }
|
||
.priority-p1 { background: #fde68a; color: #92400e; }
|
||
.priority-p2 { background: #e2e8f0; color: #475569; }
|
||
.priority-p3 { background: #f1f5f9; color: #94a3b8; }
|
||
|
||
.task-check {
|
||
flex-shrink: 0;
|
||
display: flex;
|
||
align-items: center;
|
||
color: #9ca3af;
|
||
cursor: pointer;
|
||
}
|
||
.task-check:hover {
|
||
color: #3b82f6;
|
||
}
|
||
|
||
.task-grip {
|
||
flex-shrink: 0;
|
||
color: #d1d5db;
|
||
cursor: grab;
|
||
padding: 2px 0;
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
|
||
.task-content {
|
||
flex: 1;
|
||
min-width: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 1px;
|
||
}
|
||
.task-item.task-detail .task-content { flex-direction: row; align-items: center; gap: 8px; }
|
||
|
||
.task-feed .task-title {
|
||
font-weight: 400;
|
||
color: #1f2937;
|
||
font-size: 12px;
|
||
}
|
||
.task-item.task-detail .task-title { font-weight: 500; white-space: nowrap; flex-shrink: 0; }
|
||
|
||
.task-desc {
|
||
font-size: 12px;
|
||
color: #9ca3af;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
max-width: 360px;
|
||
}
|
||
|
||
.task-meta {
|
||
flex-shrink: 0;
|
||
font-size: 12px;
|
||
color: #6b7280;
|
||
min-width: 56px;
|
||
text-align: right;
|
||
}
|
||
|
||
.task-blocker {
|
||
display: block;
|
||
font-size: 12px;
|
||
color: #ef4444;
|
||
margin-top: 2px;
|
||
}
|
||
.task-item.task-detail .task-blocker {
|
||
display: inline;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
max-width: 240px;
|
||
margin-top: 0;
|
||
flex-shrink: 1;
|
||
min-width: 0;
|
||
}
|
||
|
||
.task-empty {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding: 60px 20px;
|
||
color: #9ca3af;
|
||
font-size: 13px;
|
||
}
|
||
|
||
/* 业务方案列表项 */
|
||
.proposal-item {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
padding: 10px 20px;
|
||
border-bottom: 1px solid #f3f4f6;
|
||
cursor: pointer;
|
||
font-size: 13px;
|
||
transition: background 0.1s;
|
||
}
|
||
|
||
/* 上传任务列表 */
|
||
#uploadTaskList {
|
||
display: none;
|
||
padding: 12px 20px;
|
||
border-top: 1px solid #e2e8f0;
|
||
}
|
||
.upload-task {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
padding: 6px 0;
|
||
font-size: 12px;
|
||
}
|
||
.upload-task-name {
|
||
flex: 1;
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
color: #334155;
|
||
}
|
||
.upload-task-bar {
|
||
width: 80px;
|
||
height: 4px;
|
||
background: #e5e7eb;
|
||
border-radius: 2px;
|
||
overflow: hidden;
|
||
flex-shrink: 0;
|
||
}
|
||
.upload-task-fill {
|
||
height: 100%;
|
||
background: #3b82f6;
|
||
border-radius: 2px;
|
||
transition: width 0.2s;
|
||
}
|
||
.upload-task-pct {
|
||
width: 32px;
|
||
text-align: right;
|
||
color: #6b7280;
|
||
font-size: 11px;
|
||
flex-shrink: 0;
|
||
}
|
||
.upload-task-cancel {
|
||
flex-shrink: 0;
|
||
width: 20px;
|
||
height: 20px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
border: none;
|
||
background: none;
|
||
color: #9ca3af;
|
||
cursor: pointer;
|
||
border-radius: 4px;
|
||
}
|
||
.upload-task-cancel:hover { color: #ef4444; background: #fef2f2; }
|
||
.proposal-item:hover { background: #f9fafb; }
|
||
|
||
.proposal-customer {
|
||
flex: 0 0 140px;
|
||
font-weight: 500;
|
||
color: #1f2937;
|
||
}
|
||
|
||
.proposal-notes {
|
||
flex: 1;
|
||
color: #6b7280;
|
||
font-size: 12px;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
min-width: 0;
|
||
}
|
||
|
||
.proposal-files {
|
||
flex-shrink: 0;
|
||
font-size: 12px;
|
||
color: #9ca3af;
|
||
}
|
||
|
||
.card {
|
||
background: white;
|
||
border: 1px solid #e2e8f0;
|
||
border-radius: 8px;
|
||
}
|
||
|
||
.metric-card {
|
||
background: white;
|
||
border: 1px solid #e2e8f0;
|
||
border-radius: 8px;
|
||
padding: 16px;
|
||
text-align: left;
|
||
transition: border-color 0.2s ease;
|
||
}
|
||
|
||
.metric-card:hover {
|
||
border-color: #93c5fd;
|
||
}
|
||
|
||
.badge {
|
||
border-radius: 999px;
|
||
display: inline-flex;
|
||
font-size: 12px;
|
||
font-weight: 700;
|
||
line-height: 1;
|
||
padding: 6px 8px;
|
||
}
|
||
|
||
.badge-red { background: #fef2f2; color: #b91c1c; }
|
||
.badge-amber { background: #fffbeb; color: #b45309; }
|
||
.badge-green { background: #ecfdf5; color: #047857; }
|
||
.badge-blue { background: #eff6ff; color: #1d4ed8; }
|
||
.badge-slate { background: #f1f5f9; color: #475569; }
|
||
|
||
.btn {
|
||
align-items: center;
|
||
border-radius: 6px;
|
||
display: inline-flex;
|
||
font-size: 14px;
|
||
font-weight: 700;
|
||
gap: 8px;
|
||
justify-content: center;
|
||
min-height: 38px;
|
||
padding: 8px 12px;
|
||
}
|
||
|
||
[data-lucide] {
|
||
height: 16px;
|
||
stroke-width: 2;
|
||
width: 16px;
|
||
}
|
||
|
||
.btn-primary { background: #1d4ed8; color: white; }
|
||
.btn-primary:hover { background: #1e40af; }
|
||
.btn-ghost { background: white; border: 1px solid #e2e8f0; color: #334155; }
|
||
.btn-ghost:hover { background: #f8fafc; }
|
||
|
||
/* ===== 表单控件统一标准 ===== */
|
||
input,
|
||
select,
|
||
textarea {
|
||
border: 1px solid #e2e8f0;
|
||
border-radius: 6px;
|
||
padding: 8px 12px;
|
||
font-size: 13px;
|
||
color: #1e293b;
|
||
background: #fff;
|
||
outline: none;
|
||
transition: border-color 0.15s, box-shadow 0.15s;
|
||
height: 38px;
|
||
box-sizing: border-box;
|
||
}
|
||
select {
|
||
appearance: none;
|
||
-webkit-appearance: none;
|
||
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
|
||
background-repeat: no-repeat;
|
||
background-position: right 10px center;
|
||
padding-right: 32px;
|
||
}
|
||
input:focus,
|
||
select:focus,
|
||
textarea:focus {
|
||
border-color: #2563eb;
|
||
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
|
||
}
|
||
input::placeholder,
|
||
textarea::placeholder { color: #cbd5e1; }
|
||
input:disabled,
|
||
select:disabled,
|
||
textarea:disabled { background: #f8fafc; cursor: not-allowed; }
|
||
|
||
textarea { min-height: 80px; height: auto; resize: vertical; }
|
||
|
||
/* 标准控件类 */
|
||
.form-ctrl {
|
||
display: block;
|
||
height: 38px;
|
||
width: 100%;
|
||
border: 1px solid #e2e8f0;
|
||
border-radius: 6px;
|
||
padding: 8px 12px;
|
||
font-size: 13px;
|
||
color: #1e293b;
|
||
background: #fff;
|
||
outline: none;
|
||
transition: border-color 0.15s, box-shadow 0.15s;
|
||
}
|
||
.form-ctrl:focus {
|
||
border-color: #2563eb;
|
||
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
|
||
}
|
||
.form-ctrl::placeholder { color: #cbd5e1; }
|
||
.form-ctrl:disabled { background: #f8fafc; cursor: not-allowed; }
|
||
|
||
/* 紧凑变体 */
|
||
.form-ctrl-sm {
|
||
padding: 5px 10px;
|
||
font-size: 12px;
|
||
height: 32px;
|
||
}
|
||
|
||
/* 产品表格内联日期选择器 */
|
||
.prod-date-input {
|
||
border: 1px solid transparent;
|
||
background: transparent;
|
||
font-size: 12px;
|
||
padding: 2px 4px;
|
||
border-radius: 4px;
|
||
width: 110px;
|
||
cursor: pointer;
|
||
color: #64748b;
|
||
}
|
||
.prod-date-input:hover {
|
||
border-color: #cbd5e1;
|
||
background: #f8fafc;
|
||
}
|
||
.prod-date-input:focus {
|
||
border-color: #3b82f6;
|
||
background: white;
|
||
outline: none;
|
||
}
|
||
|
||
table {
|
||
border-collapse: collapse;
|
||
width: 100%;
|
||
}
|
||
|
||
th,
|
||
td {
|
||
border-bottom: 1px solid #e2e8f0;
|
||
padding: 12px 14px;
|
||
text-align: left;
|
||
vertical-align: top;
|
||
}
|
||
|
||
th {
|
||
background: #f1f5f9;
|
||
color: #475569;
|
||
font-size: 13px;
|
||
font-weight: 800;
|
||
}
|
||
|
||
td {
|
||
font-size: 14px;
|
||
}
|
||
|
||
|
||
.btn-sm {
|
||
min-height: 30px;
|
||
padding: 5px 10px;
|
||
font-size: 12px;
|
||
}
|
||
|
||
.drawer {
|
||
background: rgba(15, 23, 42, 0.28);
|
||
display: none;
|
||
inset: 0;
|
||
justify-content: flex-end;
|
||
position: fixed;
|
||
z-index: 50;
|
||
}
|
||
|
||
.drawer.open {
|
||
display: flex;
|
||
}
|
||
|
||
.drawer-panel {
|
||
background: white;
|
||
box-shadow: -18px 0 45px rgba(15, 23, 42, 0.14);
|
||
height: 100vh;
|
||
overflow-y: auto;
|
||
width: 720px;
|
||
}
|
||
|
||
.file-link {
|
||
color: #1d4ed8;
|
||
font-size: 12px;
|
||
font-weight: 700;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.drawer-section-title {
|
||
color: #334155;
|
||
font-size: 13px;
|
||
font-weight: 700;
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
.drawer-fields {
|
||
display: grid;
|
||
gap: 1px;
|
||
}
|
||
|
||
.drawer-field {
|
||
align-items: start;
|
||
display: grid;
|
||
gap: 12px;
|
||
grid-template-columns: 148px minmax(0, 1fr);
|
||
padding: 5px 0;
|
||
}
|
||
|
||
.drawer-field-label {
|
||
align-items: center;
|
||
color: #64748b;
|
||
display: flex;
|
||
font-size: 13px;
|
||
font-weight: 500;
|
||
gap: 8px;
|
||
min-height: 30px;
|
||
}
|
||
|
||
.drawer-field-label [data-lucide] {
|
||
color: #94a3b8;
|
||
height: 15px;
|
||
width: 15px;
|
||
}
|
||
|
||
.drawer-field-control {
|
||
min-width: 0;
|
||
}
|
||
|
||
.activity-item {
|
||
background: #f8fafc;
|
||
border: 1px solid #e2e8f0;
|
||
border-radius: 7px;
|
||
display: flex;
|
||
font-size: 13px;
|
||
gap: 9px;
|
||
padding: 9px;
|
||
}
|
||
|
||
.activity-icon {
|
||
align-items: center;
|
||
background: #dbeafe;
|
||
border-radius: 999px;
|
||
color: #1d4ed8;
|
||
display: flex;
|
||
flex: 0 0 auto;
|
||
height: 24px;
|
||
justify-content: center;
|
||
width: 24px;
|
||
}
|
||
|
||
.activity-icon [data-lucide] {
|
||
height: 13px;
|
||
width: 13px;
|
||
}
|
||
|
||
.clickable-row {
|
||
cursor: pointer;
|
||
transition: background 0.15s;
|
||
}
|
||
.clickable-row:hover {
|
||
background: #f1f5f9;
|
||
}
|
||
|
||
.save-status {
|
||
color: #94a3b8;
|
||
font-size: 12px;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.save-status[data-tone="success"] {
|
||
color: #059669;
|
||
}
|
||
|
||
.save-status[data-tone="danger"] {
|
||
color: #dc2626;
|
||
}
|
||
|
||
.comment-box {
|
||
border: 1px solid #e2e8f0;
|
||
border-radius: 8px;
|
||
overflow: hidden;
|
||
background: white;
|
||
}
|
||
|
||
.comment-box:focus-within {
|
||
border-color: #93c5fd;
|
||
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
|
||
}
|
||
|
||
/* Squire editor */
|
||
.squire-toolbar {
|
||
align-items: center;
|
||
background: #f8fafc;
|
||
border-bottom: 1px solid #e2e8f0;
|
||
display: flex;
|
||
gap: 2px;
|
||
padding: 5px 6px;
|
||
}
|
||
|
||
.squire-btn {
|
||
align-items: center;
|
||
background: transparent;
|
||
border: none;
|
||
border-radius: 4px;
|
||
color: #475569;
|
||
cursor: pointer;
|
||
display: inline-flex;
|
||
height: 28px;
|
||
justify-content: center;
|
||
transition: background 0.15s;
|
||
width: 28px;
|
||
}
|
||
|
||
.squire-btn:hover {
|
||
background: #e2e8f0;
|
||
color: #0f172a;
|
||
}
|
||
|
||
.squire-btn [data-lucide] {
|
||
height: 15px;
|
||
width: 15px;
|
||
}
|
||
|
||
.squire-sep {
|
||
background: #e2e8f0;
|
||
display: inline-block;
|
||
height: 18px;
|
||
margin: 0 2px;
|
||
width: 1px;
|
||
}
|
||
|
||
.squire-editor {
|
||
border: 0;
|
||
font-size: 13px;
|
||
line-height: 1.55;
|
||
min-height: 80px;
|
||
padding: 10px 12px;
|
||
outline: none;
|
||
}
|
||
|
||
.squire-editor p {
|
||
margin: 0;
|
||
min-height: 1em;
|
||
}
|
||
|
||
.squire-editor ul,
|
||
.squire-editor ol {
|
||
list-style: revert;
|
||
padding-left: 24px;
|
||
margin: 4px 0;
|
||
}
|
||
.squire-editor ul {
|
||
list-style-type: disc;
|
||
}
|
||
.squire-editor ol {
|
||
list-style-type: decimal;
|
||
}
|
||
.squire-editor li {
|
||
margin: 2px 0;
|
||
}
|
||
|
||
.squire-editor blockquote {
|
||
border-left: 3px solid #e2e8f0;
|
||
color: #64748b;
|
||
margin: 4px 0;
|
||
padding-left: 10px;
|
||
}
|
||
|
||
.comment-toolbar {
|
||
align-items: center;
|
||
background: #f8fafc;
|
||
border-top: 1px solid #e2e8f0;
|
||
display: flex;
|
||
justify-content: space-between;
|
||
padding: 7px 8px;
|
||
}
|
||
|
||
.comment-hint {
|
||
color: #94a3b8;
|
||
font-size: 12px;
|
||
}
|
||
|
||
.toolbar-icon {
|
||
border-radius: 4px;
|
||
cursor: pointer;
|
||
padding: 3px;
|
||
transition: background 0.15s;
|
||
}
|
||
.toolbar-icon:hover {
|
||
background: #e2e8f0;
|
||
color: #1e293b;
|
||
}
|
||
|
||
.btn:disabled,
|
||
.btn:disabled:hover {
|
||
background: #e2e8f0;
|
||
border-color: #e2e8f0;
|
||
color: #94a3b8;
|
||
cursor: not-allowed;
|
||
}
|
||
|
||
.activity-delete {
|
||
align-items: center;
|
||
border-radius: 5px;
|
||
color: #94a3b8;
|
||
display: inline-flex;
|
||
flex: 0 0 auto;
|
||
height: 26px;
|
||
justify-content: center;
|
||
opacity: 0;
|
||
transition: background 0.15s, color 0.15s, opacity 0.15s;
|
||
width: 26px;
|
||
}
|
||
|
||
.activity-item:hover .activity-delete {
|
||
opacity: 1;
|
||
}
|
||
|
||
.activity-delete:hover {
|
||
background: #fee2e2;
|
||
color: #dc2626;
|
||
}
|
||
|
||
.activity-delete [data-lucide] {
|
||
height: 14px;
|
||
width: 14px;
|
||
}
|
||
/* Trix content in activity items */
|
||
.activity-item .rich-content {
|
||
font-size: 13px;
|
||
line-height: 1.55;
|
||
}
|
||
.activity-item .rich-content div {
|
||
font-size: 13px;
|
||
}
|
||
.activity-item .rich-content strong {
|
||
font-weight: 600;
|
||
}
|
||
.activity-item .rich-content a {
|
||
color: #1d4ed8;
|
||
text-decoration: underline;
|
||
}
|
||
.activity-item .rich-content ul,
|
||
.activity-item .rich-content ol {
|
||
padding-left: 24px;
|
||
list-style: revert;
|
||
}
|
||
.activity-item .rich-content ul {
|
||
list-style-type: disc;
|
||
}
|
||
.activity-item .rich-content ol {
|
||
list-style-type: decimal;
|
||
}
|
||
.activity-item .rich-content ul,
|
||
.activity-item .rich-content ol,
|
||
.activity-item .rich-content li {
|
||
margin: 2px 0;
|
||
}
|
||
.activity-item .rich-content blockquote {
|
||
border-left: 3px solid #e2e8f0;
|
||
padding-left: 10px;
|
||
color: #64748b;
|
||
margin: 4px 0;
|
||
}
|
||
|
||
/* Task Modal — Plane style */
|
||
.task-modal { display: none; }
|
||
.task-modal.active { display: block; }
|
||
.task-overlay {
|
||
position: fixed; inset: 0; background: rgba(15,23,42,0.35); z-index: 200;
|
||
display: flex; align-items: flex-start; justify-content: center;
|
||
padding-top: 48px; overflow-y: auto;
|
||
}
|
||
.task-panel {
|
||
background: #fff; border-radius: 12px; width: 1000px; max-width: 96vw;
|
||
box-shadow: 0 20px 60px rgba(0,0,0,0.12); margin-bottom: 48px;
|
||
overflow: hidden;
|
||
}
|
||
.task-header {
|
||
display: flex; align-items: center; justify-content: space-between;
|
||
padding: 16px 20px; border-bottom: 1px solid #e2e8f0;
|
||
}
|
||
.task-drawer .task-title { color: #1e293b; font-size: 15px; font-weight: 600; }
|
||
.task-close {
|
||
color: #94a3b8; background: none; border: none; cursor: pointer;
|
||
padding: 4px; border-radius: 6px; display: flex;
|
||
}
|
||
.task-close:hover { color: #475569; background: #f1f5f9; }
|
||
.task-body-wrap, .task-page-wrap { position: relative; overflow: hidden; }
|
||
.task-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; transition: margin-right 0.25s ease; }
|
||
.task-drawer {
|
||
position: fixed; top: 0; right: 0; width: 420px; height: 100vh;
|
||
background: #fff; border-left: 1px solid #e2e8f0;
|
||
transform: translateX(100%); transition: transform 0.25s ease;
|
||
z-index: 300; display: flex; flex-direction: column;
|
||
}
|
||
.task-drawer.open { transform: translateX(0); }
|
||
.task-drawer-hd {
|
||
display: flex; align-items: center; justify-content: space-between;
|
||
padding: 14px 20px; border-bottom: 1px solid #e2e8f0;
|
||
}
|
||
.task-drawer-title { font-size: 15px; font-weight: 600; color: #1e293b; }
|
||
.task-drawer-form { padding: 16px 20px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
|
||
.task-group {
|
||
background: #fff; border-radius: 8px;
|
||
border: 1px solid #e2e8f0; overflow: hidden;
|
||
}
|
||
.task-group-hd {
|
||
display: flex; align-items: center; gap: 8px;
|
||
padding: 10px 16px; background: #f8fafc;
|
||
}
|
||
.task-group-icon { color: #64748b; display: flex; }
|
||
.task-group-label { color: #334155; font-size: 13px; font-weight: 600; }
|
||
.task-group-n {
|
||
background: #e2e8f0; color: #64748b; font-size: 11px;
|
||
padding: 1px 7px; border-radius: 10px;
|
||
}
|
||
.task-group-list { display: flex; flex-direction: column; }
|
||
.task-group-list.drag-over { background: #f0f9ff; }
|
||
.task-row {
|
||
display: flex; align-items: center; gap: 16px;
|
||
padding: 10px 16px; border-top: 1px solid #f1f5f9;
|
||
cursor: pointer; transition: background 0.15s;
|
||
}
|
||
.task-row.dragging { opacity: 0.4; background: #f1f5f9; }
|
||
.task-row.task-done .task-name { text-decoration: line-through; color: #94a3b8; }
|
||
.task-row:hover { background: #f8fafc; }
|
||
.task-dot { display: flex; color: #cbd5e1; flex-shrink: 0; cursor: pointer; }
|
||
.task-dot:hover { color: #6366f1; }
|
||
.task-grip { display: flex; color: #cbd5e1; flex-shrink: 0; cursor: grab; }
|
||
.task-grip:hover { color: #94a3b8; }
|
||
.task-grip:active { cursor: grabbing; }
|
||
.task-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
|
||
.task-name { color: #1e293b; font-size: 13px; }
|
||
.task-desc { color: #94a3b8; font-size: 12px; word-wrap: break-word; overflow-wrap: break-word; }
|
||
.task-blocker { color: #dc2626; font-size: 12px; word-wrap: break-word; overflow-wrap: break-word; }
|
||
.task-col { color: #64748b; font-size: 12px; white-space: nowrap; width: 100px; text-align: right; }
|
||
.task-col-badge { color: #64748b; font-size: 12px; white-space: nowrap; width: 90px; text-align: right; }
|
||
.task-none { color: #94a3b8; font-size: 13px; padding: 12px 14px; text-align: center; border-top: 1px solid #f1f5f9; }
|
||
.task-form {
|
||
background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px;
|
||
padding: 14px; margin-bottom: 16px;
|
||
}
|
||
.task-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 4px; }
|
||
.task-field { display: flex; flex-direction: column; gap: 4px; }
|
||
.task-field span { color: #64748b; font-size: 12px; font-weight: 500; }
|
||
.col-span-2 { grid-column: span 2; }
|
||
.task-group-add {
|
||
display: block; width: 100%; padding: 10px; text-align: center;
|
||
color: #6b6d75; font-size: 13px; background: none; border: none;
|
||
border-top: 1px solid #24272d; cursor: pointer;
|
||
}
|
||
.task-group-add:hover { color: #e4e5e7; background: #24272d; }
|
||
|
||
/* Feature list(产品版本核心功能编号列表) */
|
||
.feature-item {
|
||
display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
|
||
}
|
||
.feature-num {
|
||
color: #94a3b8; font-size: 13px; font-weight: 500; min-width: 22px; flex-shrink: 0;
|
||
}
|
||
.feature-item .form-ctrl { flex: 1; padding: 5px 10px; }
|
||
.feature-del {
|
||
flex-shrink: 0; display: flex; align-items: center; justify-content: center;
|
||
width: 22px; height: 22px; border-radius: 4px; border: none; background: none;
|
||
color: #94a3b8; cursor: pointer; transition: color 0.15s;
|
||
}
|
||
.feature-del:hover { color: #ef4444; background: #fef2f2; }
|
||
|
||
/* Toast 通知 */
|
||
.toast-container {
|
||
position: fixed; top: 16px; right: 16px; z-index: 9999;
|
||
display: flex; flex-direction: column; gap: 8px; pointer-events: none;
|
||
}
|
||
.toast {
|
||
pointer-events: auto;
|
||
display: flex; align-items: center; gap: 10px;
|
||
padding: 10px 16px; border-radius: 8px;
|
||
font-size: 13px; font-weight: 500;
|
||
box-shadow: 0 4px 12px rgba(0,0,0,0.12);
|
||
animation: toastIn 0.2s ease-out; max-width: 380px;
|
||
}
|
||
.toast.toast-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
|
||
.toast.toast-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
|
||
.toast.toast-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
|
||
.toast.fade-out { animation: toastOut 0.25s ease-in forwards; }
|
||
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
|
||
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }
|
||
|
||
/* 财务弹窗优化 */
|
||
.fin-field-group {
|
||
background: #f8fafc;
|
||
border: 1px solid #e2e8f0;
|
||
border-radius: 10px;
|
||
padding: 18px;
|
||
}
|
||
.fin-section-label {
|
||
font-size: 13px;
|
||
font-weight: 600;
|
||
color: #334155;
|
||
margin-bottom: 14px;
|
||
padding-bottom: 8px;
|
||
border-bottom: 1px solid #e2e8f0;
|
||
}
|
||
.fin-label {
|
||
display: block;
|
||
font-size: 12px;
|
||
font-weight: 500;
|
||
color: #64748b;
|
||
margin-bottom: 4px;
|
||
}
|
||
|
||
/* 项目树拖拽 */
|
||
.project-tree-node.dragging { opacity: 0.4; }
|
||
.project-tree-node.drag-over { border-top: 2px solid #2563eb; }
|