Template:Styles/Default.css: Difference between revisions

Content deleted Content added
No edit summary
using max-width for footer
 
(118 intermediate revisions by the same user not shown)
Line 1:
/* === Template:Styles/Default.css === */
 
*,
*:before,
*:after {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
 
/* visually hidden - screenreader only */
.sr-only {
border: 0 !important;
clip: rect(1px, 1px, 1px, 1px) !important;
-webkit-clip-path: inset(50%) !important;
clip-path: inset(50%) !important;
height: 1px !important;
margin: -1px !important;
overflow: hidden !important;
padding: 0 !important;
position: absolute !important;
width: 1px !important;
white-space: nowrap !important;
}
 
/* 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: #800d73333;
}
 
/* --- Hide default MediaWiki stuff we don't want --- */
 
#mw-headpage-base, {#mw-head-base,
#mw-panel .portal,
height: 1em;
#mw-head, #catlinks,
#firstHeading, #contentSub, #contentSub2, #siteSub,
#jump-to-nav, .uls-tipsy {
display: none;
}
 
#mw-panel .portal {
.mw-jump-link {
display: none;
display: none !important;
}
 
#p-namespaces, #p-views, #p-cactions, #p-search, #p-personal, #catlinks, #firstHeading, #contentSub, #siteSub, #jump-to-nav {
/* Re-add gradient background */
display: none;
body {
background-image: linear-gradient(to bottom, #fff 40px, #f6f6f6 80px);
background-position: top;
background-repeat: repeat-x;
background-color: #f6f6f6;
}
 
#content {
background-color: transparent;
background-image: none;
border: none0;
padding-top: 32px;
}
 
/* Link colors for visibility */
.mw-parser-output a,
.mw-parser-output a.external,
.mw-parser-output a.extiw {
color: #36c;
}
 
.mw-parser-output a:visited,
.mw-parser-output a.external:visited,
.mw-parser-output a.extiw:visited {
color: #6f4db3;
}
 
.lp-error {
color: #d73333;
font-weight: 500;
font-size: 14px;
}
 
/* Prevent site logos from showing through modals (e.g. for monthly convert) */
.vector-body {
position: inherit;
}
 
body.modal-open {
overflow: hidden;
position: fixed;
}
 
/* --- Overall layout of the landing page --- */
 
#LPmain-tablewrapper {
width: 100%;
border display: noneflex;
flex-wrap: wrap;
justify-content: center;
gap: 24px;
}
 
body.rtl #LP-table {
body.rtl #main-wrapper {
direction: rtl;
direction: rtl;
}
 
#form-wrapper {
vertical-align width: top380px;
background-color: #fff;
border: 1px solid #a2a9b1;
border-radius: 2px;
padding: 24px;
color: #222;
}
 
#appeal-wrapper {
vertical-align flex: top1 0 0;
padding-left: 0;
padding-right: 2em;
}
body.rtl #appeal-wrapper {
padding-left: 2em;
padding-right: 0;
}
 
/* --- Appeal --- */
 
#appeal {
font-size: 16px;
}
 
#appeal .mw-heading2,
#appeal-head {
font-size: 1.5em21px;
padding-bottom: 0.5em10px;
border-bottom: 1px solid #afafafa2a9b1;
margin-bottom: 21px;
}
#appeal-body {
padding: 1em 0 0.2em 0;
font-size: 1.125em;
margin-bottom: 1em;
}
 
.quote-wrapper {
padding: 9em140px 0;
}
 
/* --- Hide non-monthlyrecurring capable payment methods on monthlyrecurring forms --- */
 
.form-monthly .not-monthly-capable {,
form[data-frequency="monthly"] .not-monthly-capable,
display: none;
form[data-frequency="annual"] .not-monthly-capable {
display: none;
}
 
/* --- Form --- */
 
#donate-form-wrapper *fieldset {
width: 100%;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box: 0;
margin: 0 0 8px 0;
box-sizing: border-box;
padding: 0;
}
 
.frequency-options ul,
#donate-form-wrapper {
.amount-options ul {
position: relative;
display: grid;
background-color: #fff;
margin: 0;
border: 1px solid #a2a9b1;
border-radius padding: 2px0;
padding list-style: 1.6emnone;
font-weight gap: 5008px;
color margin-bottom: #2228px;
}
 
.frequency-options ul {
/* --- Subheaders ---*/
grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}
 
.amount-options ul {
grid-template-columns: 1fr 1fr 1fr 1fr;
}
 
.frequency-options ul li,
.amount-options ul li {
padding: 0;
}
 
/* --- Subheaders --- */
 
#radiobuttons-table-header,
#paymenttype-table-header {
display: block;
margin-topbottom: .5em6px;
margin text-bottomalign: .5emcenter;
text font-alignweight: centerbold;
font-size: 1em;
}
 
Line 109 ⟶ 196:
 
.frequency-options input[type="radio"],
.radiobuttonsamount-celloptions 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,
.frequency-options label,
.radiobuttons-cell label,
.payment-method-button {
display: blockflex;
backgroundjustify-colorcontent: #f8f9facenter;
coloralign-content: #222center;
align-items: center;
border: 1px solid #9aa0a7;
borderflex-radiuswrap: 2pxwrap;
padding: 1em .5em;
outline: 0;
text-align: center;
cursorheight: pointer50px;
padding: 0 2px;
border-radius: 2px;
font-family: inherit;
font-weight: 500;
line-height: 1.2;
cursor: pointer;
transition: background-color 100ms, color 100ms, border-color 100ms, box-shadow 100ms;
background-color: #f8f9fa;
color: #222;
border: 1px solid #a2a9b1;
}
 
.frequency-options label:hover,
.radiobuttonsfrb-cell labelbtn:hover, {
.payment-method-button:hover {
background-color: #fff;
color: #444;
border-color: #a2a9b1;
}
 
.frequency-options label:active,
.radiobuttonsfrb-cell labelbtn:active, {
background-color: #c8ccd1;
.payment-method-button:active {
background-color: #d9d9d9;
color: #000;
border-color: #7d838972777d;
box-shadow: none;
}
 
.frequency-options label:focus,
input[type="radio"]:checked + .frb-btn {
.radiobuttons-cell label:focus,
.payment-method-button:focus {
border-color: #3366cc;
box-shadow: inset 0 0 0 1px #3366cc;
}
.frequency-options label.checked,
.radiobuttons-cell input[type="radio"]:checked + label {
background-color: #2a4b8d;
color: #fff;
border-color: #7d83892a4b8d;
}
 
.frb-btn:focus,
/* --- Frequency options --- */
.payment-method-button:focus {
 
outline: 0;
.frequency-options {
border-color: #36c;
margin: 0 3px;
box-shadow: inset 0 0 0 1px #36c;
font-size: 1em;
}
.frequency-options label {
display: block;
float: left;
width: 49%;
margin-bottom: 1em;
}
.frequency-options label:first-child {
margin-right: 4px;
}
 
input[type="radio"]:focus + .frb-btn,
body.rtl .frequency-options label {
input[type="radio"]:checked + .frb-btn:focus {
float: right;
box-shadow: inset 0 0 0 1px #36c, inset 0 0 0 2px #fff;
}
body.rtl .frequency-options label:first-child {
margin-left: 4px;
margin-right: 0;
}
 
.payment-method-button {
/* --- Donation Amounts --- */
color: #36c;
 
#radiobuttons-table-body {
clear: both;
}
 
.payment-method-button:hover {
#radiobuttons-table {
background-color: #fff;
width: 100%;
margin border-bottomcolor: 1em#447ff5;
}
 
.payment-method-button:active {
.radiobuttons-cell {
background-color: #eff3fa;
width: 25%;
padding color: 1px#2a4b8d;
text border-aligncolor: center#2a4b8d;
box-shadow: none;
}
 
/* --- Donation Amounts --- */
.radiobuttons-cell label {
height: 4em;
line-height: 2;
}
 
.amount-options .frb-btn {
.input_amount_other label {
paddingheight: .5em60px;
font-size: 15px;
line-height: 1.2;
text-align: center;
}
 
/* Smaller font size for countries with v long amounts */
.input_amount_other label span {
.country-CO .amount-options .frb-btn,
font-size: .8em;
.country-CR .amount-options .frb-btn,
.country-KR .amount-options .frb-btn,
.country-PY .amount-options .frb-btn,
.country-VN .amount-options .frb-btn {
font-size: 13px;
}
 
.input_amount_other .frb-btn span {
display: block;
font-size: 12px;
line-height: 1;
margin-bottom: 2px;
white-space: normal;
text-align: center;
}
 
Line 221 ⟶ 305:
display: block;
width: 100%;
border: 1px solid #ccca2a9b1;
color: #555222;
padding: .2em2px;
border-radius: 2px;
direction: ltr;
text-align: center;
font-family: inherit;
font-size: 16px; /* must be >=16px or mobile Safari zooms in when selected */
font-size: .8em !important;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
margin: 0 4px;
}
 
/* --- Opt-in and PTF input styles --- */
 
.lp-radio-wrapper,
.lp-checkbox-wrapper {
display: table;
}
 
.lp-radio,
.lp-checkbox {
display: table-cell;
vertical-align: top;
margin: 7px 8px 8px 2px;
cursor: pointer;
}
 
body.rtl .lp-radio,
body.rtl .lp-checkbox {
margin: 7px 2px 8px 8px;
}
 
.lp-radio-label,
.lp-checkbox-label {
display: table-cell;
vertical-align: top;
padding: 4px 0;
white-space: normal;
font-size: 14px;
line-height: 18px;
font-weight: normal;
cursor: pointer;
}
 
.lp-radio-label:hover,
.lp-radio:focus + .lp-radio-label,
.lp-radio:hover + .lp-radio-label,
.lp-checkbox-label:hover,
.lp-checkbox:focus + .lp-checkbox-label,
.lp-checkbox:hover + .lp-checkbox-label {
color: #36c;
text-decoration: none;
}
 
/* --- Opt-in --- */
 
.optin-options legend {
padding: 0;
font-size: inherit;
font-weight: bold;
}
 
.optin-options ul {
list-style: none;
margin: 0;
}
 
.optin-options li {
display: table;
}
 
.optin-smallprint {
clear: both;
font-size: 12px;
line-height: 14px;
margin-top: 8px;
}
 
.optin-no-prompt {
display: none;
margin: 0;
padding: 6px;
border: 2px solid #900;
border-radius: 2px;
font-size: 14px;
line-height: 18px;
font-weight: normal;
}
 
.optin-no-prompt.is-positive {
border-color: #14866d;
font-weight: bold;
}
 
.optin-no-prompt__yes { display: none; }
.optin-no-prompt__no { display: block; }
 
.optin-no-prompt.is-positive .optin-no-prompt__yes { display: block; }
.optin-no-prompt.is-positive .optin-no-prompt__no { display: none; }
 
/* --- PTF --- */
.ptf {
display: none;
}
 
/* --- Payment method buttons --- */
 
.payment-method-div {
padding: 04px 3px0;
}
 
/* Hide extra empty <p> tags between buttons */
.payment-method-div ~ p {
display: none;
}
 
.payment-method-button {
displaymargin: block0;
margin: 0 0 .5em 0;
width: 100%;
backgroundfont-repeatsize: no-repeat16px;
background-position: center center;
background-size: auto 60%;
color: #367fb4;
font-size: 1.1em;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
overflow: hidden;
}
 
/* --- Infobox ("Where your donation goes") --- */
 
#infobox-wrapper {
/* This will be overridden for IE 8 and below */
font-size: 13px;
.paymentmethod-pp input,
line-height: 1.4;
.paymentmethod-amazon input,
color: #54595d;
.paymentmethod-bpay input,
font-weight: normal;
.paymentmethod-ideal input,
margin-top: 8px
.paymentmethod-enets input,
.paymentmethod-yandex input {
text-indent: -10000px;
overflow: hidden;
}
 
#infobox-wrapper .mw-heading2 {
.paymentmethod-cc input {
background font-imagesize: none16px;
font-weight: bold;
color: inherit;
border: 0;
margin-bottom: 8px;
}
 
.paymentmethod-pp input {
/* --- Privacy and links --- */
background-image: url(//upload.wikimedia.org/wikipedia/donate/8/8d/Paypal-color.svg);
 
#donate-footer {
width: 100%;
max-width: 948px;
margin: 24px auto;
text-align: left;
font-size: 13px;
line-height: 1.4;
color: #54595d;
}
 
.paymentmethod-amazon input {
#donate-footer > div {
background-image: url(//upload.wikimedia.org/wikipedia/donate/e/e4/Amazon-color.svg);
margin-bottom: 1em;
}
 
.paymentmethod-bpay input {
.form-info-links,
background-image: url(//upload.wikimedia.org/wikipedia/donate/e/e3/BPAY_Landscape_MONO.gif);
.form-info-links ul {
list-style: none;
margin: 0;
text-align: center;
font-size: 15px;
}
 
.paymentmethod-ideal input {
.form-info-links li {
background-image: url(//upload.wikimedia.org/wikipedia/donate/8/83/Ideal_logo.gif);
display: inline-block;
}
 
.paymentmethod-enets input {
.form-info-links a.external {
background-image: url(//upload.wikimedia.org/wikipedia/donate/d/d4/Enets-logo.png);
padding: 14px !important;
}
 
.paymentmethod-yandex input {
/* --- Footer --- */
background-image: url(//upload.wikimedia.org/wikipedia/donate/8/85/Yamoney_en.png);
 
.mw-footer {
display: none;
}
 
html[lang="ru"] .paymentmethod-yandex input {
.payment-method-button svg {
background-image: url(//upload.wikimedia.org/wikipedia/donate/c/cb/Yandex_money_RU_logo.png);
margin: 0 4px;
}
 
.paymentmethod-pp-usd input {
/* Credit card logos.
background-image: url(//upload.wikimedia.org/wikipedia/donate/2/22/Paypal-USD-color.svg);
* Classes are added by https://donate.wikimedia.org/wiki/MediaWiki:DonationForm.js ---
*/
.paymentmethod-cc svg {
display: none;
height: 26px;
border: 1px solid #c8ccd1;
border-radius: 4px;
}
 
.cctypes-vmad,
.cctypes-vmaj,
.cctypes-vmj,
.cctypes-vma,
.cctypes-vm,
.cctypes-CBvma,
.cctypes-vmar {
font-size: 0; /* Remove spacing between icons */
}
 
.cctypes-vmad .cc-logo-visa,
/* --- Infobox ("Where your donation goes") --- */
.cctypes-vmad .cc-logo-mastercard,
.cctypes-vmad .cc-logo-amex,
.cctypes-vmad .cc-logo-discover,
 
.cctypes-vmaj .cc-logo-visa,
.dividing-line {
.cctypes-vmaj .cc-logo-mastercard,
display: none;
.cctypes-vmaj .cc-logo-amex,
.cctypes-vmaj .cc-logo-jcb,
 
.cctypes-vmj .cc-logo-visa,
.cctypes-vmj .cc-logo-mastercard,
.cctypes-vmj .cc-logo-jcb,
 
.cctypes-vma .cc-logo-visa,
.cctypes-vma .cc-logo-mastercard,
.cctypes-vma .cc-logo-amex,
 
.cctypes-vm .cc-logo-visa,
.cctypes-vm .cc-logo-mastercard,
 
.cctypes-CBvma .cc-logo-CB,
.cctypes-CBvma .cc-logo-visa,
.cctypes-CBvma .cc-logo-mastercard,
.cctypes-CBvma .cc-logo-amex,
 
.cctypes-vmar .cc-logo-visa,
.cctypes-vmar .cc-logo-mastercard,
.cctypes-vmar .cc-logo-amex,
.cctypes-vmar .cc-logo-rupay {
display: inline-block !important;
}
 
.paymentmethod-cc .cc-logo-rupay {
#infobox-wrapper {
padding-top border: 1em0;
width: 25em;
line-height: 1.2;
color: #707070;
font-size: .9em;
font-weight: normal;
}
 
/* Logos - WP on top, WMF horizontal below */
#infobox-header {
#p-logo a {
font-size: 1.3em;
/* Need explicit height for backgrounds for IE */
font-weight: bold;
background: top 30% center/160px 24px url(https://donate.wikimedia.org/static/images/mobile/copyright/wikipedia-wordmark-en.svg), top 70% center/160px 37px url(https://upload.wikimedia.org/wikipedia/donate/6/60/Wmf_logo_horiz_K.svg);
margin-bottom: .7em;
background-repeat: no-repeat;
color: #367fb4;
margin-left: 8px;
}
 
/* ---Mobile Privacy and links ---styles */
@media (max-width: 981px) {
/* Text & Logo layout */
#content {
margin: 0;
padding: 140px 24px 24px 24px;
}
 
#mw-panel, #p-logo, #p-logo a {
#donor-policy-block {
width: 100% !important;
-moz-box-sizing: border-box;
height: 140px;
-webkit-box-sizing: border-box;
box-sizing: margin: border-box0;
width: 100%; }
 
text-align: center;
#p-logo a {
font-size: 0.8em;
line margin-heightleft: 1.20;
}
padding: 1.8em 15% .7em;
 
/* Hide appeal */
#appeal-wrapper {
display: none;
}
 
#form-wrapper {
padding: 16px;
}
 
/* Footer */
div#footer {
margin: 0;
}
}
 
@media (max-width: 721px) {
#donor-policy-block #cancel-monthly {
/* Stack appeal and form */
margin-top: 1em;
#appeal-wrapper {
flex-basis: 100%;
padding: 0;
}
}
 
@media (max-width: 501px) {
#donate-links-block {
/* Appeal same width as form */
-moz-box-sizing: border-box;
#appeal-wrapper {
-webkit-box-sizing: border-box;
box-sizing: max-width: border-box380px;
width padding: 100%0;
}
padding: 1em 15% 0;
 
#content {
padding: 140px 8px 8px 8px;
}
#donate-footer {
max-width: 380px;
}
 
}
 
#country-confirm {
.form-info-links {
list text-stylealign: nonecenter;
margin-lefttop: 0-12px;
width padding: 100%4px 0;
border-bottom: 1px solid #a2a9b1;
display: block;
font margin-sizebottom: 0.8em8px;
text font-alignsize: center90%;
}
.form-info-links li {
width: auto;
display: inline-block;
padding: 0 1em;
margin: 0 auto;
}
 
/* --- Footer --- */
 
@media (min-width: 980px) {
#footer-info,
#country-confirm {
#footer-places {
margin-top: -18px;
display: none;
}
}
div#footer #footer-icons {
float: none;
text-align: center;
}
div#footer #footer-icons li {
float: none;
display: inline-block;
}
 
 
/* === end of Template:Styles/Default.css === */