Files
mce/templates/admin/static/css/posts.css
Victor_Jay 977c52513a feat: 文章属性前端完成 — Phase 3
- 写文章页:可见性/类型/转载来源/创作声明/禁止转载 属性表单
- 类型切换联动(转载显示来源,原创显示禁止转载复选框)
- 文章详情页:私密角标、置顶标记、创作声明横幅、转载来源
- 管理后台:置顶/取消置顶操作按钮
- PostService Create/Update 签名扩展接受文章属性
- DTO/接口同步更新
2026-06-22 00:20:52 +08:00

141 lines
3.0 KiB
CSS

/* ========== 管理后台帖子列表 ========== */
.admin-filter-bar {
margin-bottom: 20px;
}
.filter-form {
display: flex;
gap: 12px;
align-items: center;
}
.filter-input {
flex: 1;
max-width: 300px;
padding: 8px 12px;
border: 1px solid #d1d5db;
border-radius: 8px;
font-size: 14px;
}
.filter-select {
padding: 8px 12px;
border: 1px solid #d1d5db;
border-radius: 8px;
font-size: 14px;
background: #fff;
}
.admin-table {
width: 100%;
border-collapse: collapse;
background: #fff;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.admin-table th {
background: #f9fafb;
padding: 12px 16px;
text-align: left;
font-size: 13px;
font-weight: 600;
color: #6b7280;
border-bottom: 1px solid #e5e7eb;
}
.admin-table td {
padding: 12px 16px;
font-size: 14px;
border-bottom: 1px solid #f3f4f6;
color: #374151;
}
.admin-table .empty {
text-align: center;
color: #9ca3af;
padding: 40px 0;
}
.post-link {
color: #6366f1;
text-decoration: none;
font-weight: 500;
}
.post-link:hover { text-decoration: underline; }
.status-badge {
display: inline-block;
padding: 2px 10px;
border-radius: 12px;
font-size: 12px;
font-weight: 500;
}
.status-draft { background: #f3f4f6; color: #6b7280; }
.status-pending { background: #fef3c7; color: #d97706; }
.status-approved { background: #d1fae5; color: #059669; }
.status-rejected { background: #fee2e2; color: #dc2626; }
.status-locked { background: #fee2e2; color: #b91c1c; }
.status-pinned { background: #dbeafe; color: #1d4ed8; }
.revision-section { margin-bottom: 24px; }
.revision-section h2 { font-size: 16px; font-weight: 600; margin-bottom: 12px; color: #4338ca; }
.revision-count { background: #4338ca; color: #fff; border-radius: 10px; padding: 1px 8px; font-size: 13px; }
.revision-table { border: 2px solid #c7d2fe; }
.revision-row { background: #eef2ff; }
.revision-badge { background: #e0e7ff; color: #4338ca; font-size: 11px; border-radius: 4px; padding: 1px 6px; margin-left: 6px; }
.actions-cell { min-width: 180px; }
.action-btns {
display: flex;
gap: 6px;
flex-wrap: wrap;
}
.btn-sm {
padding: 4px 12px;
font-size: 12px;
border-radius: 6px;
border: none;
cursor: pointer;
font-weight: 500;
transition: opacity 0.2s;
}
.btn-sm:hover { opacity: 0.85; }
.btn-success { background: #10b981; color: #fff; }
.btn-warning { background: #f59e0b; color: #fff; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-info { background: #3b82f6; color: #fff; }
/* 分页 */
.pagination {
display: flex;
justify-content: center;
align-items: center;
gap: 16px;
margin-top: 24px;
}
.page-link {
padding: 8px 14px;
border: 1px solid #d1d5db;
border-radius: 8px;
color: #374151;
text-decoration: none;
font-size: 13px;
}
.page-link:hover { background: #f3f4f6; }
.page-info {
font-size: 13px;
color: #6b7280;
}