feat: 新增知资札记工具及相关功能
1. 新增知资札记完整站点:包含首页、详情页、管理后台 2. 添加站点图标、鉴权配置与后端API鉴权逻辑 3. 在市场页面新增知资札记入口跳转 4. 新增经典乡村音乐播放列表文件 5. 临时添加养生谚语批量导入脚本
This commit is contained in:
@@ -0,0 +1,96 @@
|
||||
/* ═══════════════════════════════════════════════════════════
|
||||
知资札记 - 文章详情页样式
|
||||
复用 zhizi_notes.css 变量体系
|
||||
═══════════════════════════════════════════════════════════ */
|
||||
|
||||
/* ── 布局 ── */
|
||||
.zd-layout {
|
||||
margin-top: 56px; min-height: calc(100vh - 56px);
|
||||
max-width: 900px; margin-left: auto; margin-right: auto;
|
||||
padding: 0 20px;
|
||||
}
|
||||
.zd-main { padding: 30px 0 60px; }
|
||||
|
||||
/* ── 文章头部 ── */
|
||||
.zd-header { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
|
||||
.zd-header h1 {
|
||||
font-size: 1.6rem; font-weight: 700; color: var(--text);
|
||||
line-height: 1.5; margin-bottom: 12px;
|
||||
}
|
||||
.zd-meta {
|
||||
display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
|
||||
font-size: 0.82rem; color: var(--text-light);
|
||||
}
|
||||
.zd-meta .zd-cat {
|
||||
display: inline-block; padding: 2px 10px; border-radius: 10px;
|
||||
background: var(--primary); color: #fff; font-size: 0.75rem;
|
||||
}
|
||||
.zd-meta .fav-btn {
|
||||
background: transparent; color: var(--text-light); font-size: 1.1rem;
|
||||
padding: 2px 4px; transition: all var(--transition); border: none; cursor: pointer;
|
||||
}
|
||||
.zd-meta .fav-btn.favorited { color: #E74C3C; }
|
||||
.zd-meta .fav-btn:hover { color: #E74C3C; }
|
||||
|
||||
/* ── 标签 ── */
|
||||
.zd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
|
||||
.zd-tag {
|
||||
padding: 3px 10px; border-radius: 12px; font-size: 0.75rem;
|
||||
background: var(--bg-tag); color: var(--text-secondary);
|
||||
}
|
||||
|
||||
/* ── 封面图 ── */
|
||||
#zd-cover {
|
||||
margin-bottom: 24px; border-radius: var(--radius);
|
||||
overflow: hidden; max-height: 400px;
|
||||
}
|
||||
#zd-cover img { width: 100%; height: 100%; object-fit: cover; }
|
||||
|
||||
/* ── 正文 ── */
|
||||
.zd-content {
|
||||
font-size: 0.95rem; line-height: 1.85; color: var(--text);
|
||||
word-break: break-word; white-space: pre-wrap;
|
||||
}
|
||||
.zd-content p { margin-bottom: 1em; }
|
||||
.zd-content img { max-width: 100%; border-radius: 6px; margin: 12px 0; }
|
||||
.zd-content blockquote {
|
||||
border-left: 3px solid var(--accent); padding: 8px 16px;
|
||||
margin: 12px 0; color: var(--text-secondary);
|
||||
background: var(--bg);
|
||||
}
|
||||
.zd-content h1,.zd-content h2,.zd-content h3,.zd-content h4 {
|
||||
margin: 1.2em 0 0.6em; font-weight: 600;
|
||||
}
|
||||
.zd-content h2 { font-size: 1.2rem; }
|
||||
.zd-content h3 { font-size: 1.05rem; }
|
||||
.zd-content ul,.zd-content ol { padding-left: 1.5em; margin-bottom: 1em; }
|
||||
.zd-content li { margin-bottom: 0.3em; }
|
||||
.zd-content pre {
|
||||
background: var(--bg); padding: 12px 16px; border-radius: 6px;
|
||||
overflow-x: auto; font-size: 0.85rem; margin: 12px 0;
|
||||
}
|
||||
.zd-content code {
|
||||
background: var(--bg-tag); padding: 2px 6px; border-radius: 4px;
|
||||
font-size: 0.88em;
|
||||
}
|
||||
.zd-content pre code { background: transparent; padding: 0; }
|
||||
|
||||
/* ── 图片集 ── */
|
||||
.zd-gallery { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }
|
||||
.zd-gallery h3 { font-size: 1rem; color: var(--text); margin-bottom: 14px; }
|
||||
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
|
||||
.gallery-item {
|
||||
border-radius: var(--radius); overflow: hidden;
|
||||
background: var(--bg-tag); cursor: pointer;
|
||||
transition: transform var(--transition);
|
||||
}
|
||||
.gallery-item:hover { transform: scale(1.02); }
|
||||
.gallery-item img { width: 100%; height: 180px; object-fit: cover; display: block; }
|
||||
|
||||
/* ── 响应式 ── */
|
||||
@media (max-width: 767px) {
|
||||
.zd-layout { padding: 0 12px; }
|
||||
.zd-header h1 { font-size: 1.3rem; }
|
||||
.zd-content { font-size: 0.9rem; }
|
||||
.gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
|
||||
}
|
||||
Reference in New Issue
Block a user