update code

This commit is contained in:
lychang
2025-11-13 23:05:14 +08:00
parent e81d9edbd5
commit c8ea28bcde
186 changed files with 561 additions and 324 deletions

View File

@@ -182,4 +182,177 @@ body {
.export-btn:hover {
background: #218838;
}
/* 预览控制样式 */
.preview-controls {
display: flex;
gap: 10px;
margin-bottom: 20px;
border-bottom: 1px solid #eee;
padding-bottom: 15px;
}
.preview-btn {
background: #f8f9fa;
color: #666;
border: 1px solid #ddd;
padding: 8px 16px;
border-radius: 5px;
cursor: pointer;
font-size: 14px;
transition: all 0.3s;
}
.preview-btn:hover {
background: #e9ecef;
border-color: #adb5bd;
}
.preview-btn.active {
background: #667eea;
color: white;
border-color: #667eea;
}
/* Markdown源代码显示样式 */
.markdown-source {
background: #f8f9fa;
border: 1px solid #e9ecef;
border-radius: 5px;
padding: 20px;
font-family: 'Courier New', monospace;
font-size: 13px;
line-height: 1.5;
white-space: pre-wrap;
word-wrap: break-word;
max-height: 600px;
overflow-y: auto;
}
.markdown-source pre {
margin: 0;
background: none;
border: none;
padding: 0;
}
.markdown-source code {
background: none;
border: none;
padding: 0;
color: #333;
}
/* 增强的报告内容样式 */
.report-content {
white-space: pre-wrap;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.8;
font-size: 14px;
background: white;
padding: 20px;
border-radius: 5px;
border: 1px solid #e9ecef;
}
/* Markdown渲染样式 */
.report-content h1,
.report-content h2,
.report-content h3,
.report-content h4,
.report-content h5,
.report-content h6 {
margin: 20px 0 10px 0;
color: #333;
font-weight: 600;
}
.report-content h1 {
font-size: 1.8em;
border-bottom: 2px solid #667eea;
padding-bottom: 10px;
}
.report-content h2 {
font-size: 1.5em;
border-bottom: 1px solid #ddd;
padding-bottom: 8px;
}
.report-content h3 {
font-size: 1.3em;
}
.report-content p {
margin: 10px 0;
}
.report-content ul,
.report-content ol {
margin: 10px 0 10px 20px;
}
.report-content li {
margin: 5px 0;
}
.report-content blockquote {
border-left: 4px solid #667eea;
background: #f8f9fa;
padding: 10px 15px;
margin: 15px 0;
font-style: italic;
}
.report-content code {
background: #f1f3f4;
padding: 2px 6px;
border-radius: 3px;
font-family: 'Courier New', monospace;
font-size: 0.9em;
}
.report-content pre {
background: #f8f9fa;
border: 1px solid #e9ecef;
border-radius: 5px;
padding: 15px;
overflow-x: auto;
margin: 15px 0;
}
.report-content pre code {
background: none;
padding: 0;
}
.report-content table {
border-collapse: collapse;
width: 100%;
margin: 15px 0;
}
.report-content th,
.report-content td {
border: 1px solid #ddd;
padding: 8px 12px;
text-align: left;
}
.report-content th {
background: #f8f9fa;
font-weight: 600;
}
.report-content tr:nth-child(even) {
background: #f8f9fa;
}
/* 水平分隔线样式 */
.report-content hr {
border: none;
border-top: 2px solid #667eea;
margin: 30px 0;
height: 0;
}