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

298 lines
5.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/* 对齐原型 institution-report-library 圆角体系:
* --radius: 8px按钮/表单)
* --radius-lg: 12px弹窗
* 汇总卡 / 上传区等局部4~7px
*/
.erl-page {
min-width: 0;
}
.erl-page-desc {
font-size: 14px;
color: #64748b;
margin: -4px 0 16px;
line-height: 1.6;
}
/* 报告名称文件图标 - 原型 .report-file-cell i { border-radius: 4px } */
.erl-file-cell {
display: flex;
align-items: center;
gap: 7px;
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;
font-size: 14px;
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;
gap: 6px;
flex-wrap: wrap;
}
/* 原型 .tag { border-radius: 999px } + .tag-success/warning/info/danger */
.erl-tag {
display: inline-block;
padding: 2px 8px;
border-radius: 999px;
font-size: 14px;
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;
}
/* 上传弹窗 - 原型 .modal { border-radius: var(--radius-lg)=12px } */
.erl-modal-title {
line-height: 1.3;
}
.erl-modal-subtitle {
margin-top: 3px;
font-size: 14px;
color: #64748b;
font-weight: 400;
}
.erl-upload-modal {
.micro-temp-modal-content {
border-radius: 12px;
overflow: hidden;
}
}
/* 原型单层虚线框,避免 Dragger 内外双边框 */
.erl-upload-box {
margin-bottom: 16px;
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;
gap: 13px;
padding: 16px;
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;
font-size: 14px;
font-weight: 700;
}
.erl-upload-text strong,
.erl-upload-text p,
.erl-upload-text span {
display: block;
}
.erl-upload-text strong {
font-size: 14px;
color: #0f172a;
}
.erl-upload-text p {
margin: 3px 0;
font-size: 14px;
color: #64748b;
line-height: 1.5;
}
.erl-upload-text span {
font-size: 14px;
color: #2563eb;
}
/* 原型 .report-library-upload-tip { border-radius: 6px } / tip span { 10px } */
.erl-upload-tip {
display: flex;
align-items: center;
gap: 7px;
flex-wrap: wrap;
margin-top: 13px;
padding: 10px 12px;
border-radius: 6px;
background: #f3f6f9;
}
.erl-upload-tip strong {
color: #334155;
}
.erl-upload-tip span {
padding: 3px 7px;
border-radius: 10px;
background: #fff;
color: #64748b;
}
/* 报告文件列表(对齐原型 .report-upload-files */
.erl-report-files {
border: 1px solid var(--micro-temp-color-border, #e8edf3);
border-radius: 6px;
overflow: hidden;
.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;
}
}
}
.erl-report-files-note {
margin-top: 10px;
padding: 10px 14px;
border-left: 3px solid #2563eb;
border-radius: 4px;
background: #eff6ff;
color: #475569;
font-size: 14px;
line-height: 1.65;
strong {
color: #1e40af;
margin-right: 4px;
}
}
.erl-rectify-meta {
margin-bottom: 16px;
padding: 12px;
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 6px;
font-size: 14px;
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;
}
}