From ac547baca9bf9c097e2b0605e42cc72a6a76d74f Mon Sep 17 00:00:00 2001 From: sendevia Date: Thu, 8 Jan 2026 22:18:48 +0800 Subject: [PATCH] feat(Article): refactor article layout and improve styling for aside section --- .vitepress/theme/layouts/Article.vue | 10 +++++----- .vitepress/theme/styles/layouts/Article.scss | 12 +++++++++--- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.vitepress/theme/layouts/Article.vue b/.vitepress/theme/layouts/Article.vue index 401b418..57a170c 100644 --- a/.vitepress/theme/layouts/Article.vue +++ b/.vitepress/theme/layouts/Article.vue @@ -215,13 +215,9 @@ if (isClient()) { - -
- - 复制短链 - +
+ + + 复制短链 +
div { width: 100%; + + > div > :first-child { + margin-block-start: 0px; + } } > hgroup { @@ -789,11 +793,14 @@ main#article-content { } } -div#article-beside { +div#article-aside { + display: flex; + flex-direction: column; + gap: 24px; grid-column: 10 / 13; position: sticky; - top: 120px; + top: 12px; .post-info { display: flex; @@ -801,7 +808,6 @@ div#article-beside { gap: 3px; margin-inline-start: 16px; - margin-bottom: 18px; p { @include mixin.typescale-style("label-small");