FIX: Remove anchor generated by theme component (#13)

Core adds anchors to all headings.
This commit is contained in:
Bianca Nenciu 2021-07-29 17:06:31 +03:00 committed by GitHub
parent c64a82b4b8
commit 113d3a8612
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 28 deletions

View File

@ -133,23 +133,6 @@
font-size: 0.8em;
}
}
.d-toc-post-heading {
.d-toc-anchor-link {
font-size: initial;
color: transparent;
transition: color 0.15s linear;
:not(.rtl) & {
margin-left: 5px;
}
.rtl & {
margin-right: 5px;
}
}
&:hover .d-toc-anchor-link {
color: var(--primary-medium, $primary-medium);
opacity: 0.6;
}
}
#bottom-anchor {
opacity: 0;
height: 0;

View File

@ -31,16 +31,6 @@
return cleanItem;
};
const createAnchors = id => {
const link = $("<a/>", {
href: `#${id}`,
class: "d-toc-anchor-link",
html: linkIcon
});
return link;
};
const setUpTocItem = function (item) {
const unique = item.attr("id");
const text = item.text();
@ -302,7 +292,6 @@
id: id,
"data-d-toc": id
})
.append(createAnchors(id))
.addClass("d-toc-post-heading");
});