commit d8a9d819ce8e1440aaf10102fc4e1fe415905ab6
parent c6e96bebd379ef1a03242454f59526e750069e68
Author: FIGBERT <figbert@figbert.com>
Date: Wed, 9 Jun 2021 23:25:31 -0700
Move anchor links to the left of page content
Diffstat:
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/static/global.css b/static/global.css
@@ -52,6 +52,7 @@ h5,
h6 {
margin: 0;
font-weight: 400;
+ position: relative;
}
h1 > a,
@@ -65,7 +66,10 @@ h6 > a {
}
.zola-anchor {
- display: none;
+ opacity: 0;
+ position: absolute;
+ right: 101%;
+ transition: opacity .1s linear;
color: var(--tertiary-color);
}
@@ -75,7 +79,7 @@ h3:hover > .zola-anchor,
h4:hover > .zola-anchor,
h5:hover > .zola-anchor,
h6:hover > .zola-anchor {
- display: initial;
+ opacity: 100;
}
/* Nav */