safety-eval-service-frontend/src/pages/Container/SafetyEvalBusiness/EvalReportLibrary/index.less

298 lines
5.2 KiB
Plaintext
Raw Normal View History

2026-07-28 16:07:00 +08:00
/* 对齐原型 institution-report-library 圆角体系:
* --radius: 8px按钮/表单)
* --radius-lg: 12px弹窗
* 汇总卡 / 上传区等局部4~7px
*/
.erl-page {
min-width: 0;
}
.erl-page-desc {
2026-08-17 11:22:53 +08:00
font-size: 14px;
2026-07-28 16:07:00 +08:00
color: #64748b;
margin: -4px 0 16px;
line-height: 1.6;
}
2026-08-12 11:50:26 +08:00
/* 报告名称文件图标 - 原型 .report-file-cell i { border-radius: 4px } */
2026-07-28 16:07:00 +08:00
.erl-file-cell {
display: flex;
align-items: center;
2026-08-12 11:50:26 +08:00
gap: 7px;
2026-07-28 16:07:00 +08:00
min-width: 0;
}
.erl-file-cell i {
flex: none;
width: 34px;
height: 38px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
background: #fff1f2;
color: #dc2626;
2026-08-17 11:22:53 +08:00
font-size: 14px;
2026-07-28 16:07:00 +08:00
font-style: normal;
font-weight: 700;
}
.erl-file-cell a,
.erl-file-cell span {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
min-width: 0;
}
.erl-status-link {
display: inline-block;
}
.erl-action-btns {
display: flex;
2026-08-12 11:50:26 +08:00
gap: 6px;
2026-07-28 16:07:00 +08:00
flex-wrap: wrap;
}
/* 原型 .tag { border-radius: 999px } + .tag-success/warning/info/danger */
.erl-tag {
display: inline-block;
padding: 2px 8px;
border-radius: 999px;
2026-08-17 11:22:53 +08:00
font-size: 14px;
2026-07-28 16:07:00 +08:00
font-weight: 500;
line-height: 1.4;
background: #f1f5f9;
color: #475569;
}
.erl-tag-success {
background: #d1fae5;
color: #065f46;
}
.erl-tag-warning {
background: #fef3c7;
color: #92400e;
}
.erl-tag-info {
background: #dbeafe;
color: #1e40af;
}
.erl-tag-danger {
background: #fee2e2;
color: #991b1b;
}
2026-08-12 11:50:26 +08:00
/* 上传弹窗 - 原型 .modal { border-radius: var(--radius-lg)=12px } */
2026-07-28 16:07:00 +08:00
.erl-modal-title {
line-height: 1.3;
}
.erl-modal-subtitle {
2026-08-12 11:50:26 +08:00
margin-top: 3px;
2026-08-17 11:22:53 +08:00
font-size: 14px;
2026-07-28 16:07:00 +08:00
color: #64748b;
font-weight: 400;
}
.erl-upload-modal {
.micro-temp-modal-content {
border-radius: 12px;
overflow: hidden;
}
2026-08-17 16:55:05 +08:00
2026-07-28 16:07:00 +08:00
}
/* 原型单层虚线框,避免 Dragger 内外双边框 */
.erl-upload-box {
2026-08-12 11:50:26 +08:00
margin-bottom: 16px;
2026-07-28 16:07:00 +08:00
border: 1px dashed #78aee8;
border-radius: 7px;
background: #f4f9ff;
cursor: pointer;
overflow: hidden;
}
.erl-upload-trigger {
display: block;
width: 100%;
.micro-temp-upload,
.micro-temp-upload-wrapper,
.micro-temp-upload-select {
display: block !important;
width: 100% !important;
}
.micro-temp-upload-select {
border: none !important;
background: transparent !important;
padding: 0 !important;
}
/* 清除 antd Upload 默认边框/伪元素,避免左侧边框条与内层重复框 */
&::before,
&::after,
.micro-temp-upload::before,
.micro-temp-upload::after,
.micro-temp-upload-select::before,
.micro-temp-upload-select::after {
display: none !important;
content: none !important;
border: none !important;
}
}
.erl-upload-box-inner {
display: grid;
grid-template-columns: 54px 1fr auto;
align-items: center;
2026-08-12 11:50:26 +08:00
gap: 13px;
padding: 16px;
2026-07-28 16:07:00 +08:00
text-align: left;
}
/* 原型 .report-library-upload-icon { border-radius: 6px } */
.erl-upload-icon {
width: 52px;
height: 58px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 6px;
background: #fff1f2;
color: #dc2626;
2026-08-17 11:22:53 +08:00
font-size: 14px;
2026-07-28 16:07:00 +08:00
font-weight: 700;
}
.erl-upload-text strong,
.erl-upload-text p,
.erl-upload-text span {
display: block;
}
.erl-upload-text strong {
2026-08-17 11:22:53 +08:00
font-size: 14px;
2026-07-28 16:07:00 +08:00
color: #0f172a;
}
.erl-upload-text p {
2026-08-12 11:50:26 +08:00
margin: 3px 0;
2026-08-17 11:22:53 +08:00
font-size: 14px;
2026-07-28 16:07:00 +08:00
color: #64748b;
line-height: 1.5;
}
.erl-upload-text span {
2026-08-17 11:22:53 +08:00
font-size: 14px;
2026-07-28 16:07:00 +08:00
color: #2563eb;
}
/* 原型 .report-library-upload-tip { border-radius: 6px } / tip span { 10px } */
.erl-upload-tip {
display: flex;
align-items: center;
2026-08-12 11:50:26 +08:00
gap: 7px;
2026-07-28 16:07:00 +08:00
flex-wrap: wrap;
2026-08-12 11:50:26 +08:00
margin-top: 13px;
padding: 10px 12px;
2026-07-28 16:07:00 +08:00
border-radius: 6px;
background: #f3f6f9;
}
.erl-upload-tip strong {
2026-08-12 11:50:26 +08:00
2026-07-28 16:07:00 +08:00
color: #334155;
}
.erl-upload-tip span {
2026-08-12 11:50:26 +08:00
padding: 3px 7px;
2026-07-28 16:07:00 +08:00
border-radius: 10px;
background: #fff;
color: #64748b;
2026-08-12 11:50:26 +08:00
2026-07-28 16:07:00 +08:00
}
2026-08-18 12:18:14 +08:00
/* 报告文件列表(对齐原型 .report-upload-files */
.erl-report-files {
border: 1px solid var(--micro-temp-color-border, #e8edf3);
border-radius: 6px;
overflow: hidden;
2026-08-11 18:04:20 +08:00
2026-08-18 12:18:14 +08:00
.erl-report-files-head {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 14px;
background: #f8fafc;
border-bottom: 1px solid #e8edf3;
h4 {
margin: 0;
font-size: 14px;
color: #1e293b;
}
2026-08-11 18:04:20 +08:00
}
}
2026-08-18 12:18:14 +08:00
.erl-report-files-note {
margin-top: 10px;
padding: 10px 14px;
border-left: 3px solid #2563eb;
border-radius: 4px;
background: #eff6ff;
color: #475569;
2026-08-25 17:55:37 +08:00
font-size: 14px;
2026-08-18 12:18:14 +08:00
line-height: 1.65;
2026-08-11 18:04:20 +08:00
2026-08-18 12:18:14 +08:00
strong {
color: #1e40af;
margin-right: 4px;
2026-08-11 18:04:20 +08:00
}
}
2026-07-28 16:07:00 +08:00
.erl-rectify-meta {
margin-bottom: 16px;
padding: 12px;
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 6px;
2026-08-17 11:22:53 +08:00
font-size: 14px;
2026-07-28 16:07:00 +08:00
color: #334155;
line-height: 1.7;
}
.erl-rectify-meta label {
color: #64748b;
margin-right: 4px;
}
.erl-rectify-meta > div + div {
margin-top: 6px;
}
/* 本页弹窗统一 12px原型 --radius-lg */
.erl-page ~ div .micro-temp-modal-content,
.micro-temp-modal-root .micro-temp-modal-content {
border-radius: 12px;
}
@media (max-width: 768px) {
.erl-upload-box-inner {
grid-template-columns: 54px 1fr;
}
.erl-upload-box-inner > .micro-temp-btn,
.erl-upload-box-inner > button {
grid-column: 1 / -1;
justify-self: start;
}
}