diff options
author | EuAndreh <eu@euandre.org> | 2020-08-15 16:18:35 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-08-15 16:19:12 -0300 |
commit | 9eb58da4307e39556ec600f581dbf49ef3a6c188 (patch) | |
tree | f23247822bd31ac49851432c31ea5b02ed906554 /styles.css | |
parent | about: Add link to boneco.euandreh.xyz (diff) | |
download | euandre.org-9eb58da4307e39556ec600f581dbf49ef3a6c188.tar.gz euandre.org-9eb58da4307e39556ec600f581dbf49ef3a6c188.tar.xz |
Adapt add-anchor-to-header-from-header-id to handle <hn><a></a></hn>
Now the hook creates a wrapping <span> to put the header and it's existing link
inside, and add the new anchor as a sibling.
Diffstat (limited to '')
-rw-r--r-- | styles.css | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -112,15 +112,27 @@ a.code-line-anchor:hover { /* Header anchor */ -a.header-anchor { +span.header-anchor { color: black; text-decoration: none; + display: block; + margin-bottom: 15px; } -a.header-anchor img { +span.header-anchor h1, +span.header-anchor h2, +span.header-anchor h3, +span.header-anchor h4, +span.header-anchor h5, +span.header-anchor h6 { + display: inline; +} + + +span.header-anchor img { visibility: hidden; } -a.header-anchor:hover img { +span.header-anchor:hover img { visibility: visible; } |