feat: 分类系统 + 标签系统 — Phase 4 完成
分类:Model/Repo/Service/Controller + 管理后台树形页面 + 首页导航栏
标签:Model/Repo/Service/Controller + /tags/{slug} 落地页 + 写文章页输入
Post 加 CategoryID,Create/Update 支持分类和标签
SQL 迁移含 categories/tags/post_tags 表及预设未分类
This commit is contained in:
18
templates/admin/static/css/categories.css
Normal file
18
templates/admin/static/css/categories.css
Normal file
@ -0,0 +1,18 @@
|
||||
/* Categories Admin */
|
||||
.category-tree { margin-top: 16px; }
|
||||
.cat-node { margin-bottom: 12px; }
|
||||
.cat-parent { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px 16px; }
|
||||
.cat-children { margin-left: 24px; margin-top: 8px; }
|
||||
.cat-row {
|
||||
display: flex; align-items: center; gap: 12px;
|
||||
padding: 8px 0; border-bottom: 1px solid #f3f4f6;
|
||||
}
|
||||
.cat-children .cat-row:last-child { border-bottom: none; }
|
||||
.cat-name { font-weight: 600; font-size: 14px; color: #111827; min-width: 80px; }
|
||||
.cat-slug { font-size: 12px; color: #9ca3af; }
|
||||
.cat-actions { margin-left: auto; display: flex; gap: 8px; font-size: 13px; }
|
||||
.cat-actions a { color: #3b82f6; text-decoration: none; }
|
||||
.cat-actions a:hover { text-decoration: underline; }
|
||||
.cat-btn-delete { color: #ef4444 !important; }
|
||||
.cat-btn-add-child { color: #22c55e !important; }
|
||||
.cat-empty { text-align: center; color: #9ca3af; padding: 40px 0; }
|
||||
Reference in New Issue
Block a user