Some small fixes for Foundry

git-svn-id: https://svn.libreccm.org/ccm/trunk@2928 8810af33-2d31-482b-a856-94f89814c4df
master
pb 2014-10-29 13:25:01 +00:00
parent b1c57804cd
commit b91eb6513f
2 changed files with 14 additions and 4 deletions

View File

@ -412,7 +412,7 @@
<xsl:apply-templates/> <xsl:apply-templates/>
</figure> </figure>
</xsl:template> </xsl:template>
<xsl:template match="h1"> <xsl:template match="h1">
<h1> <h1>
<xsl:call-template name="foundry:set-id-and-class"/> <xsl:call-template name="foundry:set-id-and-class"/>

View File

@ -61,7 +61,9 @@
<!--<pre><xsl:value-of select="concat('layout = ', ./@layout)"/></pre>--> <!--<pre><xsl:value-of select="concat('layout = ', ./@layout)"/></pre>-->
<div> <div>
<xsl:if test="$use-default-styles"> <xsl:if test="$use-default-styles">
<!-- Nothing at the moment --> <xsl:attribute name="style">
<xsl:value-of select="'position: relative; width: 100%'"/>
</xsl:attribute>
</xsl:if> </xsl:if>
<xsl:if test="$class != ''"> <xsl:if test="$class != ''">
<xsl:attribute name="class" select="$class"/> <xsl:attribute name="class" select="$class"/>
@ -113,8 +115,16 @@
<!--<pre>grid-workspace-row-column</pre>--> <!--<pre>grid-workspace-row-column</pre>-->
<div> <div>
<xsl:if test="$use-default-styles"> <xsl:if test="$use-default-styles">
<xsl:attribute name="style" <xsl:choose>
select="concat('float:left; width = ', current(), ';')"/> <xsl:when test="current() = '100%'">
<!--<xsl:attribute name="style"
select="concat('float:left; width = ', current(), ';')"/>-->
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="style"
select="concat('float:left; width: ', current(), ';')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:if> </xsl:if>
<xsl:if test="$class != ''"> <xsl:if test="$class != ''">
<xsl:attribute name="class" select="$class"/> <xsl:attribute name="class" select="$class"/>