summaryrefslogtreecommitdiff
path: root/assets/css
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-05-30 20:14:11 +0800
committerEltrac <hi@guhub.cn>2025-05-30 20:14:11 +0800
commitf4e51ca967e27ed5f2c9fc135d87c679d1ff47fe (patch)
tree5a05b4c88a5c7c19c332e4678b21979421188450 /assets/css
parent549fcd0cd575a199a4c310b54ec864b6612fa2c0 (diff)
refactor: remove redundant code and merge files
Former-commit-id: 5f5c14e32a0daee1e44c6b5cd1fccc1862bafd13
Diffstat (limited to 'assets/css')
-rw-r--r--assets/css/components/_animation.scss11
-rw-r--r--assets/css/index.scss1
-rw-r--r--assets/css/utils/_reset.scss8
3 files changed, 8 insertions, 12 deletions
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;
+}