From 1ce63d79974bcc802341d1e56ee2af51e91ecee7 Mon Sep 17 00:00:00 2001 From: Theo Date: Wed, 25 Sep 2024 12:54:02 +0800 Subject: [PATCH] fix(theme): improve theme style --- packages/Solis/components/Page.vue | 56 +++++++++++++++++------------- packages/Solis/package.json | 2 +- packages/Solis/style/styles.scss | 27 +++++++++----- 3 files changed, 51 insertions(+), 34 deletions(-) diff --git a/packages/Solis/components/Page.vue b/packages/Solis/components/Page.vue index 1d35fde..8f599b3 100644 --- a/packages/Solis/components/Page.vue +++ b/packages/Solis/components/Page.vue @@ -24,11 +24,23 @@

+ {{ article.frontMatter.date }} - - - {{ item }} - + + + + + {{ item + }} + +
@@ -74,8 +86,8 @@ const sortedPosts = computed(() => { diff --git a/packages/Solis/package.json b/packages/Solis/package.json index 761a7d6..d9957cc 100644 --- a/packages/Solis/package.json +++ b/packages/Solis/package.json @@ -1,6 +1,6 @@ { "name": "@theojs/solis", - "version": "2.1.2", + "version": "2.2.0", "type": "module", "description": "VitePress的博客主题", "repository": { diff --git a/packages/Solis/style/styles.scss b/packages/Solis/style/styles.scss index a90f746..92e2044 100644 --- a/packages/Solis/style/styles.scss +++ b/packages/Solis/style/styles.scss @@ -1,3 +1,5 @@ +@import '@fortawesome/fontawesome-free/css/all.min.css'; + :root { --vp-c-brand: var(--vp-c-brand-1) !important; --li-dot-color: var(--vp-c-brand); @@ -9,8 +11,7 @@ } .vp-doc a { - color: var(--vp-c-brand-1); - font-weight: 500; + font-weight: 900 !important; text-decoration: none !important; } @@ -18,7 +19,9 @@ a[rel~='noreferrer']:link, a[rel~='noreferrer']:visited { color: var(--vp-c-brand); - border-bottom: 1px solid var(--vp-c-brand); + font-weight: 500 !important; + font-size: 1rem; + text-decoration: underline solid !important; } } @@ -85,19 +88,25 @@ .date { font-size: 0.875rem; + font-weight: 500; color: var(--date-color); } .post-info { - font-size: 12px; + display: flex; + align-items: center; + margin-right: 1em; + font-size: 0.75rem; + color: var(--vp-c-brand-1); span { display: inline-block; - padding: 0 8px; - background-color: var(--vp-c-bg-alt); - margin-right: 10px; + margin-left: 0.25rem; transition: 0.4s; - border-radius: 2px; - color: var(--vp-c-text-1); + a { + font-size: 0.8rem; + font-weight: 500 !important; + color: var(--vp-c-brand-1) !important; + } } } @media (min-width: 768px) {