- Migrate historical posts, localized assets, and 103 comments - Colocate media into posts/<slug>/images/ and remove wp-content - Add native bilingual support for ai-can-change post (English default, /zh variant) - Support clean taxonomy routing (/category/:category and /tag/:tag) - Dynamically populate categories and tags in sitemap.xml - Fix header scroll padding/margin offsets for anchor and reference links - Constrain image and media widths to prevent content overflow - Redesign homepage recent posts to 4 compact editorial cards - Restore valid binary favicon.ico and high-res icon assets - Remove placeholder content and sample test comments
1423 lines
27 KiB
CSS
1423 lines
27 KiB
CSS
/* ==========================================================================
|
|
Components CSS: Exact match to pengzhan.dev Twenty Twenty-Four Theme
|
|
========================================================================== */
|
|
|
|
/* --- 1. Homepage Specific Components --- */
|
|
.home-hero-section {
|
|
margin-bottom: 4rem;
|
|
}
|
|
|
|
.hero-name {
|
|
font-size: 3.4rem;
|
|
font-family: var(--font-serif);
|
|
font-weight: 400;
|
|
letter-spacing: -0.02em;
|
|
line-height: 1.15;
|
|
margin-bottom: 0.35rem;
|
|
}
|
|
|
|
.hero-subtitle {
|
|
font-size: 1.45rem;
|
|
font-family: var(--font-serif);
|
|
font-weight: 400;
|
|
color: var(--color-text-secondary);
|
|
margin-bottom: 1.75rem;
|
|
}
|
|
|
|
.hero-intro p {
|
|
font-size: 1.08rem;
|
|
line-height: 1.8;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.home-section {
|
|
margin-bottom: 4.5rem;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 2.3rem;
|
|
font-family: var(--font-serif);
|
|
font-weight: 400;
|
|
margin-bottom: 1.75rem;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
.two-column-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 3.5rem;
|
|
}
|
|
|
|
.column-block p {
|
|
font-size: 1.05rem;
|
|
line-height: 1.85;
|
|
}
|
|
|
|
.pub-item {
|
|
margin-bottom: 1.75rem;
|
|
}
|
|
|
|
.pub-title {
|
|
font-size: 1.12rem;
|
|
font-family: var(--font-serif);
|
|
font-weight: 400;
|
|
text-decoration: underline;
|
|
text-underline-offset: 3px;
|
|
color: var(--color-text-main);
|
|
display: block;
|
|
margin-bottom: 0.3rem;
|
|
}
|
|
|
|
.pub-meta {
|
|
font-size: 0.98rem;
|
|
color: var(--color-text-secondary);
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.project-item {
|
|
margin-bottom: 2.25rem;
|
|
}
|
|
|
|
.project-name {
|
|
font-size: 1.25rem;
|
|
font-family: var(--font-serif);
|
|
font-weight: 700;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.project-item p {
|
|
font-size: 1.02rem;
|
|
line-height: 1.8;
|
|
}
|
|
|
|
.recog-item {
|
|
margin-bottom: 1rem;
|
|
font-size: 1.05rem;
|
|
}
|
|
|
|
.recog-meta {
|
|
display: block;
|
|
font-size: 0.9rem;
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
/* Homepage Compact Recent Posts */
|
|
.home-posts-compact-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.25rem;
|
|
}
|
|
|
|
.home-post-compact-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1.5rem;
|
|
padding: 1.15rem 1.35rem;
|
|
background: var(--color-surface);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-sm);
|
|
text-decoration: none;
|
|
color: inherit;
|
|
transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
|
|
}
|
|
|
|
.home-post-compact-item:hover {
|
|
transform: translateY(-2px);
|
|
border-color: var(--color-border-hover);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
|
|
}
|
|
|
|
.home-post-thumb {
|
|
width: 76px;
|
|
height: 76px;
|
|
min-width: 76px;
|
|
border-radius: 8px;
|
|
object-fit: cover;
|
|
background-color: #f0f0f2;
|
|
}
|
|
|
|
.home-post-thumb-placeholder {
|
|
width: 76px;
|
|
height: 76px;
|
|
min-width: 76px;
|
|
border-radius: 8px;
|
|
background-color: var(--color-surface-soft);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.5rem;
|
|
font-family: var(--font-serif);
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
.home-post-compact-body {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.home-post-compact-title {
|
|
font-family: var(--font-serif);
|
|
font-size: 1.2rem;
|
|
font-weight: 700;
|
|
color: var(--color-text-main);
|
|
line-height: 1.35;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.home-post-compact-meta {
|
|
font-family: var(--font-sans);
|
|
font-size: 0.82rem;
|
|
color: var(--color-text-muted);
|
|
margin-bottom: 0.35rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.4rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.home-post-compact-excerpt {
|
|
font-size: 0.92rem;
|
|
color: var(--color-text-secondary);
|
|
line-height: 1.55;
|
|
margin: 0;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Brand Tagline in Header */
|
|
.brand {
|
|
text-decoration: none;
|
|
color: var(--color-text-main);
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.brand-tagline {
|
|
font-family: var(--font-serif);
|
|
font-size: 0.82rem;
|
|
color: var(--color-text-secondary);
|
|
font-style: italic;
|
|
margin-top: -3px;
|
|
letter-spacing: 0.01em;
|
|
}
|
|
|
|
.footer-tagline {
|
|
font-family: var(--font-serif);
|
|
font-size: 1rem;
|
|
color: var(--color-text-main);
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
/* --- 2. Blog Listing & Original Post Cards --- */
|
|
.posts-grid-original {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 3rem 2rem;
|
|
}
|
|
|
|
.home-posts-grid-4,
|
|
.home-posts-grid-3 {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 2.5rem 1.5rem;
|
|
}
|
|
|
|
.home-posts-grid-4 .post-card-title {
|
|
font-size: 1.15rem;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
@media (max-width: 1024px) {
|
|
.home-posts-grid-4,
|
|
.home-posts-grid-3 {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 2rem 1.5rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.home-posts-grid-4,
|
|
.home-posts-grid-3 {
|
|
grid-template-columns: 1fr;
|
|
gap: 2rem;
|
|
}
|
|
}
|
|
|
|
.post-card {
|
|
text-decoration: none;
|
|
color: inherit;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: transparent;
|
|
border: none;
|
|
transition: opacity var(--transition-fast);
|
|
}
|
|
|
|
.post-card:hover {
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.post-card-cover {
|
|
width: 100%;
|
|
aspect-ratio: 1 / 1;
|
|
object-fit: cover;
|
|
border-radius: 20px;
|
|
margin-bottom: 1.15rem;
|
|
background-color: #f0f0f2;
|
|
}
|
|
|
|
.post-card-cover-placeholder {
|
|
width: 100%;
|
|
aspect-ratio: 1 / 1;
|
|
border-radius: 20px;
|
|
margin-bottom: 1.15rem;
|
|
background-color: #f0f0f2;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 3rem;
|
|
font-family: var(--font-serif);
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
.post-card-title {
|
|
font-size: 1.3rem;
|
|
font-family: var(--font-serif);
|
|
font-weight: 700;
|
|
line-height: 1.35;
|
|
margin-bottom: 0.4rem;
|
|
color: var(--color-text-main);
|
|
}
|
|
|
|
.post-card-meta {
|
|
font-family: var(--font-serif);
|
|
font-size: 0.88rem;
|
|
color: var(--color-text-muted);
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.meta-sep {
|
|
margin: 0 0.25rem;
|
|
}
|
|
|
|
.meta-lang-tag {
|
|
font-family: var(--font-sans);
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
margin-left: 0.35rem;
|
|
}
|
|
|
|
.post-card-excerpt {
|
|
font-family: var(--font-serif);
|
|
font-size: 0.95rem;
|
|
color: var(--color-text-secondary);
|
|
line-height: 1.65;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 4;
|
|
line-clamp: 4;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* --- 3. Single Post Page Editorial Layout --- */
|
|
.post-header-editorial {
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.post-title-editorial {
|
|
font-size: 3.2rem;
|
|
font-family: var(--font-serif);
|
|
font-weight: 800;
|
|
letter-spacing: -0.02em;
|
|
line-height: 1.2;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.post-meta-editorial {
|
|
font-family: var(--font-serif);
|
|
font-size: 1rem;
|
|
color: var(--color-text-secondary);
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 0.35rem;
|
|
}
|
|
|
|
.meta-category-link {
|
|
color: inherit;
|
|
text-decoration: underline;
|
|
text-underline-offset: 3px;
|
|
}
|
|
|
|
.meta-lang-switcher {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
margin-left: 0.5rem;
|
|
font-family: var(--font-sans);
|
|
font-size: 0.82rem;
|
|
}
|
|
|
|
.lang-text-link {
|
|
color: var(--color-text-muted);
|
|
text-decoration: none;
|
|
padding: 0.1rem 0.3rem;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.lang-text-link.lang-active {
|
|
font-weight: 700;
|
|
color: var(--color-text-main);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* --- 3. Post Responsive Layout & Ambient Floating Side TOC (Dropbox Paper style) --- */
|
|
.post-layout-container {
|
|
position: relative;
|
|
width: 100%;
|
|
max-width: 780px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.post-article-main {
|
|
width: 100%;
|
|
max-width: 780px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/* Desktop Margin-Docked Floating Side Rail TOC (>= 1280px, Docked to Left Margin) */
|
|
.desktop-side-toc {
|
|
display: none;
|
|
position: absolute;
|
|
right: calc(100% + 44px);
|
|
left: auto;
|
|
top: 0;
|
|
width: 220px;
|
|
height: 100%;
|
|
transition: opacity 0.25s ease, transform 0.25s ease;
|
|
}
|
|
|
|
@media (min-width: 1280px) {
|
|
.desktop-side-toc {
|
|
display: block;
|
|
}
|
|
|
|
.desktop-side-toc.is-minimized {
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transform: translateX(-12px);
|
|
}
|
|
}
|
|
|
|
.side-toc-sticky {
|
|
position: sticky;
|
|
top: 100px;
|
|
max-height: calc(100vh - 140px);
|
|
overflow-y: auto;
|
|
padding-right: 0.5rem;
|
|
}
|
|
|
|
.side-toc-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 0.85rem;
|
|
padding-bottom: 0.35rem;
|
|
border-bottom: 1px solid var(--color-border);
|
|
}
|
|
|
|
.side-toc-title {
|
|
font-family: var(--font-sans);
|
|
font-size: 0.72rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.1em;
|
|
color: var(--color-text-muted);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.side-toc-minimize-btn {
|
|
background: none;
|
|
border: none;
|
|
font-size: 1.1rem;
|
|
color: var(--color-text-muted);
|
|
cursor: pointer;
|
|
padding: 0 0.3rem;
|
|
line-height: 1;
|
|
transition: color var(--transition-fast);
|
|
}
|
|
|
|
.side-toc-minimize-btn:hover {
|
|
color: var(--color-text-main);
|
|
}
|
|
|
|
.side-toc-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
border-left: 2px solid var(--color-border);
|
|
position: relative;
|
|
}
|
|
|
|
.side-toc-item {
|
|
margin: 0;
|
|
}
|
|
|
|
.side-toc-item.level-3 {
|
|
padding-left: 0.75rem;
|
|
}
|
|
|
|
.side-toc-link {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0.4rem 0 0.4rem 0.85rem;
|
|
margin-left: -2px;
|
|
font-family: var(--font-sans);
|
|
font-size: 0.82rem;
|
|
line-height: 1.4;
|
|
color: var(--color-text-muted);
|
|
text-decoration: none;
|
|
border-left: 2px solid transparent;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.side-toc-link:hover {
|
|
color: var(--color-text-main);
|
|
}
|
|
|
|
.side-toc-link.toc-active {
|
|
color: var(--color-text-main);
|
|
font-weight: 600;
|
|
border-left-color: var(--color-text-main);
|
|
}
|
|
|
|
/* Floating Dock Badge (shown when minimized on desktop, or as floating action button on mobile) */
|
|
.floating-toc-badge {
|
|
display: none;
|
|
position: fixed;
|
|
z-index: 800;
|
|
background: rgba(255, 255, 255, 0.94);
|
|
backdrop-filter: blur(8px);
|
|
-webkit-backdrop-filter: blur(8px);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: 9999px;
|
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.09);
|
|
padding: 0.5rem 0.95rem;
|
|
font-family: var(--font-sans);
|
|
font-size: 0.82rem;
|
|
font-weight: 600;
|
|
color: var(--color-text-main);
|
|
cursor: pointer;
|
|
align-items: center;
|
|
gap: 0.45rem;
|
|
transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
|
|
}
|
|
|
|
.floating-toc-badge:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
|
|
color: var(--color-accent);
|
|
}
|
|
|
|
.floating-toc-badge .badge-count {
|
|
background: var(--color-surface);
|
|
border: 1px solid var(--color-border);
|
|
padding: 0.1rem 0.4rem;
|
|
border-radius: 9999px;
|
|
font-size: 0.72rem;
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
/* On Desktop when minimized */
|
|
@media (min-width: 1280px) {
|
|
.floating-toc-badge.is-visible {
|
|
display: flex;
|
|
left: 32px;
|
|
right: auto;
|
|
top: 104px;
|
|
}
|
|
}
|
|
|
|
/* On Tablets & Mobile Devices (< 1280px) */
|
|
@media (max-width: 1279px) {
|
|
.floating-toc-badge.is-visible {
|
|
display: flex;
|
|
bottom: 24px;
|
|
right: 20px;
|
|
}
|
|
}
|
|
|
|
/* Mobile Bottom Sheet Drawer */
|
|
.mobile-toc-overlay {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
background: rgba(0, 0, 0, 0.45);
|
|
backdrop-filter: blur(3px);
|
|
-webkit-backdrop-filter: blur(3px);
|
|
z-index: 1000;
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
.mobile-toc-overlay.is-open {
|
|
display: block;
|
|
opacity: 1;
|
|
}
|
|
|
|
.mobile-toc-sheet {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
max-height: 75vh;
|
|
background: var(--color-bg);
|
|
border-radius: 20px 20px 0 0;
|
|
box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
|
|
z-index: 1001;
|
|
display: flex;
|
|
flex-direction: column;
|
|
transform: translateY(100%);
|
|
transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
|
|
}
|
|
|
|
.mobile-toc-sheet.is-open {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.mobile-sheet-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 1.15rem 1.4rem;
|
|
border-bottom: 1px solid var(--color-border);
|
|
}
|
|
|
|
.mobile-sheet-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-family: var(--font-sans);
|
|
font-size: 0.95rem;
|
|
font-weight: 600;
|
|
color: var(--color-text-main);
|
|
}
|
|
|
|
.mobile-sheet-close {
|
|
background: var(--color-surface);
|
|
border: 1px solid var(--color-border);
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
font-size: 1.25rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
color: var(--color-text-muted);
|
|
line-height: 1;
|
|
}
|
|
|
|
.mobile-sheet-body {
|
|
padding: 1rem 1.4rem 2.5rem;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.mobile-sheet-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.mobile-sheet-item {
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.mobile-sheet-item.level-3 {
|
|
padding-left: 1.15rem;
|
|
}
|
|
|
|
.mobile-sheet-link {
|
|
display: block;
|
|
padding: 0.45rem 0.6rem;
|
|
border-radius: var(--radius-sm);
|
|
color: var(--color-text-main);
|
|
text-decoration: none;
|
|
font-family: var(--font-sans);
|
|
font-size: 0.92rem;
|
|
line-height: 1.4;
|
|
transition: background var(--transition-fast);
|
|
}
|
|
|
|
.mobile-sheet-link:hover,
|
|
.mobile-sheet-link:active {
|
|
background: var(--color-surface);
|
|
color: var(--color-accent);
|
|
}
|
|
|
|
.post-featured-image {
|
|
width: 100%;
|
|
max-height: 480px;
|
|
object-fit: cover;
|
|
border-radius: 16px;
|
|
margin: 2rem 0;
|
|
}
|
|
|
|
.post-body-content {
|
|
font-size: 1.1rem;
|
|
line-height: 1.9;
|
|
color: var(--color-text-main);
|
|
}
|
|
|
|
.post-body-content p {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.post-body-content img,
|
|
.post-body-content video,
|
|
.post-body-content figure {
|
|
max-width: 100%;
|
|
height: auto;
|
|
border-radius: var(--radius-sm);
|
|
margin: 1.75rem auto;
|
|
display: block;
|
|
}
|
|
|
|
.post-body-content figure figcaption {
|
|
text-align: center;
|
|
font-size: 0.88rem;
|
|
color: var(--color-text-muted);
|
|
font-style: italic;
|
|
margin-top: 0.4rem;
|
|
}
|
|
|
|
.post-tags-container {
|
|
margin: 3rem 0;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 0.65rem;
|
|
font-family: var(--font-sans);
|
|
font-size: 0.88rem;
|
|
}
|
|
|
|
.post-tags-label {
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
.tag-link {
|
|
color: var(--color-text-secondary);
|
|
text-decoration: underline;
|
|
text-underline-offset: 3px;
|
|
}
|
|
|
|
.tag-link:hover {
|
|
color: var(--color-text-main);
|
|
}
|
|
|
|
/* Previous / Next links matching original screenshot */
|
|
.post-nav-editorial {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin: 3.5rem 0;
|
|
padding-top: 2rem;
|
|
border-top: 1px solid var(--color-border);
|
|
font-family: var(--font-serif);
|
|
font-size: 1.05rem;
|
|
}
|
|
|
|
.editorial-nav-link {
|
|
color: var(--color-text-main);
|
|
text-decoration: underline;
|
|
text-underline-offset: 4px;
|
|
}
|
|
|
|
/* --- 4. Sleek Minimalist Search --- */
|
|
.search-form-minimal {
|
|
position: relative;
|
|
width: 100%;
|
|
}
|
|
|
|
.search-input-wrapper {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.search-input-sleek {
|
|
width: 100%;
|
|
padding: 0.95rem 1.25rem 0.95rem 3rem;
|
|
font-size: 1.15rem;
|
|
font-family: var(--font-serif);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-sm);
|
|
background-color: var(--color-surface);
|
|
outline: none;
|
|
transition: border-color var(--transition-fast);
|
|
}
|
|
|
|
.search-input-sleek:focus {
|
|
border-color: var(--color-text-main);
|
|
}
|
|
|
|
.search-icon-svg {
|
|
position: absolute;
|
|
left: 1rem;
|
|
width: 20px;
|
|
height: 20px;
|
|
fill: var(--color-text-muted);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.search-pills-grid {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
font-family: var(--font-sans);
|
|
font-size: 0.82rem;
|
|
padding: 0.25rem 0.65rem;
|
|
border-radius: var(--radius-full);
|
|
background-color: var(--color-surface-soft);
|
|
color: var(--color-text-secondary);
|
|
border: 1px solid var(--color-border);
|
|
cursor: pointer;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.pill:hover {
|
|
background-color: var(--color-surface);
|
|
border-color: var(--color-border-hover);
|
|
color: var(--color-text-main);
|
|
}
|
|
|
|
/* --- 5. Pagination --- */
|
|
.pagination-editorial {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-top: 4rem;
|
|
padding-top: 2rem;
|
|
border-top: 1px solid var(--color-border);
|
|
font-family: var(--font-serif);
|
|
font-size: 1.05rem;
|
|
}
|
|
|
|
/* --- 6. Modernized Comments & Moderation Section --- */
|
|
.comments-section {
|
|
margin-top: 5rem;
|
|
padding-top: 3rem;
|
|
border-top: 1px solid var(--color-border);
|
|
}
|
|
|
|
.comments-section-header {
|
|
margin-bottom: 2.25rem;
|
|
}
|
|
|
|
.comments-title {
|
|
font-family: var(--font-serif);
|
|
font-size: 1.85rem;
|
|
font-weight: 400;
|
|
color: var(--color-text-main);
|
|
margin: 0;
|
|
}
|
|
|
|
.comments-count-pill {
|
|
background: var(--color-surface-soft);
|
|
color: var(--color-text-main);
|
|
font-family: var(--font-sans);
|
|
font-size: 0.85rem;
|
|
font-weight: 700;
|
|
padding: 0.2rem 0.65rem;
|
|
border-radius: 9999px;
|
|
border: 1px solid var(--color-border);
|
|
}
|
|
|
|
.comments-subtitle {
|
|
font-size: 0.95rem;
|
|
color: var(--color-text-secondary);
|
|
margin-top: 0.35rem;
|
|
}
|
|
|
|
.comment-list-modern {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
margin-bottom: 3.5rem;
|
|
}
|
|
|
|
.comment-card-modern {
|
|
display: flex;
|
|
gap: 1.25rem;
|
|
padding: 1.5rem;
|
|
background: var(--color-surface);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: 12px;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
|
|
}
|
|
|
|
.comment-avatar {
|
|
width: 44px;
|
|
height: 44px;
|
|
min-width: 44px;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
|
|
color: #334155;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-family: var(--font-sans);
|
|
font-size: 0.95rem;
|
|
font-weight: 700;
|
|
border: 1px solid #cbd5e1;
|
|
}
|
|
|
|
.comment-main-content {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.comment-meta-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: baseline;
|
|
margin-bottom: 0.65rem;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.comment-author-name {
|
|
font-family: var(--font-sans);
|
|
font-size: 0.98rem;
|
|
font-weight: 600;
|
|
color: var(--color-text-main);
|
|
}
|
|
|
|
.comment-author-link {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.comment-author-link:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.comment-time {
|
|
font-family: var(--font-sans);
|
|
font-size: 0.82rem;
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
.comment-text-body {
|
|
font-family: var(--font-serif);
|
|
font-size: 1.05rem;
|
|
line-height: 1.7;
|
|
color: var(--color-text-main);
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.comment-form-wrapper {
|
|
background: var(--color-surface);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: 14px;
|
|
padding: 2.5rem;
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
|
|
}
|
|
|
|
.form-header-modern {
|
|
margin-bottom: 1.75rem;
|
|
}
|
|
|
|
.form-title-modern {
|
|
font-family: var(--font-serif);
|
|
font-size: 1.6rem;
|
|
font-weight: 400;
|
|
margin-bottom: 0.35rem;
|
|
}
|
|
|
|
.form-subtitle-modern {
|
|
font-family: var(--font-sans);
|
|
font-size: 0.88rem;
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
.form-grid-two {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 1.25rem;
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.form-grid-two {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.comment-card-modern {
|
|
padding: 1.15rem;
|
|
gap: 0.85rem;
|
|
}
|
|
}
|
|
|
|
.form-group,
|
|
.form-field-modern {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.45rem;
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
|
|
.form-label,
|
|
.form-label-modern {
|
|
font-family: var(--font-sans);
|
|
font-size: 0.88rem;
|
|
font-weight: 500;
|
|
color: var(--color-text-secondary);
|
|
}
|
|
|
|
.form-input,
|
|
.form-input-modern,
|
|
.form-textarea,
|
|
.form-textarea-modern {
|
|
width: 100%;
|
|
font-family: var(--font-sans);
|
|
font-size: 0.95rem;
|
|
padding: 0.8rem 1rem;
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-sm);
|
|
background: #ffffff;
|
|
color: var(--color-text-main);
|
|
box-sizing: border-box;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.form-input:focus,
|
|
.form-input-modern:focus,
|
|
.form-textarea:focus,
|
|
.form-textarea-modern:focus {
|
|
outline: none;
|
|
border-color: var(--color-text-main);
|
|
box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
|
|
}
|
|
|
|
.form-textarea-modern {
|
|
resize: vertical;
|
|
min-height: 120px;
|
|
font-family: inherit;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.form-footer-modern {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 1rem;
|
|
margin-top: 0.75rem;
|
|
}
|
|
|
|
.moderation-notice {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-family: var(--font-sans);
|
|
font-size: 0.82rem;
|
|
color: var(--color-text-muted);
|
|
max-width: 460px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.btn-submit-comment {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.8rem 1.8rem;
|
|
font-size: 0.95rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.comment-alert {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 0.75rem;
|
|
padding: 1rem 1.25rem;
|
|
border-radius: var(--radius-sm);
|
|
margin-bottom: 2rem;
|
|
font-family: var(--font-sans);
|
|
font-size: 0.92rem;
|
|
}
|
|
|
|
.alert-pending {
|
|
background: #fffbeb;
|
|
border: 1px solid #fde68a;
|
|
color: #92400e;
|
|
}
|
|
|
|
.alert-success {
|
|
background: #ecfdf5;
|
|
border: 1px solid #a7f3d0;
|
|
color: #065f46;
|
|
}
|
|
|
|
.comments-empty-state {
|
|
text-align: center;
|
|
padding: 3rem 1.5rem;
|
|
background: var(--color-surface);
|
|
border: 1px dashed var(--color-border);
|
|
border-radius: var(--radius-sm);
|
|
margin-bottom: 3rem;
|
|
color: var(--color-text-muted);
|
|
font-family: var(--font-sans);
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.empty-icon {
|
|
font-size: 2.2rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
/* Honeypot field: strictly invisible to users */
|
|
.hp-field {
|
|
display: none !important;
|
|
opacity: 0;
|
|
position: absolute;
|
|
left: -9999px;
|
|
height: 0;
|
|
width: 0;
|
|
z-index: -1;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* Generic Buttons */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-family: var(--font-sans);
|
|
font-size: 0.92rem;
|
|
font-weight: 500;
|
|
padding: 0.65rem 1.4rem;
|
|
border-radius: var(--radius-sm);
|
|
cursor: pointer;
|
|
border: 1px solid transparent;
|
|
transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.btn-primary {
|
|
background-color: var(--color-text-main);
|
|
color: #ffffff;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background-color: #333333;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background-color: var(--color-surface-soft);
|
|
color: var(--color-text-main);
|
|
border-color: var(--color-border);
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background-color: var(--color-border);
|
|
}
|
|
|
|
.btn-danger {
|
|
background-color: #fee2e2;
|
|
color: #991b1b;
|
|
border-color: #fca5a5;
|
|
}
|
|
|
|
.btn-danger:hover {
|
|
background-color: #fecaca;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 1100px) {
|
|
.posts-grid-original {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
.two-column-grid {
|
|
gap: 2rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.posts-grid-original {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.two-column-grid {
|
|
grid-template-columns: 1fr;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.hero-name {
|
|
font-size: 2.6rem;
|
|
}
|
|
|
|
.post-title-editorial {
|
|
font-size: 2.4rem;
|
|
}
|
|
|
|
.post-nav-editorial {
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
align-items: flex-start;
|
|
}
|
|
}
|
|
|
|
/* --- 6. Admin & Status Pills --- */
|
|
.pill-optimal,
|
|
.pill-success {
|
|
background: #d1fae5;
|
|
color: #065f46;
|
|
}
|
|
|
|
.pill-warning {
|
|
background: #fef3c7;
|
|
color: #92400e;
|
|
}
|
|
|
|
.pill-danger {
|
|
background: #fee2e2;
|
|
color: #991b1b;
|
|
}
|
|
|
|
.pill-neutral {
|
|
background: var(--color-surface);
|
|
color: var(--color-text-secondary);
|
|
}
|
|
|
|
.pill-pending {
|
|
background: #fef3c7;
|
|
color: #92400e;
|
|
}
|
|
|
|
.pill-approved {
|
|
background: #d1fae5;
|
|
color: #065f46;
|
|
}
|
|
|
|
.pill-spam {
|
|
background: #fee2e2;
|
|
color: #991b1b;
|
|
}
|
|
|
|
.filter-tab {
|
|
text-decoration: none;
|
|
font-size: 0.85rem;
|
|
padding: 0.4rem 0.85rem;
|
|
border: 1px solid var(--color-border);
|
|
border-radius: 9999px;
|
|
background: var(--color-bg);
|
|
color: var(--color-text-secondary);
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.filter-tab.is-active-all {
|
|
background: var(--color-text-main);
|
|
color: var(--color-bg);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.filter-tab.is-active-pending {
|
|
background: #b45309;
|
|
color: white;
|
|
font-weight: 600;
|
|
border-color: #b45309;
|
|
}
|
|
|
|
.filter-tab.is-active-approved {
|
|
background: #059669;
|
|
color: white;
|
|
font-weight: 600;
|
|
border-color: #059669;
|
|
}
|
|
|
|
.filter-tab.is-active-spam {
|
|
background: #dc2626;
|
|
color: white;
|
|
font-weight: 600;
|
|
border-color: #dc2626;
|
|
}
|
|
|
|
.filter-tab.has-pending {
|
|
background: #fef3c7;
|
|
color: #92400e;
|
|
border-color: #fde68a;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.comment-card-box {
|
|
padding: 1.35rem;
|
|
background: var(--color-surface);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-sm);
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
|
|
}
|
|
|
|
.comment-card-box.is-pending {
|
|
background: #fffbeb;
|
|
border-color: #fde68a;
|
|
}
|
|
|
|
.comment-card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
gap: 1rem;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 0.85rem;
|
|
padding-bottom: 0.75rem;
|
|
border-bottom: 1px solid var(--color-border);
|
|
}
|
|
|
|
.comment-card-header.is-pending {
|
|
border-bottom-color: #fef3c7;
|
|
}
|
|
|
|
.comment-avatar-circle {
|
|
width: 38px;
|
|
height: 38px;
|
|
border-radius: 50%;
|
|
background: var(--color-text-main);
|
|
color: white;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: 700;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.comment-avatar-circle.is-pending {
|
|
background: #d97706;
|
|
}
|
|
|
|
.admin-kpi-card {
|
|
background: var(--color-surface);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-sm);
|
|
padding: 1rem 1.25rem;
|
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
|
|
}
|
|
|
|
.admin-kpi-card.has-pending {
|
|
background: #fffbeb;
|
|
border-color: #fde68a;
|
|
}
|
|
|
|
.kpi-title-default {
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
.kpi-title-pending {
|
|
color: #b45309;
|
|
}
|
|
|
|
.kpi-value-pending {
|
|
color: #b45309;
|
|
}
|
|
|
|
.kpi-value-approved {
|
|
color: #059669;
|
|
}
|
|
|
|
/* --- 7. Admin Bulk Moderation & Dynamic Comments Actions --- */
|
|
.bulk-moderation-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
background: var(--color-surface);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-sm);
|
|
padding: 0.75rem 1.15rem;
|
|
margin-bottom: 1.25rem;
|
|
flex-wrap: wrap;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.bulk-moderation-bar.has-selection {
|
|
background: #f8fafc;
|
|
border-color: var(--color-text-main);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.comment-card-box {
|
|
transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.2s ease, box-shadow 0.2s ease;
|
|
}
|
|
|
|
.comment-card-box.is-selected {
|
|
border-color: var(--color-text-main);
|
|
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
|
|
}
|
|
|
|
.comment-card-box.is-removing {
|
|
opacity: 0;
|
|
transform: translateY(-8px) scale(0.98);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.comment-checkbox-wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.comment-checkbox {
|
|
width: 1.15rem;
|
|
height: 1.15rem;
|
|
cursor: pointer;
|
|
accent-color: var(--color-text-main);
|
|
}
|
|
|
|
.admin-toast-container {
|
|
position: fixed;
|
|
bottom: 24px;
|
|
right: 24px;
|
|
z-index: 1000;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.admin-toast {
|
|
pointer-events: auto;
|
|
background: var(--color-text-main);
|
|
color: var(--color-bg);
|
|
padding: 0.65rem 1.1rem;
|
|
border-radius: var(--radius-sm);
|
|
font-size: 0.88rem;
|
|
font-weight: 500;
|
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
animation: adminToastIn 0.25s ease forwards;
|
|
}
|
|
|
|
@keyframes adminToastIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(12px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
} |