Add styles for hover and visited for table of contents
* Add styles for hover and visited for table of contents * Add cookie based handling of visited table of content links
This commit is contained in:
committed by
Benedikt Rötsch
parent
c7d0860eda
commit
58d7e87325
@@ -42,5 +42,23 @@
|
||||
left: calc(var(--toc-gap-left) * 2 * -1);
|
||||
}
|
||||
}
|
||||
|
||||
&:hover {
|
||||
font-family: var(--font-medium);
|
||||
color: var(--color-text-default);
|
||||
}
|
||||
|
||||
&.visited {
|
||||
position:relative;
|
||||
&:before,
|
||||
&:after {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
}
|
||||
&:after {
|
||||
content: '👁';
|
||||
left: calc(var(--toc-gap-left) * 2 * -1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user