Template:Styles/Default.css: Difference between revisions

Content deleted Content added
No edit summary
update heading styles
 
(31 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 19 ⟶ 34:
line-height: 1.2;
}
 
.error-nojs {
max-width: 300px;
color: #d33d73333;
}
 
Line 29 ⟶ 45:
#mw-panel .portal,
#mw-head, #catlinks,
#firstHeading, #contentSub, #contentSub2, #siteSub,
#jump-to-nav, .uls-tipsy {
display: none;
}
 
.mw-jump-link {
display: none !important;
}
 
/* Re-add gradient background */
body {
background-image: linear-gradient(to bottom, #fffffffff 40px, #f6f6f6 80px);
background-position: top;
background-repeat: repeat-x;
Line 45 ⟶ 65:
background-color: transparent;
background-image: none;
border: none0;
padding-top: 32px;
}
 
/* Link colors for visibility */
.mw-parser-output a,
a, a:visited {
.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: #d33d73333;
font-weight: 500;
font-size: 14px;
}
 
.amount-options .lp-error {
/* Prevent site logos from showing through modals (e.g. for monthly convert) */
margin: 0 4px;
.vector-body {
position: inherit;
}
 
body.modal-open {
overflow: hidden;
position: fixed;
}
 
Line 68 ⟶ 103:
width: 100%;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 24px;
}
 
body.rtl #main-wrapper {
direction: rtl;
Line 84 ⟶ 122:
 
#appeal-wrapper {
flex: 1 0 0;
padding-left: 0;
padding-right: 28px;
}
body.rtl #appeal-wrapper {
padding-left: 28px;
padding-right: 0;
}
 
/* --- Appeal --- */
 
#appeal {
Line 99 ⟶ 131:
}
 
#appeal h2.mw-heading2,
#appeal-head {
font-size: 21px;
Line 122 ⟶ 154:
width: 100%;
border: 0;
margin: 0 auto0 8px 0;
padding: 0;
}
Line 128 ⟶ 160:
.frequency-options ul,
.amount-options ul {
display: tablegrid;
table-layout: fixed;
width: 100%;
margin: 0;
padding: 0;
list-style: none;
gap: 8px;
margin-bottom: 8px;
}
 
.frequency-options ul {
grid-template-columns: 1fr 1fr;
}
 
.amount-options ul {
grid-template-columns: 1fr 1fr 1fr 1fr;
}
 
.frequency-options ul li,
.amount-options ul li {
displaypadding: table-cell0;
padding: 4px;
vertical-align: top;
}
 
/* --- Subheaders --- */
 
#radiobuttons-table-header,
Line 169 ⟶ 207:
.frb-btn,
.payment-method-button {
display: blockflex;
justify-content: center;
align-content: center;
align-items: center;
flex-wrap: wrap;
height: 50px;
line-height: 50px;
padding: 0 4px;
border-radius: 2px;
text-align: center;
font-family: inherit;
font-weight: 500;
Line 218 ⟶ 258:
color: #36c;
}
 
.payment-method-button:hover {
background-color: #fff;
border-color: #447ff5;
}
 
.payment-method-button:active {
background-color: #eff3fa;
Line 231 ⟶ 273:
/* --- Donation Amounts --- */
 
.amount-options li {
white-space: nowrap;
}
.amount-options .frb-btn {
height: 60px;
line-height: 60px;
font-size: 15px;
line-height: 1.2;
text-align: center;
}
 
Line 247 ⟶ 287:
.country-VN .amount-options .frb-btn {
font-size: 13px;
}
 
.input_amount_other .frb-btn {
display: table-cell;
vertical-align: middle;
padding: 0 8px;
}
 
Line 261 ⟶ 295:
margin-bottom: 2px;
white-space: normal;
text-align: center;
}
 
Line 277 ⟶ 312:
-moz-appearance: none;
appearance: none;
margin: 0 4px;
}
 
Line 298 ⟶ 334:
margin: 7px 2px 8px 8px;
}
 
 
.lp-radio-label,
Line 324 ⟶ 359:
/* --- Opt-in --- */
 
.optin-options {
padding: 0 4px !important;
}
.optin-options legend {
padding: 0;
Line 359 ⟶ 391:
font-weight: normal;
}
 
.optin-no-prompt.is-positive {
border-color: #14866d;
Line 373 ⟶ 406:
.ptf {
display: none;
padding: 0 4px;
}
 
Line 379 ⟶ 411:
 
.payment-method-div {
padding: 4px 4px0;
}
 
Line 388 ⟶ 420:
 
.payment-method-button {
display: block;
margin: 0;
width: 100%;
font-size: 15px16px;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
white-spaceoverflow: normalhidden;
padding: 0;
height: 50px;
line-height: 1;
}
 
Line 408 ⟶ 436:
color: #54595d;
font-weight: normal;
paddingmargin-top: 8px 4px 0 4px;
}
 
#infobox-wrapper h2.mw-heading2 {
font-size: 16px;
font-weight: bold;
color: inherit;
border: 0;
margin-bottom: 8px;
}
 
Line 443 ⟶ 471:
text-align: center;
}
 
.form-info-links li {
display: inline-block;
}
 
.form-info-links a.external {
padding: 14px !important;
Line 452 ⟶ 482:
/* --- Footer --- */
 
.mw-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;
}
 
.payment-method-button svg {
margin: 0 4px;
}
 
/* Credit card logos.
* Classes are added by https://donate.wikimedia.org/wiki/MediaWiki:DonationForm.js ---
*/
.paymentmethod-cc svg {
Line 481 ⟶ 502:
.cctypes-vmad,
.cctypes-vmaj,
.cctypes-vmj,
.cctypes-vma,
.cctypes-vm,
Line 486 ⟶ 508:
.cctypes-vmar {
font-size: 0; /* Remove spacing between icons */
}
 
.cctypes-vmad span,
.cctypes-vmaj span,
.cctypes-vma span,
.cctypes-vm span,
.cctypes-CBvma span,
.cctypes-vmar span {
display: none; /* Hide default text */
}
 
Line 506 ⟶ 519:
.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 527 ⟶ 544:
 
.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 screen and (max-width: 981px) {
/* Text & Logo layout */
#content {
margin: 0;
padding: 70px140px 8px24px 8px24px 8px24px;
}
 
#mw-panel, #p-logo, #p-logo a {
height: 80px;
width: 100% !important;
height: 140px;
margin: 0;
}
 
#p-logo a {
margin-left: 0;
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;
}
 
Line 569 ⟶ 593:
margin: 0;
}
}
 
@media (max-width: 721px) {
/* Stack appeal and form */
#appeal-wrapper {
flex-basis: 100%;
padding: 0;
}
}
 
/* === end of Template:Styles/2016 oojs ui.css === */
@media (max-width: 501px) {
/* Appeal same width as form */
#appeal-wrapper {
max-width: 380px;
padding: 0;
}
 
#content {
padding: 140px 8px 8px 8px;
}
 
}
 
#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 === */