Skip to content

Commit

Permalink
resolves #4530 by underlining active footnote link (PR #4534)
Browse files Browse the repository at this point in the history
update default stylesheet to underline active footnote link in footnotes list
  • Loading branch information
Larhzu committed Jan 3, 2024
1 parent 7d85604 commit 6986bff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ Improvements::
* Remove empty line at top of table cells in manpage output (#4482) (*@strager*)
* Return `nil` if name passed to `Asciidoctor::SafeMode.value_for_name` is not recognized (#3526)
* Modify default stylesheet to honor text-* roles on quote blocks
* Modify default stylesheet to add text decoration to active footnote number link in footnotes list (#4530) (@Larhzu)

Bug Fixes::

Expand Down
2 changes: 1 addition & 1 deletion data/stylesheets/asciidoctor-default.css
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ a.image{text-decoration:none;display:inline-block}
a.image object{pointer-events:none}
sup.footnote,sup.footnoteref{font-size:.875em;position:static;vertical-align:super}
sup.footnote a,sup.footnoteref a{text-decoration:none}
sup.footnote a:active,sup.footnoteref a:active{text-decoration:underline}
sup.footnote a:active,sup.footnoteref a:active,#footnotes .footnote a:first-of-type:active{text-decoration:underline}
#footnotes{padding-top:.75em;padding-bottom:.75em;margin-bottom:.625em}
#footnotes hr{width:20%;min-width:6.25em;margin:-.25em 0 .75em;border-width:1px 0 0}
#footnotes .footnote{padding:0 .375em 0 .225em;line-height:1.3334;font-size:.875em;margin-left:1.2em;margin-bottom:.2em}
Expand Down
3 changes: 2 additions & 1 deletion src/stylesheets/asciidoctor.css
Original file line number Diff line number Diff line change
Expand Up @@ -1748,7 +1748,8 @@ sup.footnoteref a {
}

sup.footnote a:active,
sup.footnoteref a:active {
sup.footnoteref a:active,
#footnotes .footnote a:first-of-type:active {
text-decoration: underline;
}

Expand Down

0 comments on commit 6986bff

Please sign in to comment.