mirror of
https://github.com/moparisthebest/xeps
synced 2025-01-30 23:10:10 -05:00
Re-work display of revision list entries
This commit is contained in:
parent
e77875ede6
commit
57c0897ab1
6
xep.xsl
6
xep.xsl
@ -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>
|
||||
|
||||
|
21
xmpp.v2.css
21
xmpp.v2.css
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user