diff options
author | Victoria Drake <hello@victoria.dev> | 2020-08-02 02:11:56 +0300 |
---|---|---|
committer | Victoria Drake <hello@victoria.dev> | 2020-08-02 02:11:56 +0300 |
commit | 8a9baff96895f71adf091abd80d398c1f03f5b8a (patch) | |
tree | a4c65d6d30e73b44742e99e4d8605923e21ee30b /assets/sass | |
parent | 89b8d152a9f6c83eef086747bcb29f86da92b9d0 (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.sass | 5 |
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 |