QALoop / qa_annotate /static /css /user-seed-question.css
jackkuo's picture
Add Hugging Face Space deployment
35e7795
Raw
History Blame Contribute Delete
2.66 kB
/* 用户种子问题管理模块样式 */
/* 确保动态加载容器占满父容器 */
#user-seed-question-container {
width: 100%;
flex: 1;
display: flex;
flex-direction: column;
min-height: 0;
overflow: hidden;
}
#userSeedQuestionContent {
width: 100%;
flex: 1;
display: flex;
flex-direction: column;
min-height: 0;
overflow: hidden;
}
/* section-header 在 section-content-wrapper 内部时的样式 */
#userSeedQuestionContent .section-header {
margin-bottom: 0;
padding: 24px 24px 24px 24px;
border-bottom: 1px solid #e0e0e0;
flex-shrink: 0;
}
#userSeedQuestionContent .section-content {
flex: 1;
padding: 24px;
display: flex;
flex-direction: column;
min-height: 0;
overflow: hidden;
}
/* 表格容器应该可以滚动,占据可用空间 */
#userSeedQuestionContent .section-content .table-container {
flex: 1;
overflow-y: auto;
overflow-x: auto;
min-height: 0;
}
/* 分页器固定在底部,不参与滚动 */
#userSeedQuestionContent .section-content .pagination-container {
flex-shrink: 0;
margin-top: 16px;
}
/* 搜索输入框 */
#userSeedQuestionContent .search-input {
width: 300px;
}
/* 导入结果样式 */
#importResult {
margin-top: 20px;
padding: 16px;
border-radius: 4px;
background-color: #f5f5f5;
}
.import-result-content h4 {
margin: 0 0 12px 0;
font-size: 16px;
font-weight: 600;
}
.import-result-content h5 {
margin: 16px 0 8px 0;
font-size: 14px;
font-weight: 600;
}
.import-stats {
display: flex;
gap: 24px;
margin-bottom: 16px;
}
.stat-item {
display: flex;
flex-direction: column;
gap: 4px;
}
.stat-label {
font-size: 12px;
color: #666;
}
.stat-value {
font-size: 18px;
font-weight: 600;
color: #333;
}
.stat-item.stat-success .stat-value {
color: #2e7d32;
}
.stat-item.stat-error .stat-value {
color: #d32f2f;
}
.import-errors {
margin-top: 16px;
}
.error-list {
margin: 8px 0 0 0;
padding-left: 20px;
max-height: 200px;
overflow-y: auto;
}
.error-list li {
margin: 4px 0;
font-size: 12px;
color: #d32f2f;
}
.error-message {
color: #d32f2f;
margin: 8px 0 0 0;
font-size: 14px;
}
.text-error {
color: #d32f2f;
}
.form-text {
display: block;
margin-top: 4px;
font-size: 12px;
color: #666;
}
.text-muted {
color: #666;
}
/* 响应式设计 */
@media (max-width: 768px) {
#userSeedQuestionContent .search-input {
width: 100%;
}
.import-stats {
flex-direction: column;
gap: 12px;
}
}