Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
Merge pull request #130 from dillonzq/fix/typeit_header_bug
Browse files Browse the repository at this point in the history
fix(typeit): fix a TypeIt header link style bug
  • Loading branch information
dillonzq authored Mar 9, 2020
2 parents 2255cdb + 7f228d6 commit 1f5b891
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions assets/css/_page/_single.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
font-weight: bolder;
}

& > a:first-child::before {
& > .header-mark::before {
content: "|";
margin-right: .3125rem;
color: $single-link-color;
Expand All @@ -77,7 +77,7 @@
}
}

h2 > a:first-child::before {
h2 > .header-mark::before {
content: "#";
}

Expand Down
2 changes: 1 addition & 1 deletion assets/js/theme.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/js/theme.min.js.map

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/js/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
for (let num = 1; num <= 6; num++) {
this.util.forEach(document.querySelectorAll('.page.single .content > h' + num), (header) => {
header.classList.add('headerLink');
header.innerHTML = `<a href="#${header.id}"></a>${header.innerHTML}`;
header.innerHTML = `<a href="#${header.id}" class="header-mark"></a>${header.innerHTML}`;
});
}
}
Expand Down

0 comments on commit 1f5b891

Please sign in to comment.