-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/* Styles for section anchors */ | ||
a.anchor-section::before {content: '#';font-size: 80%;} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/* Styles for section anchors */ | ||
a.anchor-section {margin-left: 10px; visibility: hidden; color: inherit;} | ||
.hasAnchor:hover a.anchor-section {visibility: visible;} | ||
ul > li > .anchor-section {display: none;} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
document.addEventListener('DOMContentLoaded', function () { | ||
// If section divs is used, we need to put the anchor in the child header | ||
const headers = document.querySelectorAll("div.hasAnchor.section[class*='level'] > :first-child") | ||
|
||
headers.forEach(function (x) { | ||
// Add to the header node | ||
if (!x.classList.contains('hasAnchor')) x.classList.add('hasAnchor') | ||
// Remove from the section or div created by Pandoc | ||
x.parentElement.classList.remove('hasAnchor') | ||
}) | ||
}) |
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.vembedr { | ||
margin-bottom: 10px; | ||
} | ||
|
||
.vembedr-rounded { | ||
display: inline-block; | ||
border-radius: 15px; | ||
overflow: hidden; | ||
} | ||
|
||
.vembedr-rounded iframe { | ||
display: block; | ||
border: none; | ||
} |
Large diffs are not rendered by default.