]> xenbits.xensource.com Git - libvirt.git/commitdiff
docs: Space out entries in news.html
authorPeter Krempa <pkrempa@redhat.com>
Fri, 21 Jun 2019 08:01:00 +0000 (10:01 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 21 Jun 2019 12:23:09 +0000 (14:23 +0200)
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>
docs/libvirt.css
docs/news-html.xsl

index 4c7afc40429000a88383021d777e601c0382073d..6639b1df64509f1c2ef93216b741d98493ff25f5 100644 (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;
+}
index 4d407980286fc258abf9f735d9efc2d3adff913c..2b02578cb93e771ed721301f057fbc39057a73fc 100644 (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>
   <!-- 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>