From 5a9b6e805241f729c670bf060a8d563a8e28034e Mon Sep 17 00:00:00 2001 From: daixiawu Date: Sat, 24 May 2025 20:54:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B5=E9=9D=A2=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/.gitignore | 13 ++++++++++++ .idea/indexLayout.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ css/styles.css | 13 ++++++++---- index.html | 48 +++++++++++++++++-------------------------- 5 files changed, 55 insertions(+), 33 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/indexLayout.xml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..7ed3be2 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,13 @@ +# 默认忽略的文件 +/shelf/ +/workspace.xml +# Rider 忽略的文件 +/projectSettingsUpdater.xml +/contentModel.xml +/.idea.TH1_WebSite.iml +/modules.xml +# 基于编辑器的 HTTP 客户端请求 +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/indexLayout.xml b/.idea/indexLayout.xml new file mode 100644 index 0000000..f5a863a --- /dev/null +++ b/.idea/indexLayout.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..c8397c9 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/css/styles.css b/css/styles.css index c8e3da9..d4d86ad 100644 --- a/css/styles.css +++ b/css/styles.css @@ -137,9 +137,14 @@ body { } .posts-grid { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); - gap: 25px; + display: flex; + flex-direction: column; + gap: 40px; /* 可根据需要设置间距 */ +} + +.post-card { + max-width: 100%; + width: 100%; } /* --- Post Card Styles (Corrected and Improved) --- */ @@ -372,7 +377,7 @@ footer .footer-column ul li a:hover { justify-content: center; align-items: center; font-size: 1.2em; - margin: 8px; + margin: 20px 20px; transition: background-color 0.3s ease; } diff --git a/index.html b/index.html index 10ce90a..beb272a 100644 --- a/index.html +++ b/index.html @@ -51,50 +51,40 @@