Skip to content

Commit

Permalink
backport fix for #4530 update default stylesheet to underline active …
Browse files Browse the repository at this point in the history
…footnote link in footnotes list
  • Loading branch information
Larhzu authored and mojavelinux committed Jan 3, 2024
1 parent 4041398 commit 0c56d24
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ Compliance::

* Support logger in Ruby 3.3 by instantiating super class (#4493) (*@mtasaka*)

Improvements::

* Modify default stylesheet to add text decoration to active footnote number link in footnotes list (#4530) (@Larhzu)

Bug Fixes::

* Nested dlist attached using list continuation should not consume detached paragraph (#3535)
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 @@ -318,7 +318,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 @@ -1907,7 +1907,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 0c56d24

Please sign in to comment.