Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictoria Drake <hello@victoria.dev>2020-08-02 02:11:56 +0300
committerVictoria Drake <hello@victoria.dev>2020-08-02 02:11:56 +0300
commit8a9baff96895f71adf091abd80d398c1f03f5b8a (patch)
treea4c65d6d30e73b44742e99e4d8605923e21ee30b /assets/sass
parent89b8d152a9f6c83eef086747bcb29f86da92b9d0 (diff)
Linkify headings, use scroll-behavior
- Uses the scroll-behavior property to achieve smooth scrolling with less JS - Solves anchor link bugs - Linkifies headings in posts so they can be easily hyperlinked to directly
Diffstat (limited to 'assets/sass')
-rw-r--r--assets/sass/_base.sass5
1 files changed, 5 insertions, 0 deletions
diff --git a/assets/sass/_base.sass b/assets/sass/_base.sass
index 689cd05..a3b1b07 100644
--- a/assets/sass/_base.sass
+++ b/assets/sass/_base.sass
@@ -1,6 +1,9 @@
html, body
background-color: $background
+html
+ scroll-behavior: smooth
+
html.modal-open
overflow: hidden
@@ -32,6 +35,8 @@ a
h1, h2, .title, .subtitle
color: $h-color
+ & a
+ color: $h-color
.title
font-weight: 400