Skip to content

Commit

Permalink
💄 Style: change font size of the Collection List and TOC
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Jul 28, 2024
1 parent 16c903f commit 66b86d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion assets/css/_partials/_single/_collections.scss
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
.collection-name {
flex-grow: 1;
font-weight: bold;
font-size: $collection-title-font-size;

&::before {
content: attr(data-collections) '';
Expand All @@ -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'] & {
Expand Down
8 changes: 6 additions & 2 deletions assets/css/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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; // 花青
Expand Down

0 comments on commit 66b86d9

Please sign in to comment.