From 5f5c14e32a0daee1e44c6b5cd1fccc1862bafd13 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Fri, 30 May 2025 20:14:11 +0800 Subject: refactor: remove redundant code and merge files --- assets/css/components/_animation.scss | 11 ----------- assets/css/index.scss | 1 - assets/css/utils/_reset.scss | 8 ++++++++ 3 files changed, 8 insertions(+), 12 deletions(-) delete mode 100644 assets/css/components/_animation.scss (limited to 'assets/css') diff --git a/assets/css/components/_animation.scss b/assets/css/components/_animation.scss deleted file mode 100644 index 8431a997..00000000 --- a/assets/css/components/_animation.scss +++ /dev/null @@ -1,11 +0,0 @@ -/* link scroll */ - -html { - scroll-behavior: smooth; -} - -/* page transition */ - -@view-transition { - navigation: auto; -} diff --git a/assets/css/index.scss b/assets/css/index.scss index a0d1b8b6..b3cec12c 100644 --- a/assets/css/index.scss +++ b/assets/css/index.scss @@ -15,7 +15,6 @@ @import "components/fictions"; @import "components/library"; @import "components/footer"; -@import "components/animation"; @import "libraries/littlefoot"; @import "libraries/fancybox"; diff --git a/assets/css/utils/_reset.scss b/assets/css/utils/_reset.scss index 8d548646..82d5e4fc 100644 --- a/assets/css/utils/_reset.scss +++ b/assets/css/utils/_reset.scss @@ -1,3 +1,7 @@ +html { + scroll-behavior: smooth; +} + body { font-family: var(--serif-font-family); -webkit-font-smoothing: antialiased; @@ -57,3 +61,7 @@ hr { margin: 2.5rem auto; border: 0.05rem solid var(--border-color); } + +@view-transition { + navigation: auto; +} -- cgit v1.2.3