Files @ 6b9bdb335e83
Branch filter:

Location: website/www/conservancy/static/forms.css

bkuhn
Modify PayPal "no_shipping" var via t-shirt choice

According to
https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/

no_shipping has the following values:
0: prompt for an address, but do not require one
1: do not prompt for an address
2: prompt for an address, and require one
The default is 0.

Ideally, any time they change wantGift, even in a pure HTML form, we'd
change it between 0 and 2 as appropriate (i.e., we need the address if
they want the t-shirt).

However, I couldn't find an easy way to make this modification in pure
CSS or HTML, so it only happens in Javascript-enabled browsers.

This is still graceful degradation, since the only impact is in cases
where a non-Javascript user fails to give us an address, and we have to
email later to get the shipping address.
#supporter-form label {
    display: inline-block;
    width: 200px;
    text-align: right;
}
#supporter-form-inputs {
    float: left;
}
#supporter-form-submit {
    padding-left: 20em;
    padding-top: 40px;
    float: center;
}

#supporter-form div {
    margin-top: 1em;
}

.form-error {
    display: none;
    margin-left: 10px;
    color: green;
}		

.form-error-show {
    color: red;
    margin-left: 10px;
}

input.invalid, textarea.invalid {
    border: 2px solid red;
}

input.valid, textarea.valid {
    border: 2px solid green;
}

.supporter-type-selector {
    font-size: 125%;
    text-align: center;
    width: 80%;
    align: left;
}

.supporter-type-selection {
    clear: both;
    padding-bottom: 60px;
    width: 80%;
    align: left;
}

img.appeal {
    float: left;
    padding-right: 2em;
    min-width: 10%;
    max-width: 100%;
    height: auto;
}

img.appeal-header {
    max-width: 100%;
    height: auto;
}

img.appeal-footer {
    max-width: 40%;
    float: right;
    width: 10%;
    min-width: 1%;
    height: auto;
}