MediaWiki:Gadget-catchcalc.css: Difference between revisions
Jump to navigation
Jump to search
(Create MediaWiki:Gadget-catchcalc.css) |
m (Update MediaWiki:Gadget-catchcalc.css) |
||
| Line 34: | Line 34: | ||
/* Hidden until the gadget has rendered, to avoid a flash of the raw fallback. */ | /* Hidden until the gadget has rendered, to avoid a flash of the raw fallback. */ | ||
#catch-calculator.ccalc-ready .ccalc-fallback { display: none; } | #catch-calculator.ccalc-ready .ccalc-fallback { display: none; } | ||
Revision as of 08:38, 15 June 2026
/* Pixelmon catch-rate calculator gadget styling. */
#catch-calculator { margin: 0.5em 0 1em; }
.ccalc-form {
display: flex;
flex-wrap: wrap;
gap: 0.75em 1.25em;
align-items: flex-end;
padding: 0.75em 1em;
background: #f8f9fa;
border: 1px solid #c8ccd1;
border-radius: 4px;
}
.ccalc-field { display: flex; flex-direction: column; gap: 0.2em; }
.ccalc-label { font-weight: bold; font-size: 0.85em; }
.ccalc-input, .ccalc-num { padding: 0.25em 0.4em; border: 1px solid #a2a9b1; border-radius: 2px; }
.ccalc-num { width: 4.5em; }
.ccalc-range { vertical-align: middle; }
.ccalc-hpval { font-variant-numeric: tabular-nums; margin-left: 0.4em; }
.ccalc-toggles-wrap { margin: 0.75em 0; }
.ccalc-toggles { display: flex; flex-wrap: wrap; gap: 0.3em 1.5em; margin-top: 0.3em; }
.ccalc-toggle { font-size: 0.9em; white-space: nowrap; }
.ccalc-meta { margin: 0.75em 0 0.25em; font-style: italic; color: #54595d; }
.ccalc-table { width: 100%; }
.ccalc-table td:nth-child( 2 ), .ccalc-table td:nth-child( 3 ), .ccalc-table td:nth-child( 4 ) {
text-align: center;
font-variant-numeric: tabular-nums;
}
.ccalc-table tr.ccalc-guaranteed td { background: #d5fdd5; }
.ccalc-hint, .ccalc-meta { font-size: 0.95em; }
/* Hidden until the gadget has rendered, to avoid a flash of the raw fallback. */
#catch-calculator.ccalc-ready .ccalc-fallback { display: none; }