portal: add reusable background-* style

This commit is contained in:
Astro 2019-05-02 23:21:14 +02:00
parent 143412312b
commit 329b909332
2 changed files with 5 additions and 1 deletions

View File

@ -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;

View File

@ -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'">