Template:Styles/Default.css: Difference between revisions

From Donate
Jump to navigation Jump to search
Content deleted Content added
No edit summary
spacing for errors
Line 58: Line 58:
font-weight: 500;
font-weight: 500;
font-size: 14px;
font-size: 14px;
}
.amount-options .lp-error {
margin: 0 4px;
}
}



Revision as of 16:46, 28 March 2019

/* === Template:Styles/2016 oojs ui.css === */

*,
*:before,
*:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

/* Hide these until the required JavaScript fiddling has been done */
#actual-form,
.consider-amounts {
    display: none;
}

#actual-form-loading {
    text-align: center;
    line-height: 1.2;
}
.error-nojs {
    max-width: 300px;
    color: #d33;
}

/* Hide default MediaWiki stuff we don't want */

#mw-page-base, #mw-head-base,
#mw-panel .portal,
#mw-head, #catlinks,
#firstHeading, #contentSub, #siteSub,
#jump-to-nav, .uls-tipsy {
    display: none;
}

/* Re-add gradient background */
body {
    background-image: linear-gradient(to bottom, #ffffff 40px, #f6f6f6 80px);
    background-position: top;
    background-repeat: repeat-x;
    background-color: #f6f6f6;
}

#content {
    background-color: transparent;
    background-image: none;
    border: none;
    padding-top: 32px;
}

/* Link colors for visibility */
a, a:visited {
    color: #36c;
}

.lp-error {
    color: #d33;
    font-weight: 500;
    font-size: 14px;
}
.amount-options .lp-error {
    margin: 0 4px;
}

/* --- Overall layout of the landing page --- */

#main-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}
body.rtl #main-wrapper {
    direction: rtl;
}

#form-wrapper {
    max-width: 380px;
    background-color: #fff;
    border: 1px solid #a2a9b1;
    border-radius: 2px;
    padding: 24px;
    color: #222;
}

#appeal-wrapper {
    flex: 1;
    padding-left: 0;
    padding-right: 28px;
}
body.rtl #appeal-wrapper {
    padding-left: 28px;
    padding-right: 0;
}

/* --- Appeal ---*/

#appeal {
    font-size: 16px;
}

#appeal h2,
#appeal-head {
    font-size: 21px;
    padding-bottom: 10px;
    border-bottom: 1px solid #a2a9b1;
    margin-bottom: 21px;
}

.quote-wrapper {
    padding: 140px 0;
}

/* --- Hide non-monthly capable payment methods on monthly forms --- */

.form-monthly .not-monthly-capable {
    display: none;
}

/* --- Form --- */

#donate-form-wrapper fieldset {
    width: 100%;
    border: 0;
    margin: 0 auto 8px 0;
    padding: 0;
}

.frequency-options ul,
.amount-options ul {
    display: table;
    table-layout: fixed;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.frequency-options ul li,
.amount-options ul li {
    display: table-cell;
    padding: 4px;
    vertical-align: top;
}

/* --- Subheaders ---*/

#radiobuttons-table-header,
#paymenttype-table-header {
    display: block;
    margin-bottom: 6px;
    text-align: center;
    font-weight: bold;
}

/* --- Commmon button styles --- */

.frequency-options input[type="radio"],
.amount-options input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0 0 0 0);
}

.frb-btn,
.payment-method-button {
    display: block;
    height: 50px;
    line-height: 50px;
    padding: 0 4px;
    border-radius: 2px;
    text-align: center;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 100ms, color 100ms, border-color 100ms, box-shadow 100ms;
    background-color: #f8f9fa;
    color: #222;
    border: 1px solid #a2a9b1;
}

.frb-btn:hover {
    background-color: #fff;
    color: #444;
    border-color: #a2a9b1;
}

.frb-btn:active {
    background-color: #c8ccd1;
    color: #000;
    border-color: #72777d;
    box-shadow: none;
}

input[type="radio"]:checked + .frb-btn {
    background-color: #2a4b8d;
    color: #fff;
    border-color: #2a4b8d;
}

.frb-btn:focus,
.payment-method-button:focus {
    outline: 0;
    border-color: #36c;
    box-shadow: inset 0 0 0 1px #36c;
}

input[type="radio"]:focus + .frb-btn,
input[type="radio"]:checked + .frb-btn:focus {
    box-shadow: inset 0 0 0 1px #36c, inset 0 0 0 2px #fff;
}

.payment-method-button {
    color: #36c;
}
.payment-method-button:hover {
    background-color: #fff;
    border-color: #447ff5;
}
.payment-method-button:active {
    background-color: #eff3fa;
    color: #2a4b8d;
    border-color: #2a4b8d;
    box-shadow: none;
}

/* --- Donation Amounts --- */

.amount-options li {
    white-space: nowrap;
}
.amount-options label {
    height: 60px;
    line-height: 60px;
    font-size: 15px;
}

/* Smaller font size for countries with v long amounts */
.country-CO .amount-options label,
.country-CR .amount-options label,
.country-KR .amount-options label,
.country-PY .amount-options label,
.country-VN .amount-options label {
    font-size: 13px;
}

.input_amount_other label {
    display: table-cell;
    vertical-align: middle;
    padding: 0 8px;
}

.input_amount_other label span {
    display: block;
    font-size: 12px;
    line-height: 1;
    margin-bottom: 2px;
    white-space: normal;
}

.input_amount_other input {
    display: block;
    width: 100%;
    border: 1px solid #a2a9b1;
    color: #222;
    padding: 2px;
    border-radius: 2px;
    direction: ltr;
    text-align: center;
    font-family: inherit;
    font-size: 16px; /* must be >=16px or mobile Safari zooms in when selected */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* --- Payment method buttons --- */

.payment-method-div {
    padding: 4px 4px;
}

/* Hide extra empty <p> tags between buttons */
.payment-method-div ~ p {
    display: none;
}

.payment-method-button {
    display: block;
    margin: 0;
    width: 100%;
    font-size: 15px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    white-space: normal;
    padding: 0;
    height: 50px;
    line-height: initial;
}

/* --- Infobox ("Where your donation goes") --- */

#infobox-wrapper {
    font-size: 13px;
    line-height: 1.4;
    color: #54595d;
    font-weight: normal;
    padding: 8px 4px 0 4px;
}

#infobox-wrapper h2 {
    font-size: 16px;
    font-weight: bold;
    color: inherit;
    border: 0;
    margin-bottom: 8px
}

/* --- Privacy and links --- */

#donate-footer {
    width: 100%;
    text-align: center;
    line-height: 1.4;
    padding: 24px 15% 8px;
}

#donate-footer > div {
    margin-bottom: 16px;
}

.donate-smallprint,
#donor-policy-block {
    font-size: 12px;
}

.form-info-links {
    list-style: none;
    margin: 0;
    text-align: center;
}
.form-info-links li {
    display: inline-block;
}
.form-info-links a {
    padding: 14px;
}

/* --- Footer --- */

#footer-info,
#footer-places {
    display: none;
}
div#footer #footer-icons {
    float: none;
    text-align: center;
}
div#footer #footer-icons li {
    float: none;
    display: inline-block;
}

/* Mobile styles */
@media screen and (max-width: 981px) {
    /* Text & Logo layout */
    #content {
        margin: 0;
        padding: 70px 8px 8px 8px;
    }

    #mw-panel, #p-logo, #p-logo a {
        height: 80px;
        width: 100% !important;
    }

    #p-logo a {
        background-image: url(https://upload.wikimedia.org/wikipedia/donate/6/60/Wmf_logo_horiz_K.svg);
        background-repeat: no-repeat;
        background-position: center center;
        background-size: auto 40px;
    }

    /* Hide appeal */
    #appeal-wrapper {
        display: none;
    }

    #form-wrapper {
        padding: 16px;
    }

    /* Smallprint and links */
    #donate-footer {
        margin: 24px 0 0 0;
        padding: 0;
    }

    /* Footer */
    div#footer {
        margin: 0;
    }

}
/* === end of Template:Styles/2016 oojs ui.css === */