From 2b0276f57c2f5a70e776de19512e832fa8c66aa4 Mon Sep 17 00:00:00 2001 From: toom1996 Date: Tue, 15 Jul 2025 17:01:05 +0800 Subject: [PATCH] update --- src/assets/css/theme-style.css | 17 ++++ src/pages/news.astro | 2 +- src/pages/news/[...slug].astro | 144 +++++++++++++++------------------ 3 files changed, 84 insertions(+), 79 deletions(-) diff --git a/src/assets/css/theme-style.css b/src/assets/css/theme-style.css index 79f5729..ec770ef 100644 --- a/src/assets/css/theme-style.css +++ b/src/assets/css/theme-style.css @@ -1,3 +1,20 @@ + +main { + flex: 1; + padding: 3rem; + /* max-width: 1200px; */ + margin: 0 auto; + width: 100%; + box-sizing: border-box; + /* background: var(--background-light); */ +} + +@media only screen and (max-width: 767.98px) { + main { + padding: 1rem; + } +} + html, body{ font-family: 'Microsoft YaHei,SimSun,Arial,SimHei'; font-size: 100%; diff --git a/src/pages/news.astro b/src/pages/news.astro index 0e99c3b..a5e093a 100644 --- a/src/pages/news.astro +++ b/src/pages/news.astro @@ -38,7 +38,7 @@ if (!data || code !== 0) {
- {e.title} + {e.title}
diff --git a/src/pages/news/[...slug].astro b/src/pages/news/[...slug].astro index 2675438..1f99424 100644 --- a/src/pages/news/[...slug].astro +++ b/src/pages/news/[...slug].astro @@ -31,50 +31,51 @@ if (!data || code !== 0) {
-
+
-