portal: add reusable background-* style
This commit is contained in:
parent
143412312b
commit
329b909332
|
@ -379,6 +379,10 @@ abbr.dtstart, abbr.dtend {
|
|||
vertical-align: middle;
|
||||
margin: 0.3em 0.15em 0;
|
||||
padding: 0;
|
||||
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
#portal article > a {
|
||||
display: block;
|
||||
|
|
|
@ -418,7 +418,7 @@
|
|||
<a href="{link}">
|
||||
<xsl:if test="content-image">
|
||||
<xsl:attribute name="style">
|
||||
background: url('<xsl:value-of select="content-image"/>') 50% 50% no-repeat;
|
||||
background-image: url('<xsl:value-of select="content-image"/>');
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@class = 'wiki'">
|
||||
|
|
Loading…
Reference in New Issue