Add scroll spy

This commit is contained in:
Jeremy Thomas
2018-04-11 01:14:29 +01:00
parent 96f2164883
commit 077763cb74
5 changed files with 209 additions and 15 deletions

View File

@@ -82,6 +82,9 @@
li
&:not(:last-child)
margin-bottom: 0.5em
&.is-past
a
color: $grey-light
&.is-current
a
color: $link
@@ -132,9 +135,10 @@
.bd-anchors
padding-top: calc(1.5rem - 1px)
&.is-pinned
position: fixed
top: 0
+tablet
&.is-pinned
position: fixed
top: 0
.bd-anchors-title
color: $grey-light
@@ -147,6 +151,8 @@
li
&:last-child
margin-top: 1em
a
color: $text-strong
+touch
.bd-lead,