QALoop / qa_annotate /static /css /seed-question.css
jackkuo's picture
Add Hugging Face Space deployment
35e7795
Raw
History Blame Contribute Delete
9.12 kB
/* 种子问题收集页面样式 */
.seed-question-form {
max-width: 900px;
margin: 0 auto;
padding: 32px;
background: white;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
/* 表单分组 */
.form-section {
margin-bottom: 32px;
padding-bottom: 24px;
border-bottom: 1px solid #f0f0f0;
}
.form-section:last-of-type {
border-bottom: none;
margin-bottom: 0;
padding-bottom: 0;
}
.form-section-title {
font-size: 16px;
font-weight: 600;
color: #333;
margin-bottom: 20px;
padding-bottom: 12px;
border-bottom: 2px solid #667eea;
display: flex;
align-items: center;
gap: 8px;
}
.form-section-title::before {
content: '';
width: 4px;
height: 16px;
background: #667eea;
border-radius: 2px;
flex-shrink: 0;
}
.form-group {
margin-bottom: 24px;
position: relative;
}
.form-group:last-child {
margin-bottom: 0;
}
.form-group label {
display: flex;
align-items: center;
margin-bottom: 10px;
font-weight: 500;
color: #333;
font-size: 14px;
line-height: 1.5;
}
.form-group .required {
color: #e74c3c;
margin-left: 4px;
font-weight: 600;
}
.form-group .field-hint {
font-size: 12px;
color: #999;
font-weight: normal;
margin-left: 8px;
}
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 24px;
}
@media (max-width: 768px) {
.form-row {
grid-template-columns: 1fr;
gap: 20px;
}
}
.form-control {
width: 100%;
padding: 12px 16px;
border: 2px solid #e0e0e0;
border-radius: 8px;
font-size: 14px;
transition: all 0.3s ease;
font-family: inherit;
background: #fafafa;
color: #333;
}
.form-control:hover {
border-color: #c0c0c0;
background-color: white;
}
.form-control:focus {
outline: none;
border-color: #667eea;
background-color: white;
box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}
.form-control::placeholder {
color: #bbb;
}
.form-control:invalid:not(:placeholder-shown) {
border-color: #e74c3c;
}
.form-control:valid:not(:placeholder-shown) {
border-color: #28a745;
}
textarea.form-control {
resize: vertical;
min-height: 120px;
line-height: 1.6;
font-family: inherit;
}
select.form-control {
cursor: pointer;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 16px center;
background-size: 12px 12px;
padding-right: 40px;
background-color: #fafafa;
}
input[type="date"].form-control {
cursor: pointer;
}
.checkbox-label {
display: flex;
align-items: center;
cursor: pointer;
-webkit-user-select: none;
user-select: none;
padding: 12px 16px;
background: #f8f9fa;
border-radius: 8px;
border: 2px solid #e0e0e0;
transition: all 0.3s ease;
margin-top: 0;
}
.checkbox-label:hover {
background: #f0f0f0;
border-color: #c0c0c0;
}
.checkbox-label input[type="checkbox"] {
width: 20px;
height: 20px;
margin-right: 12px;
cursor: pointer;
accent-color: #667eea;
flex-shrink: 0;
}
.checkbox-label input[type="checkbox"]:checked + span {
color: #667eea;
font-weight: 500;
}
.checkbox-label span {
font-weight: normal;
color: #333;
transition: color 0.3s ease;
}
.form-actions {
display: flex;
justify-content: flex-end;
gap: 16px;
margin-top: 32px;
padding-top: 24px;
border-top: 2px solid #f0f0f0;
}
.form-actions .btn {
min-width: 120px;
padding: 12px 24px;
font-size: 15px;
font-weight: 500;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
}
.form-actions .btn:hover {
transform: translateY(-1px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.form-actions .btn:active {
transform: translateY(0);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.btn {
padding: 10px 20px;
border: none;
border-radius: 6px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
}
.btn-primary {
background: #667eea;
color: white;
}
.btn-primary:hover {
background: #5568d3;
}
.btn-secondary {
background: #6c757d;
color: white;
}
.btn-secondary:hover {
background: #5a6268;
}
.btn-success {
background: #28a745;
color: white;
}
.btn-success:hover {
background: #218838;
}
.btn-danger {
background: #dc3545;
color: white;
}
.btn-danger:hover {
background: #c82333;
}
.btn-sm {
padding: 6px 12px;
font-size: 12px;
}
.btn:disabled {
opacity: 0.6;
cursor: not-allowed;
}
/* 表格样式增强 */
.data-table td {
word-break: break-word;
}
.data-table td:first-child {
font-weight: 500;
color: #667eea;
}
/* 操作按钮组 */
.action-buttons {
display: flex;
gap: 8px;
}
.action-buttons .btn {
padding: 6px 12px;
font-size: 12px;
}
/* 空状态 */
.empty-state {
text-align: center;
padding: 60px 20px;
color: #999;
}
.empty-state-icon {
font-size: 48px;
margin-bottom: 16px;
}
.empty-state-text {
font-size: 16px;
}
/* 加载状态 */
.loading {
text-align: center;
padding: 40px;
color: #999;
}
/* 模态框样式(如果manager.css中没有) */
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
overflow: auto;
}
.modal.active {
display: flex;
align-items: center;
justify-content: center;
}
.modal-content {
background-color: white;
border-radius: 8px;
width: 90%;
max-width: 600px;
max-height: 90vh;
overflow-y: auto;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
display: flex;
flex-direction: column;
}
.modal-header {
padding: 20px 24px;
border-bottom: 1px solid #e0e0e0;
display: flex;
justify-content: space-between;
align-items: center;
flex-shrink: 0;
}
.modal-header h3 {
margin: 0;
font-size: 20px;
font-weight: 600;
color: #333;
}
.modal-close {
background: none;
border: none;
font-size: 28px;
color: #999;
cursor: pointer;
padding: 0;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
transition: all 0.3s ease;
}
.modal-close:hover {
background: #f5f5f5;
color: #333;
}
.modal-body {
padding: 24px;
flex: 1;
overflow-y: auto;
}
.modal-footer {
padding: 16px 24px;
border-top: 1px solid #e0e0e0;
display: flex;
justify-content: flex-end;
gap: 12px;
flex-shrink: 0;
}
/* 隐藏元素 */
.hidden {
display: none !important;
}
/* 搜索输入框 */
.search-input {
width: 300px;
}
/* 分页容器 */
.pagination-container {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 24px;
border-top: 1px solid #e0e0e0;
}
.pagination-controls {
display: flex;
align-items: center;
gap: 8px;
}
.pagination-controls .form-control {
width: auto;
padding: 6px 12px;
margin-left: 8px;
}
.pagination-numbers {
display: flex;
gap: 4px;
}
/* 表单成功/错误状态 */
.form-group.success .form-control {
border-color: #28a745;
}
.form-group.error .form-control {
border-color: #e74c3c;
}
.form-group.error .error-message {
color: #e74c3c;
font-size: 12px;
margin-top: 6px;
display: flex;
align-items: center;
gap: 4px;
}
/* 字符计数提示 */
.char-count {
font-size: 12px;
color: #999;
text-align: right;
margin-top: 6px;
}
.char-count.warning {
color: #ff9800;
}
.char-count.error {
color: #e74c3c;
}
/* 响应式设计 */
@media (max-width: 768px) {
.seed-question-form {
padding: 20px 16px;
border-radius: 8px;
}
.form-section {
margin-bottom: 24px;
padding-bottom: 20px;
}
.form-section-title {
font-size: 15px;
}
.form-group {
margin-bottom: 20px;
}
.form-actions {
flex-direction: column;
margin-top: 24px;
padding-top: 20px;
}
.form-actions .btn {
width: 100%;
min-width: auto;
}
.modal-content {
width: 95%;
max-height: 95vh;
}
.search-input {
width: 100%;
}
}
@media (max-width: 480px) {
.seed-question-form {
padding: 16px 12px;
}
.form-section-title {
font-size: 14px;
margin-bottom: 16px;
}
.form-group label {
font-size: 13px;
}
.form-control {
padding: 10px 12px;
font-size: 14px;
}
}