Template:Styles/Default.css: Difference between revisions

Content deleted Content added
hide language popup
using max-width for footer
 
(102 intermediate revisions by the same user not shown)
Line 1:
/* === Template:Styles/2016 oojs uiDefault.css === */
 
*,
Line 7:
-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;
}
 
Line 12 ⟶ 27:
#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 */
.uls-tipsy {
.mw-parser-output a,
display: none;
.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;
width: 360px;
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 {
position: relative;
background-color: #fff;
border: 1px solid #a2a9b1;
border-radius: 2px;
padding: 1.6em;
font-weight: 500;
color: #222;
}
 
#donate-form-wrapper fieldset {
width: 100%;
border: 0;
margin: 0 auto0 8px 0;
padding: 0;
}
 
.frequency-options ul,
#donate-form-wrapper ul {
.amount-options ul {
display: table;
table-layoutdisplay: fixedgrid;
width: 100%;
margin: 0;
padding: 0;
list-style: none;
gap: 8px;
margin-bottom: 8px;
}
 
.frequency-options ul {
#donate-form-wrapper ul li {
grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
display: table-cell;
padding: 2px;
vertical-align: top;
}
 
.amount-options ul {
/* --- Subheaders ---*/
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;
font-weight: bold;
}
 
Line 142 ⟶ 197:
.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,
.frequency-options label,
.amount-options label,
.payment-method-button {
display: blockflex;
backgroundjustify-colorcontent: #f8f9facenter;
coloralign-content: #222center;
align-items: center;
border: 1px solid #9aa0a7;
borderflex-radiuswrap: 2pxwrap;
padding: 1em .1em;
outline: 0;
text-align: center;
cursorheight: pointer50px;
padding: 0 2px;
border-radius: 2px;
font-family: inherit;
font-weight: 500;
line-height: 1.2;
-webkit-transition: all .25s ease-in-out;
cursor: pointer;
-moz-transition: all .25s ease-in-out;
transition: background-color 100ms, color 100ms, border-color 100ms, box-shadow all .25s ease-in-out100ms;
background-color: #f8f9fa;
color: #222;
border: 1px solid #a2a9b1;
}
 
.frequency-options label:hover,
.amountfrb-options labelbtn:hover {
background-color: #fff;
border-color: #a2a9b1;
color: #444;
}
.payment-method-button:hover {
background-color: #fff;
border-color: #a2a9b1;
}
 
.frequencyfrb-options labelbtn:active, {
background-color: #c8ccd1;
.amount-options label:active,
.payment-method-button:active {
background-color: #d9d9d9;
color: #000;
border-color: #7d838972777d;
box-shadow: none;
}
 
input[type="radio"]:checked + .frb-btn {
.frequency-options label.checked,
.frequency-options input[type="radio"]:checked + label,
.amount-options input[type="radio"]:checked + label {
background-color: #2a4b8d;
color: #fff;
border-color: #7d83892a4b8d;
}
 
.frb-btn:focus,
/* Focus styles */
input:focus,
button:focus,
.frequency-options input[type="radio"]:focus + label,
.amount-options input[type="radio"]:focus + label,
.payment-method-button:focus {
outline: 0;
border-color: #3366cc36c;
box-shadow: inset 0 0 0 1px #3366cc36c;
}
 
.frequency-options input[type="radio"]:focus + label.frb-btn,
.amount-options input[type="radio"]:focuschecked + label,.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;
}
 
.payment-method-button {
 
color: #36c;
/* --- Donation Amounts --- */
 
.amount-options {
font-size: 1.1em;
}
 
.payment-method-button:hover {
/* Smaller font size for countries with v long amounts */
background-color: #fff;
.country-CO .amount-options,
border-color: #447ff5;
.country-CR .amount-options,
.country-KR .amount-options,
.country-PY .amount-options,
.country-VN .amount-options {
font-size: .9em;
}
 
.payment-method-button:active {
.amount-options li {
whitebackground-spacecolor: nowrap#eff3fa;
color: #2a4b8d;
}
border-color: #2a4b8d;
.amount-options label {
heightbox-shadow: 4emnone;
line-height: 2;
}
 
/* --- Donation Amounts --- */
.input_amount_other label {
 
padding: .5em;
.amount-options .frb-btn {
height: 60px;
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 251 ⟶ 305:
display: block;
width: 100%;
border: 1px solid #c0c0c0a2a9b1;
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;
}
 
/* --- PaymentOpt-in methodand buttonsPTF input styles --- */
 
.lp-radio-wrapper,
.payment-method-div {
.lp-checkbox-wrapper {
padding: 0 4px;
display: table;
}
 
.lp-radio,
.payment-method-button {
.lp-checkbox {
display: block;
margindisplay: 0 0 .5em 0table-cell;
widthvertical-align: 100%top;
margin: 7px 8px 8px 2px;
background-repeat: no-repeat;
cursor: pointer;
background-position: center center;
background-size: auto 60%;
color: #3366cc;
font-size: 1.1em;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
 
body.rtl .lp-radio,
body.rtl .lp-checkbox {
margin: 7px 2px 8px 8px;
}
 
.lp-radio-label,
/* This will be overridden for IE 8 and below */
.lp-checkbox-label {
.paymentmethod-pp input,
display: table-cell;
.paymentmethod-amazon input,
vertical-align: top;
.paymentmethod-bpay input,
padding: 4px 0;
.paymentmethod-ideal input,
white-space: normal;
.paymentmethod-enets input,
font-size: 14px;
.paymentmethod-yandex input {
text line-indentheight: -10000px18px;
overflow font-weight: hiddennormal;
cursor: pointer;
}
 
.lp-radio-label:hover,
.paymentmethod-cc input {
.lp-radio:focus + .lp-radio-label,
background-image: none;
.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;
}
 
.paymentmethod-pp input {
/* --- Opt-in --- */
background-image: url(//upload.wikimedia.org/wikipedia/donate/8/8d/Paypal-color.svg);
 
.optin-options legend {
padding: 0;
font-size: inherit;
font-weight: bold;
}
 
.paymentmethod-amazon input {
.optin-options ul {
background-image: url(//upload.wikimedia.org/wikipedia/donate/thumb/e/e4/Amazon-Pay-logo-fullcolor-positive.png/800px-Amazon-Pay-logo-fullcolor-positive.png);
list-style: none;
margin: 0;
}
 
.paymentmethod-bpay input {
.optin-options li {
background-image: url(//upload.wikimedia.org/wikipedia/donate/e/e3/BPAY_Landscape_MONO.gif);
display: table;
}
 
.paymentmethod-ideal input {
.optin-smallprint {
background-image: url(//upload.wikimedia.org/wikipedia/donate/8/83/Ideal_logo.gif);
clear: both;
font-size: 12px;
line-height: 14px;
margin-top: 8px;
}
 
.paymentmethod-enets input {
.optin-no-prompt {
background-image: url(//upload.wikimedia.org/wikipedia/donate/d/d4/Enets-logo.png);
display: none;
margin: 0;
padding: 6px;
border: 2px solid #900;
border-radius: 2px;
font-size: 14px;
line-height: 18px;
font-weight: normal;
}
 
.paymentmethod-yandex input {
.optin-no-prompt.is-positive {
background-image: url(//upload.wikimedia.org/wikipedia/donate/8/85/Yamoney_en.png);
border-color: #14866d;
font-weight: bold;
}
 
html[lang="ru"] .paymentmethod-yandex input {
.optin-no-prompt__yes { display: none; }
background-image: url(//upload.wikimedia.org/wikipedia/donate/c/cb/Yandex_money_RU_logo.png);
.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;
}
 
.paymentmethod-pp-usd input {
/* --- Payment method buttons --- */
background-image: url(//upload.wikimedia.org/wikipedia/donate/2/22/Paypal-USD-color.svg);
 
.payment-method-div {
padding: 4px 0;
}
 
/* ---Hide Infoboxextra ("Whereempty your<p> donationtags goes")between ---buttons */
.payment-method-div ~ p {
display: none;
}
 
.payment-method-button {
.dividing-line {
display margin: none0;
width: 100%;
font-size: 16px;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
overflow: hidden;
}
 
/* --- Infobox ("Where your donation goes") --- */
 
#infobox-wrapper {
padding font-topsize: 1em13px;
line-height: 1.24;
color: #70707054595d;
font-sizeweight: .9emnormal;
margin-top: 8px
font-weight: normal;
}
 
#infobox-headerwrapper .mw-heading2 {
font-size: 1.3em16px;
font-weight: bold;
color: inherit;
margin-bottom: .7em;
color border: #3366cc0;
margin-bottom: 8px;
}
 
/* --- Privacy and links --- */
 
#donate-footer {
#donor-policy-block {
width: 100%;
-moz-box-sizing: border-box;
max-width: 948px;
-webkit-box-sizing: border-box;
margin: 24px auto;
box-sizing: border-box;
width text-align: 100%left;
text font-alignsize: center13px;
font line-sizeheight: 01.8em4;
line-height color: 1.2#54595d;
padding: 1.8em 15% .7em;
}
 
#donate-footer > div {
#donor-policy-block #cancel-monthly {
margin-topbottom: 1em;
}
 
.form-info-links,
#donate-links-block {
.form-info-links ul {
-moz-box-sizing: border-box;
list-style: none;
-webkit-box-sizing: border-box;
margin: 0;
box-sizing: border-box;
width text-align: 100%center;
font-size: 15px;
padding: 1em 15% 0;
}
 
.form-info-links {
list-style: none;
margin-left: 0;
width: 100%;
display: block;
font-size: 0.8em;
text-align: center;
}
.form-info-links li {
display: inline-block;
width: auto;
}
display: inline-block;
 
padding: 0 1em;
.form-info-links a.external {
margin: 0 auto;
padding: 14px !important;
}
 
/* --- Footer --- */
 
.mw-footer {
#footer-info,
display: none;
#footer-places {
display: none;
}
 
div#footer #footer-icons {
.payment-method-button svg {
float: none;
text-align margin: center0 4px;
}
 
div#footer #footer-icons li {
/* Credit card logos.
float: none;
* Classes are added by https://donate.wikimedia.org/wiki/MediaWiki:DonationForm.js ---
display: inline-block;
*/
.paymentmethod-cc svg {
display: none;
height: 26px;
border: 1px solid #c8ccd1;
border-radius: 4px;
}
 
.cctypes-vmad,
@media screen and (max-width: 981px) {
.cctypes-vmaj,
/* Text & Logo layout */
.cctypes-vmj,
#content {
.cctypes-vma,
margin: 0;
.cctypes-vm,
padding: 0 .5em .5em .5em;
.cctypes-CBvma,
.cctypes-vmar {
font-size: 0; /* Remove spacing between icons */
}
 
.cctypes-vmad .cc-logo-visa,
#p-logo a {
.cctypes-vmad .cc-logo-mastercard,
width: 120px;
.cctypes-vmad .cc-logo-amex,
height: 120px;
.cctypes-vmad .cc-logo-discover,
background-size: 80%;
 
.cctypes-vmaj .cc-logo-visa,
.cctypes-vmaj .cc-logo-mastercard,
.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 {
#form-wrapper {
displayborder: block0;
width: 100%;
}
 
#donate {
/* Logos - WP on top, WMF horizontal below */
display: block;
#p-logo a {
/* Need explicit height for backgrounds for IE */
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);
background-repeat: no-repeat;
margin-left: 8px;
}
 
/* HideMobile appealstyles */
@media (max-width: 981px) {
#appeal-wrapper {
margin-top: 60px;
/* Text & Logo layout */
display: block;
#content {
}
margin: 0;
#appeal-head {
padding: 140px 24px 24px 24px;
display: none;
}
}
 
#appeal-body {
#mw-panel, #p-logo, #p-logo a {
padding-top: 0.2em;
width: 100% !important;
}
height: 140px;
.appeal-text-long, .appeal-text-short {
display margin: none0;
}
 
#p-logo a {
margin-left: 0;
}
 
/* Hide appeal */
#appeal-wrapper {
display: none;
}
 
#form-wrapper {
padding: 16px;
}
 
/* Footer */
div#footer {
margin: 0;
}
}
 
@media (max-width: 721px) {
#donate-form-wrapper {
/* Stack appeal and form */
padding: 1em;
#appeal-wrapper {
flex-basis: 100%;
padding: 0;
}
}
 
@media (max-width: 501px) {
div#infobox-wrapper, div#donor-policy-block {
/* Appeal same width: 100%;as form */
#appeal-wrapper {
max-width: 380px;
padding: 0;
}
 
#content {
padding: 140px 8px 8px 8px;
}
#donate-footer {
max-width: 380px;
}
 
}
 
#country-confirm {
/* Smallprint and links */
text-align: center;
div#donor-policy-block {
margin-top: 0-12px;
padding: 4px 0;
border-bottom: 1px solid #a2a9b1;
margin-bottom: 8px;
font-size: 90%;
}
 
 
/* Footer */
@media (min-width: 980px) {
div#footer {
margin:#country-confirm 0;{
margin-top: -18px;
}
}
 
 
}
/* === end of Template:Styles/2016 oojs uiDefault.css === */