From 113d3a86120837b8d130ba73e4c438ed515151f2 Mon Sep 17 00:00:00 2001 From: Bianca Nenciu Date: Thu, 29 Jul 2021 17:06:31 +0300 Subject: [PATCH] FIX: Remove anchor generated by theme component (#13) Core adds anchors to all headings. --- common/common.scss | 17 ----------------- common/header.html | 11 ----------- 2 files changed, 28 deletions(-) diff --git a/common/common.scss b/common/common.scss index 61e53ce..e96c190 100644 --- a/common/common.scss +++ b/common/common.scss @@ -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; diff --git a/common/header.html b/common/header.html index 5177765..ffbd187 100644 --- a/common/header.html +++ b/common/header.html @@ -31,16 +31,6 @@ return cleanItem; }; - const createAnchors = id => { - const link = $("", { - 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"); });