fix images & title styling

This commit is contained in:
skyanth 2019-06-04 14:16:08 +02:00
parent 3b39dd4bfc
commit 19e55b4569
2 changed files with 9 additions and 15 deletions

View File

@ -624,7 +624,12 @@ there.
}
h1, h2, h3, h4 {
margin-top: 2rem;
margin-top: 5rem;
}
img {
width: 100%;
height: auto;
}
</xsl:template>

View File

@ -586,8 +586,8 @@
<!-- hide any attributes that are not explicitly handled -->
<xsl:template match="@*"/>
<xsl:template match="@id">
<!-- copy all ids! -->
<xsl:template match="@id | @src | @alt">
<!-- copy these! -->
<xsl:copy/>
</xsl:template>
@ -596,23 +596,12 @@
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="br | p | ul | ol | li | pre | div">
<xsl:template match="br | p | ul | ol | li | pre | div | img">
<xsl:copy copy-namespaces="no">
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
<!--<!-\- special case for p in summary table to avoid checkiflast - all other elements can ignore mode -\->
<xsl:template match="*" mode="summarytable">
<xsl:apply-templates select="."/>
</xsl:template>
<!-\- p is more specific so has higher prio -\->
<xsl:template match="p" mode="summarytable">
<xsl:apply-templates mode="summarytable"/>
</xsl:template>-->
<xsl:template match="a">
<xsl:variable name="destination">
<xsl:choose>