diff options
| -rw-r--r-- | assets/css/components/_animation.scss | 11 | ||||
| -rw-r--r-- | assets/css/index.scss | 1 | ||||
| -rw-r--r-- | assets/css/utils/_reset.scss | 8 | ||||
| -rw-r--r-- | layouts/_default/single.html | 7 | ||||
| -rw-r--r-- | layouts/posts/single.html | 5 |
5 files changed, 10 insertions, 22 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; +} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index e7798602..7f33f13b 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,15 +1,10 @@ {{ define "main" }} {{ partial "header.html" . }} - <article - class="page {{ .Site.Language.LanguageName }}" - id="article" - > - <!-- Content --> + <article class="page" id="article"> <div id="post-content" class="post-content markdown-body" style="view-transition-name: post-content-{{ .File.UniqueID }}"> {{ .Content }} </div> - </article> {{ partial "footer.html" . }} {{ end }} diff --git a/layouts/posts/single.html b/layouts/posts/single.html index 3fe80a84..0fe65678 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -1,9 +1,6 @@ {{ define "main" }} {{ partial "components/post-page-header.html" . }} - <article - class="post {{ .Site.Language.LanguageName }}" - id="article" - > + <article class="post" id="article"> <!-- Post Header --> <header style="view-transition-name: post-{{ .File.UniqueID }}" |
