From 3e461eda7a7f335eadcb915b36db1ef3dfd16d35 Mon Sep 17 00:00:00 2001 From: ClovertaTheTrilobita Date: Thu, 16 Apr 2026 20:50:59 +0300 Subject: [PATCH] adjust color palette --- src/components/Footer.astro | 4 ++-- src/components/Navigation.astro | 4 ++-- src/layouts/MarkdownPostLayout.astro | 1 + src/styles/global.css | 29 +++++++++++----------------- 4 files changed, 16 insertions(+), 22 deletions(-) diff --git a/src/components/Footer.astro b/src/components/Footer.astro index ffe7c1d..e0ca0c3 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -27,9 +27,9 @@ const t = getTranslations(lang); margin-bottom: 1rem; background: repeating-linear-gradient( -45deg, - #e96b6b 0 14px, + #ef5a6f 0 14px, transparent 14px 28px, - #7da2ff 28px 42px, + #536493 28px 42px, transparent 42px 56px ); pointer-events: none; diff --git a/src/components/Navigation.astro b/src/components/Navigation.astro index d2346e4..804ee06 100644 --- a/src/components/Navigation.astro +++ b/src/components/Navigation.astro @@ -42,9 +42,9 @@ const t = getTranslations(lang); height: 12px; background: repeating-linear-gradient( -45deg, - #e96b6b 0 14px, + #ef5a6f 0 14px, transparent 14px 28px, - #7da2ff 28px 42px, + #536493 28px 42px, transparent 42px 56px ); pointer-events: none; diff --git a/src/layouts/MarkdownPostLayout.astro b/src/layouts/MarkdownPostLayout.astro index 55686b4..873ed51 100644 --- a/src/layouts/MarkdownPostLayout.astro +++ b/src/layouts/MarkdownPostLayout.astro @@ -240,6 +240,7 @@ const t = getTranslations(lang); "Noto Sans CJK SC", "Source Han Sans SC", sans-serif; + font-weight: 400; } .post-content :global(code), diff --git a/src/styles/global.css b/src/styles/global.css index 05af1c9..8e0e6dd 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -34,20 +34,11 @@ article svg[id^="mermaid-"] { html { /* font-family: "Maple Mono", "Maple Mono CN", monospace; */ - font-family: - system-ui, - -apple-system, - BlinkMacSystemFont, - "Segoe UI", - Roboto, - Oxygen, - Ubuntu, - Cantarell, - "Open Sans", - "Helvetica Neue", - sans-serif; - background-color: #ffffff; - color: #1f2328; + font-family: 'Noto Serif SC', serif; + font-weight: 500; + /* background-color: #ffffff; */ + background-color: #fffbf8; + color: #0E2F56; } html { @@ -74,13 +65,14 @@ body::after { /* 按需调整大小 */ height: 400px; /* 按需调整大小 */ - background-image: url("https://files.seeusercontent.com/2026/03/30/4Xfr/bc7e804dc2c8ecaf407c9d665414ff72.webp"); + background-image: url("https://files.seeusercontent.com/2026/04/16/1sXb/touhou___kirisame_marisa__2__by_.webp"); background-repeat: no-repeat; background-position: right bottom; background-size: contain; opacity: 0.35; pointer-events: none; z-index: -1; + } html.dark body::after { @@ -116,7 +108,7 @@ h1 { a { - color: #416bd6; + color: #3D74B6; font-weight: 700; text-decoration: none; } @@ -201,8 +193,9 @@ img { display: block; margin: 0 0 14px 0; padding: 0.6rem 1rem; - border: 1.5px dashed #aeb8c2; - background-color: #f3f5f7; + border: 2px dashed #aeb8c2; + background-color: #fffefc; + } .comment-card:last-child {