mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 23:38:56 +00:00
fix(typeit): fix a TypeIt header link style bug
This commit is contained in:
@@ -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: "#";
|
||||
}
|
||||
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -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}`;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user