QALoop / qa_annotate /static /css /annotation-analysis.css
jackkuo's picture
Add Hugging Face Space deployment
35e7795
Raw
History Blame Contribute Delete
5.54 kB
/* 分析页面样式 */
/* 确保容器有正确的宽度 */
#analysisConfigsContainer {
width: 100%;
box-sizing: border-box;
}
.config-stat-card {
background: white;
border-radius: 8px;
padding: 20px;
margin-bottom: 20px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
width: 100%;
box-sizing: border-box;
}
.config-stat-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
}
.config-stat-header h4 {
margin: 0;
color: #333;
}
.config-type-badge {
background: #e3f2fd;
color: #1976d2;
padding: 4px 12px;
border-radius: 12px;
font-size: 12px;
}
.config-stat-info {
display: flex;
gap: 20px;
margin-bottom: 16px;
color: #666;
font-size: 14px;
}
.config-chart-container {
position: relative;
min-height: 300px;
width: 100%;
max-width: 100%;
box-sizing: border-box;
}
/* 饼图和环形图容器 */
.config-chart-container canvas {
max-width: 100%;
height: auto !important;
margin: 0 auto;
display: block;
width: 100% !important;
}
.text-stats-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 16px;
padding: 20px;
background: #f5f5f5;
border-radius: 8px;
}
.text-stat-item {
display: flex;
flex-direction: column;
align-items: center;
}
.text-stat-label {
color: #666;
font-size: 12px;
margin-bottom: 4px;
}
.text-stat-value {
color: #333;
font-size: 18px;
font-weight: bold;
}
.notes-summary-section {
background: white;
border-radius: 8px;
padding: 20px;
margin-bottom: 16px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.notes-summary-section h4 {
margin: 0 0 12px 0;
color: #333;
}
.notes-keywords {
margin-bottom: 12px;
color: #666;
}
.keyword-tag {
display: inline-block;
background: #e3f2fd;
color: #1976d2;
padding: 2px 8px;
border-radius: 4px;
margin-right: 8px;
margin-bottom: 8px;
font-size: 12px;
}
.notes-list {
max-height: 300px;
overflow-y: auto;
}
.note-item {
padding: 8px 0;
border-bottom: 1px solid #eee;
color: #555;
font-size: 14px;
}
.note-item:last-child {
border-bottom: none;
}
.notes-more {
color: #999;
font-size: 12px;
text-align: center;
padding: 8px;
}
.stat-card {
background: white;
border-radius: 8px;
padding: 16px;
display: flex;
align-items: center;
gap: 16px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.stat-icon {
font-size: 32px;
}
.stat-content {
flex: 1;
}
.stat-value {
font-size: 24px;
font-weight: bold;
color: #333;
}
.stat-label {
color: #666;
font-size: 12px;
}
/* LLM 分析结果样式 */
.llm-analysis-result {
background: white;
border-left: 4px solid #1976d2;
border-radius: 8px;
padding: 20px;
margin-bottom: 20px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.llm-analysis-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16px;
padding-bottom: 12px;
border-bottom: 1px solid #eee;
}
.llm-analysis-header h4 {
margin: 0;
color: #1976d2;
font-size: 16px;
}
.llm-analysis-meta {
display: flex;
gap: 16px;
font-size: 12px;
color: #666;
}
.llm-analysis-meta span {
display: flex;
align-items: center;
gap: 4px;
}
.llm-analysis-content {
line-height: 1.8;
color: #333;
font-size: 14px;
}
.llm-analysis-content h1,
.llm-analysis-content h2,
.llm-analysis-content h3,
.llm-analysis-content h4,
.llm-analysis-content h5,
.llm-analysis-content h6 {
margin-top: 16px;
margin-bottom: 8px;
color: #222;
}
.llm-analysis-content h2 {
font-size: 18px;
border-bottom: 1px solid #e0e0e0;
padding-bottom: 6px;
}
.llm-analysis-content h3 {
font-size: 16px;
}
.llm-analysis-content h4 {
font-size: 15px;
}
.llm-analysis-content p {
margin: 8px 0;
}
.llm-analysis-content ul,
.llm-analysis-content ol {
padding-left: 24px;
margin: 8px 0;
}
.llm-analysis-content li {
margin: 4px 0;
}
.llm-analysis-content strong {
color: #111;
}
.llm-analysis-content blockquote {
border-left: 3px solid #1976d2;
margin: 12px 0;
padding: 8px 16px;
background: #f5f5f5;
color: #555;
}
.llm-analysis-content code {
background: #f0f0f0;
padding: 2px 6px;
border-radius: 3px;
font-size: 13px;
}
.llm-analysis-content pre {
background: #f5f5f5;
padding: 12px;
border-radius: 6px;
overflow-x: auto;
margin: 12px 0;
}
.llm-analysis-content pre code {
background: none;
padding: 0;
}
/* LLM 加载状态 */
.llm-loading-spinner {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
padding: 40px;
color: #666;
font-size: 14px;
}
.llm-loading-spinner::before {
content: '';
display: block;
width: 24px;
height: 24px;
border: 3px solid #e0e0e0;
border-top-color: #1976d2;
border-radius: 50%;
animation: llm-spin 0.8s linear infinite;
}
@keyframes llm-spin {
to { transform: rotate(360deg); }
}
/* LLM 错误提示 */
.llm-error-message {
background: #fff5f5;
border: 1px solid #ffcdd2;
border-left: 4px solid #f44336;
border-radius: 8px;
padding: 16px 20px;
margin-bottom: 20px;
color: #c62828;
font-size: 14px;
}
.llm-error-message .error-icon {
margin-right: 8px;
}