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

github.com/Mitrichius/hugo-theme-anubis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kolosov <mitrichius@gmail.com>2021-12-27 23:06:21 +0300
committerDmitry Kolosov <mitrichius@gmail.com>2021-12-27 23:06:21 +0300
commit5d199f595ee98be3c458570abf9d0572fa4900d5 (patch)
tree8b1e40c40574b6f9b1d86c42cbe2602c9f05c583
parenta5e44ced3cd23c1a09ed137592f772c30532081a (diff)
Revert "changed anchor to icon #123"anchor-headings/#123
This reverts commit a5e44ced3cd23c1a09ed137592f772c30532081a.
-rw-r--r--assets/css/main.css3
-rw-r--r--layouts/_default/_markup/render-heading.html2
2 files changed, 2 insertions, 3 deletions
diff --git a/assets/css/main.css b/assets/css/main.css
index 46784e5..a190725 100644
--- a/assets/css/main.css
+++ b/assets/css/main.css
@@ -372,7 +372,7 @@ article header h1 a {
.post h6 a {
opacity: 0;
position: absolute;
- left: -1.05rem;
+ left: -0.7em;
color: var(--font-color);
}
@@ -404,7 +404,6 @@ article header h1 a {
.post h6:hover a:focus,
.post h6:hover a:active {
color: var(--link-state-color);
- border-bottom: none;
}
.post-info {
diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html
index 8a9dbb1..7e34fa1 100644
--- a/layouts/_default/_markup/render-heading.html
+++ b/layouts/_default/_markup/render-heading.html
@@ -1,3 +1,3 @@
<h{{ .Level }} id="{{ .Anchor | safeURL }}">{{ .Text | safeHTML }}
-<span><a href="#{{ .Anchor }}"><svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24"><path d="M6.188 8.719c.439-.439.926-.801 1.444-1.087 2.887-1.591 6.589-.745 8.445 2.069l-2.246 2.245c-.644-1.469-2.243-2.305-3.834-1.949-.599.134-1.168.433-1.633.898l-4.304 4.306c-1.307 1.307-1.307 3.433 0 4.74 1.307 1.307 3.433 1.307 4.74 0l1.327-1.327c1.207.479 2.501.67 3.779.575l-2.929 2.929c-2.511 2.511-6.582 2.511-9.093 0s-2.511-6.582 0-9.093l4.304-4.306zm6.836-6.836l-2.929 2.929c1.277-.096 2.572.096 3.779.574l1.326-1.326c1.307-1.307 3.433-1.307 4.74 0 1.307 1.307 1.307 3.433 0 4.74l-4.305 4.305c-1.311 1.311-3.44 1.3-4.74 0-.303-.303-.564-.68-.727-1.051l-2.246 2.245c.236.358.481.667.796.982.812.812 1.846 1.417 3.036 1.704 1.542.371 3.194.166 4.613-.617.518-.286 1.005-.648 1.444-1.087l4.304-4.305c2.512-2.511 2.512-6.582.001-9.093-2.511-2.51-6.581-2.51-9.092 0z"/></svg></a></span>
+<span><a href="#{{ .Anchor }}">#</a></span>
</h{{ .Level }}> \ No newline at end of file