From bfcde2c571b753f60dbd4b1e5db7ee36a8bb9dca Mon Sep 17 00:00:00 2001 From: XPoet Date: Sun, 9 Oct 2022 10:14:10 +0800 Subject: [PATCH] style(first-screen): optimized font color setting --- layout/_partial/first-screen.ejs | 2 +- source/css/layout/_partial/first-screen.styl | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/layout/_partial/first-screen.ejs b/layout/_partial/first-screen.ejs index c7ca94c..ecf2e00 100644 --- a/layout/_partial/first-screen.ejs +++ b/layout/_partial/first-screen.ejs @@ -11,7 +11,7 @@ const { enable: sc_enable, links: sc_links } = theme.social_contact <% if (final_description.length || fs_hitokoto.enable) { %>
<% for (const idx in final_description) { %> -
<%= final_description[idx] %>
+
<%= final_description[idx] %>
<% } %>
<% } %> diff --git a/source/css/layout/_partial/first-screen.styl b/source/css/layout/_partial/first-screen.styl index 023797c..929e9f7 100644 --- a/source/css/layout/_partial/first-screen.styl +++ b/source/css/layout/_partial/first-screen.styl @@ -40,6 +40,10 @@ $first-screen-font-color = $temp-font-color ? convert($temp-font-color) : var(-- line-height 1.8 text-align center + .desc-item { + color $first-screen-font-color + } + +keep-tablet() { font-size $first-screen-font-size * 0.9 }