Exchange first slide on front page with PMPC (#432)
the build was successful Details

This involves a new possible XML value called text2 which we need in this slide.
This commit is contained in:
alex.busch 2018-08-10 07:38:22 +02:00 committed by Gogs
parent 86b8c67462
commit 712de0ee43
7 changed files with 44 additions and 6 deletions

BIN
graphics/pmpc_slider.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

View File

@ -138,6 +138,10 @@
<xsl:if test=" text != '' ">
<p class="text"><xsl:value-of select="text" /></p>
</xsl:if>
<xsl:if test=" text2 != '' ">
<p class="text2"><xsl:value-of select="text2" /></p>
</xsl:if>
<!-- Author (if existing) -->
<xsl:if test="author != ''">

View File

@ -219,9 +219,35 @@ img.signatory-logo {
#summit16 img:last-of-type { bottom: 10%; right: 5%; width: 50%; max-width: 400px; }
@media (min-width: 800px) { #summit16 img:first-of-type {top: 20%;} }
#box15years {
.campaign-box-center;
background: url('/graphics/15years-campaignbox.png') center no-repeat #666;
#boxpmpc {
background: url('/graphics/pmpc_slider.jpg') left 33% no-repeat #666;
background-size: cover;
text-shadow: 0px 1px 8px rgb(0,0,0);
.text, .text2 {
.quote;
}
.text, .text2 {
display: block;
padding: 1.25em;
min-width: 120px;
font-size: 1.25em;
hyphens: none;
text-align: center;
}
@media (min-width: @screen-sm) {
.text {
float: left;
width: 30%;
}
.text2 {
float: right;
width: 30%;
}
background-position: center;
}
}
#dfd {

2
look/fsfe.min.css vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<campaigns>
<campaign running="yes" id="boxpmpc">
<text>Why is software created using taxpayers' money not released as Free Software?</text>
<text2>If it is public money, it should be public code as well.</text2>
<link>/campaigns/pmpc</link>
</campaign>
</campaigns>

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<campaigns>
<campaign running="yes" id="box15years">
<campaign running="no" id="box15years">
<text></text>
<link>/campaigns/15years</link>
</campaign>