Settings reference style more consistent with rest of reference pages

This commit is contained in:
Marcus Weseloh 2020-11-16 22:29:42 +01:00
parent 602a2bcdc1
commit 4a7d7ad688
2 changed files with 29 additions and 1 deletions

View file

@ -257,3 +257,26 @@ table.directory tr {
width: 100%;
height: auto;
}
.setting-item {
border-left: 1px solid #DFE5F1;
padding-bottom: 0.5em;
border-top-left-radius: 4px;
}
.setting-item h1 {
width: 100%;
padding: 0.3em 0 0.3em 10px;
box-sizing: border-box;
background: #DFE5F1;
border: 0;
font-size: 1.5em;
font-weight: normal;
border-top-right-radius: 4px;
border-top-left-radius: 4px;
}
.setting-item dl,
.setting-item p {
margin-left: 10px;
}

View file

@ -34,9 +34,11 @@
<!-- Setting template -->
<xsl:template match="*" mode="Setting">
\htmlonly
<div class="setting-item">
\endhtmlonly
\section <xsl:value-of select="concat('settings_', name(..), '_', translate(name, '.', '_'))" /><xsl:text> </xsl:text><xsl:value-of select="concat(name(..), '.', name)" />
<xsl:text>&#xa;</xsl:text>
\par Type
<xsl:choose>
<xsl:when test="type = 'bool'">Boolean (int)</xsl:when>
@ -84,6 +86,9 @@
\htmlonly
<xsl:copy-of select="desc"/>
\endhtmlonly
\htmlonly
</div>
\endhtmlonly
</xsl:template>
</xsl:stylesheet>