From c3072e93c7cd3d2babb28de51d2e1255b4eb7984 Mon Sep 17 00:00:00 2001 From: snowykami Date: Sat, 31 Aug 2024 22:06:04 +0800 Subject: [PATCH] =?UTF-8?q?:memo:=20=E4=BF=AE=E5=A4=8D=E6=9A=97=E9=BB=91?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E4=B8=8B=E5=95=86=E5=BA=97=E7=89=A9=E5=93=81?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=AF=B9=E6=AF=94=E5=BA=A6=E4=B8=8D=E9=AB=98?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/theme/liteyuki.css | 48 +++++++++++++++++++++++++----- docs/components/PluginItemCard.vue | 35 ++-------------------- docs/components/ResItemCard.vue | 23 +------------- 3 files changed, 43 insertions(+), 63 deletions(-) diff --git a/docs/.vitepress/theme/liteyuki.css b/docs/.vitepress/theme/liteyuki.css index bc00cca0..17070594 100644 --- a/docs/.vitepress/theme/liteyuki.css +++ b/docs/.vitepress/theme/liteyuki.css @@ -7,11 +7,16 @@ --vp-home-hero-image-background-image: linear-gradient(-45deg, #d0e9ff 50%, #a2d8f4 50%); --vp-home-hero-image-filter: blur(44px); + --vp-c-gray-1: #eee; + --vp-c-gray-2: #aaa; + } .dark { --vp-home-hero-image-background-image: linear-gradient(-45deg, #004785 50%, #0374ad 50%); + --vp-c-gray-1: #333; + --vp-c-gray-2: #666; } .tab-buttons { @@ -49,12 +54,39 @@ } .item-card { - position: relative; - border-radius: 15px; - background-color: #99999922; - height: 160px; - padding: 16px; - margin: 10px; - box-sizing: border-box; - transition: background 0.3s ease; + position: relative; + border-radius: 15px; + background-color: var(--vp-c-gray-1); + height: 160px; + padding: 16px; + margin: 10px; + box-sizing: border-box; + transition: background 0.3s ease; +} + +.item-name { + font-size: 20px; + margin-bottom: 10px; +} + +.item-description { + color: var(--vp-c-gray-2); + font-size: 13px; + white-space: pre-wrap; +} + +.author-info { + display: flex; + justify-content: left; + align-items: center; +} + +.author-name { + font-size: 15px; + font-weight: normal; +} + +.avatar { + border-radius: 50%; + margin: 0 10px; } \ No newline at end of file diff --git a/docs/components/PluginItemCard.vue b/docs/components/PluginItemCard.vue index fbdce113..4687b1d8 100644 --- a/docs/components/PluginItemCard.vue +++ b/docs/components/PluginItemCard.vue @@ -14,7 +14,7 @@ - +
@@ -82,42 +82,11 @@ button { color: #666; } -.copy-btn:hover { - color: #111; -} - -.item-name { - color: #111; - font-size: 20px; - margin-bottom: 10px; -} - -.item-description { - color: #333; - font-size: 12px; - white-space: pre-wrap; -} - .icon { width: 20px; height: 20px; } -.author-info { - display: flex; - justify-content: left; - align-items: center; -} - -.author-name { - font-size: 15px; - font-weight: normal; -} - -.avatar { - border-radius: 50%; - margin: 0 10px; -} .item-bar { position: absolute; @@ -132,7 +101,7 @@ button { .tag { display: inline-block; - padding: 0px 5px; + padding: 0 5px; margin-right: 5px; border-radius: 5px; font-size: 12px; diff --git a/docs/components/ResItemCard.vue b/docs/components/ResItemCard.vue index 65d5d003..c38ac5d7 100644 --- a/docs/components/ResItemCard.vue +++ b/docs/components/ResItemCard.vue @@ -29,16 +29,7 @@ const props = defineProps({