Template:Styles/Default.css: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
more Other button tweaks |
convert em to px, some color cleanup |
||
Line 46: | Line 46: | ||
background-image: none; |
background-image: none; |
||
border: none; |
border: none; |
||
padding-top: |
padding-top: 32px; |
||
} |
} |
||
Line 79: | Line 79: | ||
flex: 1; |
flex: 1; |
||
padding-left: 0; |
padding-left: 0; |
||
padding-right: |
padding-right: 28px; |
||
} |
} |
||
body.rtl #appeal-wrapper { |
body.rtl #appeal-wrapper { |
||
padding-left: |
padding-left: 28px; |
||
padding-right: 0; |
padding-right: 0; |
||
} |
} |
||
Line 95: | Line 95: | ||
#appeal-head { |
#appeal-head { |
||
font-size: 21px; |
font-size: 21px; |
||
padding-bottom: |
padding-bottom: 10px; |
||
border-bottom: 1px solid #a2a9b1; |
border-bottom: 1px solid #a2a9b1; |
||
margin-bottom: |
margin-bottom: 21px; |
||
} |
} |
||
.quote-wrapper { |
.quote-wrapper { |
||
padding: |
padding: 140px 0; |
||
} |
} |
||
Line 150: | Line 150: | ||
#paymenttype-table-header { |
#paymenttype-table-header { |
||
display: block; |
display: block; |
||
margin-bottom: |
margin-bottom: 6px; |
||
text-align: center; |
text-align: center; |
||
font-weight: bold; |
font-weight: bold; |
||
Line 222: | Line 222: | ||
/* --- Donation Amounts --- */ |
/* --- Donation Amounts --- */ |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
.country-VN .amount-options { |
|||
⚫ | |||
} |
|||
.amount-options li { |
.amount-options li { |
||
Line 242: | Line 229: | ||
height: 60px; |
height: 60px; |
||
line-height: 60px; |
line-height: 60px; |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
} |
} |
||
Line 261: | Line 258: | ||
display: block; |
display: block; |
||
width: 100%; |
width: 100%; |
||
border: 1px solid # |
border: 1px solid #a2a9b1; |
||
color: # |
color: #222; |
||
padding: |
padding: 2px; |
||
border-radius: 2px; |
border-radius: 2px; |
||
direction: ltr; |
direction: ltr; |
||
text-align: center; |
text-align: center; |
||
font-family: inherit; |
font-family: inherit; |
||
font-size: |
font-size: 12px; |
||
-webkit-appearance: none; |
-webkit-appearance: none; |
||
-moz-appearance: none; |
-moz-appearance: none; |
||
Line 290: | Line 287: | ||
width: 100%; |
width: 100%; |
||
color: #36c; |
color: #36c; |
||
font-size: |
font-size: 15px; |
||
-webkit-appearance: none; |
-webkit-appearance: none; |
||
-moz-appearance: none; |
-moz-appearance: none; |
||
Line 307: | Line 304: | ||
#infobox-wrapper { |
#infobox-wrapper { |
||
font-size: 13px; |
|||
line-height: 1.4; |
line-height: 1.4; |
||
color: # |
color: #54595d; |
||
font-size: .9em; |
|||
font-weight: normal; |
font-weight: normal; |
||
padding: 12px 4px 0 4px; |
padding: 12px 4px 0 4px; |
||
Line 316: | Line 312: | ||
#infobox-header { |
#infobox-header { |
||
font-size: |
font-size: 16px; |
||
font-weight: bold; |
font-weight: bold; |
||
color: #555; |
|||
} |
} |
||
Line 327: | Line 322: | ||
text-align: center; |
text-align: center; |
||
line-height: 1.4; |
line-height: 1.4; |
||
padding: |
padding: 24px 15% 8px; |
||
} |
} |
||
Line 336: | Line 331: | ||
.donate-smallprint, |
.donate-smallprint, |
||
#donor-policy-block { |
#donor-policy-block { |
||
font-size: |
font-size: 12px; |
||
} |
} |
||
Line 348: | Line 343: | ||
} |
} |
||
.form-info-links a { |
.form-info-links a { |
||
padding: |
padding: 14px; |
||
} |
} |
||
Revision as of 16:13, 26 February 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;
}
#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 {
position: relative;
background-color: #fff;
border: 1px solid #a2a9b1;
border-radius: 2px;
padding: 24px;
color: #222;
}
#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);
}
.frequency-options label,
.amount-options label,
.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;
}
.frequency-options label:hover,
.amount-options label:hover {
color: #444;
}
.frequency-options label:active,
.amount-options label:active,
.payment-method-button:active {
background-color: #d9d9d9;
color: #000;
border-color: #7d8389;
}
.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: #7d8389;
}
/* Focus styles */
.payment-method-button:focus {
outline: 0;
border-color: #3366cc;
box-shadow: inset 0 0 0 1px #3366cc;
}
.frequency-options input[type="radio"]:focus + label,
.amount-options input[type="radio"]:focus + label,
.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;
}
/* --- 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") --- */
.dividing-line {
display: none;
}
#infobox-wrapper {
font-size: 13px;
line-height: 1.4;
color: #54595d;
font-weight: normal;
padding: 12px 4px 0 4px;
}
#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: 60px 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;
}
#donate-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 === */