Template:Styles/Default.css: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
new infobox CSS |
simplify button styles |
||
Line 165: | Line 165: | ||
} |
} |
||
.frb-btn, |
|||
.frequency-options label, |
|||
.amount-options label, |
|||
.payment-method-button { |
.payment-method-button { |
||
display: block; |
display: block; |
||
Line 182: | Line 181: | ||
cursor: pointer; |
cursor: pointer; |
||
} |
} |
||
. |
.frb-btn:hover, |
||
. |
.payment-method-button:hover { |
||
color: #444; |
color: #444; |
||
} |
} |
||
. |
.frb-btn:active, |
||
.amount-options label:active, |
|||
.payment-method-button:active { |
.payment-method-button:active { |
||
background-color: #d9d9d9; |
background-color: #d9d9d9; |
||
Line 195: | Line 193: | ||
} |
} |
||
⚫ | |||
.frequency-options label.checked, |
|||
.frequency-options input[type="radio"]:checked + label, |
|||
⚫ | |||
background-color: #2a4b8d; |
background-color: #2a4b8d; |
||
color: #fff; |
color: #fff; |
||
Line 204: | Line 200: | ||
/* Focus styles */ |
/* Focus styles */ |
||
.frb-btn:focus, |
|||
.payment-method-button:focus { |
.payment-method-button:focus { |
||
outline: 0; |
outline: 0; |
||
Line 210: | Line 207: | ||
} |
} |
||
input[type="radio"]:focus + .frb-btn, |
|||
input[type="radio"]:checked + .frb-btn:focus { |
|||
.frequency-options input[type="radio"]:checked + label:focus, |
|||
.amount-options input[type="radio"]:checked + label:focus { |
|||
box-shadow: inset 0 0 0 1px #36c, inset 0 0 0 2px #fff; |
box-shadow: inset 0 0 0 1px #36c, inset 0 0 0 2px #fff; |
||
} |
} |
Revision as of 20:39, 19 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;
padding: 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;
color: #222;
background-color: #f8f9fa;
border: 1px solid #a2a9b1;
border-radius: 2px;
text-align: center;
font-family: inherit;
font-weight: 500;
transition: all 100ms;
cursor: pointer;
}
.frb-btn:hover,
.payment-method-button:hover {
color: #444;
}
.frb-btn:active,
.payment-method-button:active {
background-color: #d9d9d9;
color: #000;
border-color: #7d8389;
}
input[type="radio"]:checked + .frb-btn {
background-color: #2a4b8d;
color: #fff;
border-color: #7d8389;
}
/* Focus styles */
.frb-btn:focus,
.payment-method-button:focus {
outline: 0;
border-color: #3366cc;
box-shadow: inset 0 0 0 1px #3366cc;
}
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;
}
/* --- 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: 12px;
-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%;
color: #36c;
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
}
/* TODO: remove once headers updated */
#infobox-header {
font-size: 16px;
font-weight: bold;
}
/* --- 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 === */