Template:Styles/Default.css: Difference between revisions
Content deleted Content added
minor CSS fixes |
using max-width for footer |
||
(37 intermediate revisions by the same user not shown) | |||
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 22 ⟶ 37:
.error-nojs {
max-width: 300px;
color: #
}
Line 30 ⟶ 45:
#mw-panel .portal,
#mw-head, #catlinks,
#firstHeading, #contentSub, #contentSub2, #siteSub,
#jump-to-nav, .uls-tipsy {
display: none;
}
.mw-jump-link {
display: none !important;
}
Line 51 ⟶ 70:
/* 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: #
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;
}
Line 71 ⟶ 103:
width: 100%;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 24px;
}
Line 88 ⟶ 122:
#appeal-wrapper {
flex: 1 0 0;
}
Line 104 ⟶ 131:
}
#appeal
#appeal-head {
font-size: 21px;
Line 116 ⟶ 143:
}
/* --- Hide non-
.form-monthly .not-monthly-capable
form[data-frequency="monthly"] .not-monthly-capable,
form[data-frequency="annual"] .not-monthly-capable {
display: none;
}
Line 127 ⟶ 156:
width: 100%;
border: 0;
margin: 0
padding: 0;
}
Line 133 ⟶ 162:
.frequency-options ul,
.amount-options ul {
display:
margin: 0;
padding: 0;
list-style: none;
gap: 8px;
margin-bottom: 8px;
}
.frequency-options ul {
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 {
}
Line 174 ⟶ 209:
.frb-btn,
.payment-method-button {
display:
justify-content: center;
align-content: center;
align-items: center;
flex-wrap: wrap;
text-align: center;
height: 50px;
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;
Line 237 ⟶ 276:
/* --- Donation Amounts --- */
.amount-options .frb-btn {
height: 60px;
font-size: 15px;
line-height: 1.2;
text-align: center;
}
Line 255 ⟶ 291:
.country-VN .amount-options .frb-btn {
font-size: 13px;
}
Line 269 ⟶ 299:
margin-bottom: 2px;
white-space: normal;
text-align: center;
}
Line 285 ⟶ 316:
-moz-appearance: none;
appearance: none;
margin: 0 4px;
}
Line 330 ⟶ 362:
/* --- Opt-in --- */
.optin-options legend {
Line 382 ⟶ 410:
.ptf {
display: none;
}
Line 388 ⟶ 415:
.payment-method-div {
padding: 4px
}
Line 397 ⟶ 424:
.payment-method-button {
margin: 0;
width: 100%;
font-size:
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
Line 417 ⟶ 440:
color: #54595d;
font-weight: normal;
}
#infobox-wrapper
font-size: 16px;
font-weight: bold;
Line 432 ⟶ 455:
#donate-footer {
width: 100%;
margin: 24px auto;
text-align: left;
font-size: 13px;
line-height: 1.4;
}
#donate-footer > div {
margin-bottom:
}
Line 451 ⟶ 472:
margin: 0;
text-align: center;
font-size: 15px;
}
Line 483 ⟶ 505:
.cctypes-vmad,
.cctypes-vmaj,
.cctypes-vmj,
.cctypes-vma,
.cctypes-vm,
Line 488 ⟶ 511:
.cctypes-vmar {
font-size: 0; /* Remove spacing between icons */
}
Line 508 ⟶ 522:
.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,
Line 530 ⟶ 548:
.paymentmethod-cc .cc-logo-rupay {
border: 0;
}
/* Logos - WP on top, WMF horizontal below */
#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;
}
/* Mobile styles */
@media
/* Text & Logo layout */
#content {
margin: 0;
padding:
}
#mw-panel, #p-logo, #p-logo a {
width: 100% !important;
height: 140px;
margin: 0;
}
#p-logo a {
margin-left: 0;
}
Line 559 ⟶ 584:
#form-wrapper {
padding: 16px;
}
Line 572 ⟶ 591:
}
}
@media (max-width: 721px) {
/* Stack appeal and form */
#appeal-wrapper {
flex-basis: 100%;
padding: 0;
}
}
@media (max-width: 501px) {
/* Appeal same width as form */
#appeal-wrapper {
max-width: 380px;
padding: 0;
}
#content {
padding: 140px 8px 8px 8px;
}
#donate-footer {
max-width: 380px;
}
}
#country-confirm {
text-align: center;
margin-top: -12px;
padding: 4px 0;
border-bottom: 1px solid #a2a9b1;
margin-bottom: 8px;
font-size: 90%;
}
@media (min-width: 980px) {
#country-confirm {
margin-top: -18px;
}
}
/* === end of Template:Styles/Default.css === */
|