style(first-screen): optimized font color setting

This commit is contained in:
XPoet 2022-10-09 10:14:10 +08:00
parent 4d89ea984f
commit bfcde2c571
2 changed files with 5 additions and 1 deletions

View File

@ -11,7 +11,7 @@ const { enable: sc_enable, links: sc_links } = theme.social_contact
<% if (final_description.length || fs_hitokoto.enable) { %>
<div class="description hitokoto">
<% for (const idx in final_description) { %>
<div><%= final_description[idx] %></div>
<div class="desc-item"><%= final_description[idx] %></div>
<% } %>
</div>
<% } %>

View File

@ -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
}