Port original CSS/JS/assets, rebuild home as four sections with feed fragments, expand schema (boards/notices/rooms/topics), and add page.chrome HTML overrides plus invoke html returns so Marqdo can render Django-class chrome without json glue. Co-authored-by: Cursor <cursoragent@cursor.com>
213 lines
4.0 KiB
CSS
213 lines
4.0 KiB
CSS
/* 详情页:箭头上一篇/下一篇 + 推荐阅读轮播 */
|
|
|
|
.detail-reading-extras {
|
|
margin-bottom: 2rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.25rem;
|
|
}
|
|
|
|
.detail-adjacent-nav,
|
|
.detail-recommend {
|
|
padding: 1rem 1.25rem !important;
|
|
margin: 0 !important;
|
|
}
|
|
|
|
/* --- 上一篇 / 下一篇:左右箭头 --- */
|
|
.detail-adjacent-bar {
|
|
display: flex;
|
|
align-items: stretch;
|
|
justify-content: space-between;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.detail-adjacent-side {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
min-width: 0;
|
|
flex: 1;
|
|
}
|
|
|
|
.detail-adjacent-side-prev {
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.detail-adjacent-side-next {
|
|
justify-content: flex-end;
|
|
text-align: right;
|
|
}
|
|
|
|
.detail-arrow-btn {
|
|
flex-shrink: 0;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 2.25rem;
|
|
height: 2.25rem;
|
|
border-radius: 50%;
|
|
background: linear-gradient(145deg, #fdbbdb, #f0a8c4);
|
|
color: #fff;
|
|
text-decoration: none;
|
|
box-shadow: 0 2px 8px rgba(168, 88, 120, 0.25);
|
|
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
|
}
|
|
|
|
.detail-arrow-btn:hover {
|
|
transform: scale(1.06);
|
|
box-shadow: 0 4px 12px rgba(168, 88, 120, 0.35);
|
|
color: #fff;
|
|
}
|
|
|
|
.detail-arrow-btn.is-disabled {
|
|
background: rgba(0, 0, 0, 0.08);
|
|
color: #bbb;
|
|
box-shadow: none;
|
|
cursor: default;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.detail-adjacent-title {
|
|
color: #333;
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
line-height: 1.4;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
}
|
|
|
|
.detail-adjacent-title:hover {
|
|
color: #a85878;
|
|
}
|
|
|
|
/* --- 推荐阅读轮播 --- */
|
|
.detail-recommend-heading {
|
|
margin: 0 0 0.85rem;
|
|
font-size: 0.95rem;
|
|
font-weight: 700;
|
|
color: #a85878;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
.detail-recommend-viewport {
|
|
overflow: hidden;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.detail-recommend-track {
|
|
display: flex;
|
|
align-items: stretch;
|
|
transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
|
|
will-change: transform;
|
|
}
|
|
|
|
.detail-recommend-slide {
|
|
flex: 0 0 100%;
|
|
box-sizing: border-box;
|
|
padding: 0 0.15rem;
|
|
display: flex;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.detail-recommend-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
width: 100%;
|
|
gap: 0.35rem;
|
|
padding: 1rem 1.1rem;
|
|
border-radius: 12px;
|
|
background: rgba(255, 255, 255, 0.55);
|
|
border: 1px solid rgba(255, 255, 255, 0.65);
|
|
text-decoration: none;
|
|
transition: background 0.2s ease, border-color 0.2s ease;
|
|
}
|
|
|
|
.detail-recommend-card:hover {
|
|
background: rgba(255, 255, 255, 0.82);
|
|
border-color: rgba(253, 187, 219, 0.8);
|
|
}
|
|
|
|
.detail-recommend-card-title {
|
|
flex: 1 1 auto;
|
|
color: #222;
|
|
font-weight: 600;
|
|
font-size: 0.95rem;
|
|
line-height: 1.45;
|
|
/* 固定两行高度,短标题与长标题卡片等高 */
|
|
min-height: calc(0.95rem * 1.45 * 2);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
}
|
|
|
|
.detail-recommend-card-meta {
|
|
flex-shrink: 0;
|
|
margin-top: auto;
|
|
font-size: 0.78rem;
|
|
color: #888;
|
|
}
|
|
|
|
.detail-recommend-dots {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 0.45rem;
|
|
margin-top: 0.85rem;
|
|
padding-bottom: 0.15rem;
|
|
}
|
|
|
|
.detail-recommend-dot {
|
|
width: 0.45rem;
|
|
height: 0.45rem;
|
|
padding: 0;
|
|
border: none;
|
|
border-radius: 50%;
|
|
background: rgba(168, 88, 120, 0.25);
|
|
cursor: pointer;
|
|
transition: transform 0.2s ease, background 0.2s ease;
|
|
}
|
|
|
|
.detail-recommend-dot:hover {
|
|
background: rgba(168, 88, 120, 0.45);
|
|
}
|
|
|
|
.detail-recommend-dot.is-active {
|
|
background: #a85878;
|
|
transform: scale(1.25);
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.detail-recommend-slide {
|
|
flex: 0 0 50%;
|
|
}
|
|
|
|
.detail-adjacent-title {
|
|
font-size: 0.92rem;
|
|
-webkit-line-clamp: 1;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 767.98px) {
|
|
.detail-adjacent-bar {
|
|
flex-direction: column;
|
|
gap: 0.65rem;
|
|
}
|
|
|
|
.detail-adjacent-side-next {
|
|
text-align: left;
|
|
justify-content: flex-start;
|
|
flex-direction: row-reverse;
|
|
}
|
|
|
|
.detail-adjacent-side-prev {
|
|
flex-direction: row;
|
|
}
|
|
}
|