diff --git a/frontend_nuxt/assets/global.css b/frontend_nuxt/assets/global.css index c1c15be92..294f21e43 100644 --- a/frontend_nuxt/assets/global.css +++ b/frontend_nuxt/assets/global.css @@ -27,7 +27,7 @@ --code-highlight-background-color: rgb(241, 241, 241); --login-background-color: rgb(248, 248, 248); --login-background-color-hover: #e0e0e0; - --text-color: black; + --text-color: rgb(70, 70, 70); --blockquote-text-color: #6a737d; --menu-width: 200px; --page-max-width: 1400px; @@ -75,7 +75,7 @@ body { margin: 0; padding: 0; - font-family: 'Roboto', sans-serif; + font-family: 'WenQuanYi Micro Hei', 'Helvetica Neue', Arial, sans-serif; background-color: var(--normal-background-color); color: var(--text-color); /* 禁止滚动 */ diff --git a/frontend_nuxt/pages/index.vue b/frontend_nuxt/pages/index.vue index 71ca50554..dfd51e349 100644 --- a/frontend_nuxt/pages/index.vue +++ b/frontend_nuxt/pages/index.vue @@ -72,9 +72,9 @@ {{ article.title }} -
+ {{ sanitizeDescription(article.description) }} -
+
@@ -527,15 +527,18 @@ const sanitizeDescription = (text) => stripMarkdown(text) .article-item-title { margin-top: 10px; - font-size: 20px; + font-size: 18px; text-decoration: none; color: var(--text-color); max-width: 100%; + font-weight: bold; + transition: color 0.2s ease; } .article-item-title:hover { color: var(--primary-color); text-decoration: underline; + transition: color 0.2s ease; } .pinned-icon, @@ -547,13 +550,23 @@ const sanitizeDescription = (text) => stripMarkdown(text) .article-item-description { max-width: 100%; margin-top: 10px; - font-size: 14px; - color: gray; + font-size: 13px; + color: rgba(140, 140, 140, 0.888); display: -webkit-box; line-clamp: 3; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; + letter-spacing: 0.01em; + font-weight: 400; + text-decoration: none; + transition: color 0.2s ease; +} + +.article-item-description:hover { + color: var(--primary-color); + cursor: pointer; + transition: color 0.2s ease; } .article-info-container {