mirror of
https://github.com/dillonzq/LoveIt.git
synced 2025-01-10 04:02:46 +01:00
Merge pull request #130 from dillonzq/fix/typeit_header_bug
fix(typeit): fix a TypeIt header link style bug
This commit is contained in:
commit
1f5b8912e4
5 changed files with 6 additions and 6 deletions
|
@ -66,7 +66,7 @@
|
|||
font-weight: bolder;
|
||||
}
|
||||
|
||||
& > a:first-child::before {
|
||||
& > .header-mark::before {
|
||||
content: "|";
|
||||
margin-right: .3125rem;
|
||||
color: $single-link-color;
|
||||
|
@ -77,7 +77,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
h2 > a:first-child::before {
|
||||
h2 > .header-mark::before {
|
||||
content: "#";
|
||||
}
|
||||
|
||||
|
|
2
assets/js/theme.min.js
vendored
2
assets/js/theme.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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}`;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue