Skip to content

Commit

Permalink
Tweak the FN layout to make scrolling better
Browse files Browse the repository at this point in the history
  • Loading branch information
ajrbyers authored and mauromsl committed Jan 18, 2022
1 parent 5716b52 commit f0ff0bf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/transform/xsl/default.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -430,18 +430,18 @@
</xsl:template>

<xsl:template match="fn-group/fn">
<li>
<xsl:variable name="fn-number">
<xsl:number level="any" count="fn[not(ancestor::front)]" from="article | sub-article | response"/>
</xsl:variable>
<li id="fn{$fn-number}">
<span class="footnotemarker" id="n{$fn-number}"></span>
<xsl:apply-templates/>
[<a href="#nm{$fn-number}"><sup>^</sup></a>]
</li>
</xsl:template>

<xsl:template match="fn-group/fn/p">
<xsl:variable name="fn-number">
<xsl:number level="any" count="fn[not(ancestor::front | ancestor::table-wrap-foot)]" from="article | sub-article | response"/>
</xsl:variable>
<span class="footnotemarker" id="fn{$fn-number}"></span>
<xsl:apply-templates/>
[<span class="footnotemarker" id="n{$fn-number}"><a href="#nm{$fn-number}"><sup>^</sup></a></span>]
</xsl:template>

<xsl:template match="author-notes/fn[@fn-type='con']/p">
Expand Down

0 comments on commit f0ff0bf

Please sign in to comment.