From 66b86d97cfa5959d61533a99d2f65d7a6ff6f7b1 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Sun, 28 Jul 2024 17:11:45 +0800 Subject: [PATCH] :lipstick: Style: change font size of the Collection List and TOC --- assets/css/_partials/_single/_collections.scss | 3 ++- assets/css/_variables.scss | 8 ++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/assets/css/_partials/_single/_collections.scss b/assets/css/_partials/_single/_collections.scss index f8212bdf..728e1d79 100644 --- a/assets/css/_partials/_single/_collections.scss +++ b/assets/css/_partials/_single/_collections.scss @@ -127,6 +127,7 @@ .collection-name { flex-grow: 1; font-weight: bold; + font-size: $collection-title-font-size; &::before { content: attr(data-collections) '・'; @@ -146,7 +147,7 @@ } .collection-content { - font-size: $toc-content-font-size; + font-size: $collection-list-font-size; background-color: darken($global-background-color, 2%); [data-theme='dark'] & { diff --git a/assets/css/_variables.scss b/assets/css/_variables.scss index efac4a5a..4e8a17dd 100644 --- a/assets/css/_variables.scss +++ b/assets/css/_variables.scss @@ -95,8 +95,12 @@ $tag-cloud-end-dark: $global-font-color-dark!default; // ========== Single Content ========== // // Font size of the TOC -$toc-title-font-size: 1.2rem !default; -$toc-content-font-size: 1rem !default; +$toc-title-font-size: 1rem !default; +$toc-content-font-size: 0.875rem !default; + +// Font size of the Collection List +$collection-title-font-size: 1rem !default; +$collection-list-font-size: 0.875rem !default; // Color of the single link $single-link-color: #2376b7 !default; // 花青