feat(migration): complete WordPress migration and UX refinements
- 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
This commit is contained in:
+18
-1
@@ -17,7 +17,7 @@
|
||||
|
||||
--max-width: 1180px;
|
||||
--content-width: 820px;
|
||||
--header-height: 80px;
|
||||
--header-height: 64px;
|
||||
|
||||
--radius-sm: 6px;
|
||||
--radius-md: 12px;
|
||||
@@ -37,9 +37,26 @@
|
||||
html {
|
||||
font-size: 16px;
|
||||
scroll-behavior: smooth;
|
||||
scroll-padding-top: calc(var(--header-height) + 1.5rem);
|
||||
-webkit-text-size-adjust: 100%;
|
||||
}
|
||||
|
||||
/* Ensure hash navigation (#) and footnotes never hide under sticky header */
|
||||
:target,
|
||||
[id],
|
||||
h1[id], h2[id], h3[id], h4[id], h5[id], h6[id],
|
||||
.footnote-ref,
|
||||
.footnote-item,
|
||||
li[id^="fn"] {
|
||||
scroll-margin-top: calc(var(--header-height) + 1.5rem);
|
||||
}
|
||||
|
||||
/* Responsive media constraint - never wider than parent container */
|
||||
img, video, iframe, embed, object {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: var(--font-serif);
|
||||
color: var(--color-text-main);
|
||||
|
||||
Reference in New Issue
Block a user