docs: Space out entries in news.html

The header for the news entry blends together with the text and other
entries. This patch tries to space them out somewhat for better visual
separation.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
Peter Krempa 2019-06-21 10:01:00 +02:00
parent 953f046d81
commit 2f0de10e29
2 changed files with 24 additions and 4 deletions

View File

@ -591,3 +591,18 @@ td.enumvalue {
.deprecatedhv {
color: darkred;
}
ul.news-section-content {
margin-top: 0.5em;
}
ul.news-section-content li dl dt {
margin: 0;
}
ul.news-section-content li dl dd {
margin-left: 1em;
margin-right: 0;
margin-top: 0.5em;
margin-bottom: 0.5em;
}

View File

@ -58,7 +58,7 @@
<xsl:value-of select="@title"/>
</strong>
<xsl:if test="*">
<ul>
<ul class="news-section-content">
<xsl:apply-templates select="change"/>
</ul>
</xsl:if>
@ -68,8 +68,14 @@
<!-- Change -->
<xsl:template match="change">
<li>
<xsl:apply-templates select="summary"/>
<xsl:apply-templates select="description"/>
<dl>
<dt>
<xsl:apply-templates select="summary"/>
</dt>
<dd>
<xsl:apply-templates select="description"/>
</dd>
</dl>
</li>
</xsl:template>
@ -80,7 +86,6 @@
<!-- Change description -->
<xsl:template match="description">
<br/>
<xsl:apply-templates/>
</xsl:template>