Re-work display of revision list entries

This commit is contained in:
Jonas Schäfer 2019-04-05 17:38:25 +02:00
parent e77875ede6
commit 57c0897ab1
2 changed files with 23 additions and 4 deletions

View File

@ -577,9 +577,11 @@ content: "XEP-<xsl:value-of select='/xep/header/number'/>";
<xsl:template match='revision'>
<li>
<div class='revision-head'>Version <xsl:value-of select='version'/><xsl:text> </xsl:text>(<xsl:value-of select='date'/>)</div>
<xsl:variable name='anchor'>revision-history-v<xsl:value-of select='version'/></xsl:variable>
<xsl:attribute name='id'><xsl:value-of select='$anchor'/></xsl:attribute>
<div class='revision-head'>Version <xsl:value-of select='version'/><xsl:text> </xsl:text>(<xsl:value-of select='date'/>)<xsl:call-template name='anchor-link'><xsl:with-param name='anchor' select='$anchor'/></xsl:call-template></div>
<xsl:apply-templates select='remark'/>
<p>(<xsl:value-of select='initials'/>)</p>
<div class='revision-author'><xsl:value-of select='initials'/></div>
</li>
</xsl:template>

View File

@ -1317,7 +1317,9 @@
h3 > a.anchor-link,
h4 > a.anchor-link,
h5 > a.anchor-link,
h6 > a.anchor-link {
h6 > a.anchor-link,
div.revision-head > a.anchor-link {
break-before: auto;
visibility: hidden;
}
@ -1326,7 +1328,8 @@
h3:hover > a.anchor-link,
h4:hover > a.anchor-link,
h5:hover > a.anchor-link,
h6:hover > a.anchor-link {
h6:hover > a.anchor-link,
div.revision-head:hover > a.anchor-link {
visibility: visible;
}
@ -1393,6 +1396,20 @@
font-weight: bold;
font-size: 128.57143%;
}
div.revision-author {
text-align: right;
margin-bottom: 1.5em;
}
p + div.revision-author,
ul + div.revision-author {
margin-top: -1.5em;
}
div.revision-author:before {
content: "— ";
}
}
@media screen and ( min-width: 75em ) {