v1.3 — 拾影独立为 photo 类型
- 新增 photo 自定义文章类型 - page-photos.php 只查询 photo - single-photo.php: 大图 + 诗句 + 虚线分隔 + 标题/作者居中 - photo 导航: ← 更新的(列表左侧) | 更早的(列表右侧) → - 3篇 photo 全新配图,不占用文章封面
This commit is contained in:
@@ -365,3 +365,45 @@ echo "done"
|
||||
border-radius: 50% !important;
|
||||
object-fit: cover !important;
|
||||
}
|
||||
|
||||
.photo-detail { max-width: 800px; margin: 0 auto; }
|
||||
.photo-detail__image { margin-bottom: 24px; border-radius: var(--radius); overflow: hidden; }
|
||||
.photo-detail__image img { width: 100%; height: auto; display: block; }
|
||||
.photo-detail__body { font-size: 1.1rem; line-height: 1.8; color: var(--ink-light); margin-bottom: 24px; font-style: italic; text-align: center; }
|
||||
.photo-detail__meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-lighter); padding-top: 16px; border-top: 1px solid var(--border-light); }
|
||||
.photo-detail__meta img { width: 18px !important; height: 18px !important; border-radius: 50% !important; object-fit: cover !important; }
|
||||
.photo-detail__nav { display: flex; justify-content: space-between; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border-light); font-size: 14px; }
|
||||
.photo-detail__nav a { color: var(--ink-lighter); text-decoration: none; }
|
||||
.photo-detail__nav a:hover { color: var(--cinnabar); }
|
||||
|
||||
.photo-detail .back-link {
|
||||
font-size: 13px;
|
||||
color: var(--ink-lighter);
|
||||
text-decoration: none;
|
||||
margin-bottom: 24px;
|
||||
display: inline-block;
|
||||
font-family: "Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;
|
||||
}
|
||||
.photo-detail .back-link:hover { color: var(--cinnabar); }
|
||||
|
||||
.photo-detail__title { font-size: 24px; font-weight: 600; text-align: center; margin-bottom: 10px; }
|
||||
.photo-detail__meta { justify-content: center; }
|
||||
|
||||
.photo-detail__meta span:first-child {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
.photo-detail__meta img {
|
||||
width: 18px !important;
|
||||
height: 18px !important;
|
||||
border-radius: 50% !important;
|
||||
object-fit: cover !important;
|
||||
}
|
||||
|
||||
.photo-detail__divider {
|
||||
width: 60px;
|
||||
margin: 24px auto;
|
||||
border-top: 2px dashed var(--border);
|
||||
}
|
||||
.photo-detail__meta { border-top: none; padding-top: 0; }
|
||||
|
||||
Reference in New Issue
Block a user