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>
117 lines
2.5 KiB
CSS
117 lines
2.5 KiB
CSS
/**
|
|
* 帖子/新闻独立列表页布局(与首页 section-wrap 宽度一致)
|
|
* 不依赖 index.css(首页 hero/notice 专用)
|
|
*/
|
|
|
|
section.feed-list-page {
|
|
height: auto;
|
|
min-height: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.feed-list-page {
|
|
padding: 2rem 0 3rem;
|
|
}
|
|
|
|
.feed-list-page .section-wrap.feed-list-stage {
|
|
display: block;
|
|
width: 90%;
|
|
max-width: none;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
box-sizing: border-box;
|
|
background-color: rgba(255, 255, 255, 0.14);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.1);
|
|
border-radius: 30px;
|
|
backdrop-filter: blur(12px);
|
|
padding: 2rem 2.5rem 2.5rem;
|
|
height: auto;
|
|
min-height: 0;
|
|
max-height: none;
|
|
overflow: visible;
|
|
}
|
|
|
|
.feed-list-body {
|
|
width: 100%;
|
|
overflow: visible;
|
|
}
|
|
|
|
.feed-list-title {
|
|
margin: 0 0 1.25rem;
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
color: #111;
|
|
text-align: center;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.45);
|
|
padding-bottom: 0.65rem;
|
|
}
|
|
|
|
.feed-list-actions {
|
|
display: flex;
|
|
justify-content: center;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.feed-list-actions .feed-action-link {
|
|
padding: 0.4rem 1rem;
|
|
border-radius: 999px;
|
|
font-size: 0.8125rem;
|
|
font-weight: 600;
|
|
text-decoration: none;
|
|
color: var(--post-accent-text);
|
|
background: rgba(253, 189, 219, 0.35);
|
|
border: 1px solid rgba(253, 189, 219, 0.55);
|
|
transition: background 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.feed-list-actions .feed-action-link:hover {
|
|
background: rgba(253, 189, 219, 0.5);
|
|
box-shadow: 0 4px 14px rgba(253, 189, 219, 0.25);
|
|
}
|
|
|
|
.feed-list-page .feed-pagination {
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
.feed-list-page .feed-pagination .page-link {
|
|
color: var(--post-accent-text);
|
|
background: rgba(255, 255, 255, 0.32);
|
|
backdrop-filter: blur(10px);
|
|
border: 1px solid rgba(253, 189, 219, 0.4);
|
|
border-radius: 8px;
|
|
margin: 0 0.2rem;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.feed-list-page .feed-pagination .page-link:hover {
|
|
background: rgba(253, 189, 219, 0.35);
|
|
}
|
|
|
|
.feed-list-page .feed-pagination .page-item.active .page-link {
|
|
background: rgba(253, 189, 219, 0.55);
|
|
border-color: rgba(240, 168, 196, 0.75);
|
|
color: var(--post-accent-text);
|
|
font-weight: 600;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
section.feed-list-page,
|
|
.feed-list-page {
|
|
padding: 16px 0;
|
|
}
|
|
|
|
.feed-list-page .section-wrap.feed-list-stage {
|
|
width: 95%;
|
|
border-radius: 20px;
|
|
padding: 1.25rem 1.5rem 1.75rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 576px) {
|
|
.feed-list-page .section-wrap.feed-list-stage {
|
|
width: 98%;
|
|
padding: 1rem 1.15rem 1.5rem;
|
|
}
|
|
}
|