Template:2012France/lp-layout-1: Difference between revisions

From Donate
Jump to navigation Jump to search
Content deleted Content added
for Wikimedia France pages
 
rm much obsolete code, some deprecated html
 
Line 4: Line 4:
/* Hide some stock page elements */
/* Hide some stock page elements */
#firstHeading, #contentSub, #siteSub {
#firstHeading, #contentSub, #siteSub {
display: none;
display: none;
}
/* Pitch */
#pitch {
height: 236px;
background-image: url(</html>{{#ifeq:{{{dir}}}|rtl|<html>http://upload.wikimedia.org/wikipedia/foundation/9/9a/Jimmy_Appeal_2009-flipped.jpg</html>|<html>http://upload.wikimedia.org/wikipedia/foundation/d/dc/Jimmy_Appeal_2009.jpg</html>}}<html>);
background-position: </html>{{#ifeq:{{{dir}}}|rtl|left|right}}<html> top;
background-repeat: no-repeat;
background-color: #1e1e1e;
border: 1px solid gray;
border-bottom-width: 0;
}
#pitch-head {
width: 50%;
font-size: 1.75em;
line-height: 1.5em;
color: white;
margin-top: 16px;
margin-</html>{{#ifeq:{{{dir}}}|rtl|right|left}}<html>: 24px;
}
#pitch-body {
width: 50%;
font-size: 1em;
line-height: 1.5em;
color: white;
margin-top: 16px;
margin-</html>{{#ifeq:{{{dir}}}|rtl|right|left}}<html>: 24px;
}
}

/* Appeal */
/* Appeal */
#appeal {
#appeal {
background-color: #f3f3f3;
background-color: #f3f3f3;
border: 1px solid silver;
border: 1px solid silver;
border-right-width: 0;
border-right-width: 0;
padding: 24px;
padding: 24px;
padding-top: 16px;
padding-top: 16px;
}
}
#appeal-head {
#appeal-head {
font-size: 1.5em;
font-size: 1.5em;
line-height: 1.125em;
line-height: 1.125em;
padding-bottom: 0.5em;
padding-bottom: 0.5em;
padding-top: 0.125em;
padding-top: 0.125em;
}
}
#appeal-body {
#appeal-body {
padding: 0.2em 0em;
padding: 0.2em 0em;
font-size: 1.125em;
font-size: 1.125em;
margin-bottom: 1em;
margin-bottom: 1em;
}
}

/* Donate */
/* Donate */
#donate {
#donate {
width: 300px;
width: 300px;
background-color: #a9d9a3;
background-color: #a9d9a3;
border: 1px solid #5eac58;
border: 1px solid #5eac58;
padding: 24px;
padding: 24px;
padding-top: 16px;
padding-top: 16px;
}
}
#donate-head {
#donate-head {
font-size: 1.5em;
font-size: 1.5em;
line-height: 1.125em;
line-height: 1.125em;
padding-bottom: 0.5em;
padding-bottom: 0.5em;
padding-top: 0.125em;
padding-top: 0.125em;
border-color: #5eac58;
border-color: #5eac58;
}
}
#donate-body {
#donate-body {
font-size: 1.25em;
font-size: 1.25em;
margin-bottom: 1em;
margin-bottom: 1em;
}
}

#donate-body-small {
#donate-body-small {
font-size: .75em;
font-size: .75em;
Line 76: Line 51:
}
}


/* Same button CSS from most of the notices */
.donate-button {
float: left;
height: 30px;
text-align: center;
background-color: transparent;
cursor: pointer;
}
.donate-button-start {
float: left;
background-image: url(http://upload.wikimedia.org/centralnotice/images/2009/button-glossy.png);
background-position: left top;
width: 13px;
height: 30px;
}
.donate-button-end {
float: left;
background-image: url(http://upload.wikimedia.org/centralnotice/images/2009/button-glossy.png);
background-position: right bottom;
width: 13px;
height: 30px;
}
.donate-button-label {
float: left;
background-image: url(http://upload.wikimedia.org/centralnotice/images/2009/button-glossy.png);
background-position: center center;
background-repeat: repeat-x;
font-family: sans-serif;
font-size: 1em;
font-weight: bold;
color: white;
line-height: 28px;
height: 28px;
white-space: nowrap;
}
input.button-navyblue, select#input_currency_code {
input.button-navyblue, select#input_currency_code {
font-size: 95%;
font-size: 95%;
}
}
</style>
</style>
</html>
<script type="text/javascript">
<table width="100%" style="width: 100%; border: none;">
/* Configuration */
var medium = 'jimmy_letter';
/* Functions */
// Sends user to the donation page
function goToDonationPage() {
// Extracts the value of a given URL parameter from the current window location
function get( name ) {
var v = ( new RegExp( '[\\?\x26]' + name.replace( /\[|\]/g, '\\\$1' ) + '=([^\x26#]*)' ) ).exec( window.location.href );
return v == null ? '' : v[1];
}
// Change the window's location using configuration and parameters
window.location =
'http://wikimediafoundation.org/wiki/Support_Wikipedia2' +
'?utm_medium=' + medium +
'\x26utm_campaign=' + get( 'utm_campaign' ) +
'\x26utm_source=' + get( 'utm_source' );
}
</script></html>{{#ifeq:{{{masthead}}}|true|<div id="pitch">
<div id="pitch-head">{{{picture-text}}}</div>
<div id="pitch-body">{{{picture-text-attrib}}}</div>
</div>}}<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<tr>
<td id="appeal" valign="top">
<td id="appeal" valign="top">

Latest revision as of 15:53, 16 October 2012

{{{appeal-title}}}