MediaWiki:Gadget-catchcalc.css: Difference between revisions
Jump to navigation
Jump to search
m (Apply accessible Pixelrus dark catch calculator theme) Tag: Reverted |
m (Update MediaWiki:Gadget-catchcalc.css) Tag: Manual revert |
||
| Line 86: | Line 86: | ||
/* 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; } | ||
Latest revision as of 22:15, 3 August 2026
/* Pixelmon catch-rate calculator gadget styling. */
#catch-calculator {
margin: 0.6em 0 1.2em;
border: 1px solid #c8ccd1;
border-radius: 10px;
background: #fff;
overflow: hidden;
box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.1 );
width: 100%;
}
.ccalc-header {
padding: 0.55em 1em;
background: linear-gradient( 135deg, #14866d, #0f6e58 );
color: #fff;
}
.ccalc-header-title { font-weight: bold; font-size: 1.2em; letter-spacing: 0.01em; }
.ccalc-body { padding: 0.9em 1em 1em; }
.ccalc-cols { display: flex; flex-wrap: wrap; gap: 1.2em; align-items: flex-start; }
.ccalc-left { flex: 1 1 22em; min-width: 0; }
.ccalc-right { flex: 1 1 28em; min-width: 0; }
.ccalc-form {
display: flex;
flex-wrap: wrap;
gap: 0.4em 0.8em;
align-items: flex-end;
}
.ccalc-field { display: flex; flex-direction: column; gap: 0.15em; }
.ccalc-label { font-weight: bold; font-size: 0.72em; color: #54595d; }
.ccalc-input, .ccalc-num {
padding: 0.2em 0.4em;
border: 1px solid #a2a9b1;
border-radius: 4px;
background: #fff;
font-size: 0.88em;
}
.ccalc-input:focus, .ccalc-num:focus {
outline: none;
border-color: #36c;
box-shadow: 0 0 0 2px rgba( 51, 102, 204, 0.2 );
}
.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-top: 0.8em;
padding-top: 0.6em;
border-top: 1px dashed #d4d7dc;
}
.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-results { min-width: 0; }
.ccalc-meta {
margin: 0 0 0.45em;
padding: 0.45em 0.7em;
border: 1px solid #a6e8d5;
border-radius: 6px;
background: #eafaf4;
color: #202122;
}
.ccalc-table { width: 100%; margin: 0; }
.ccalc-table th { background: #f1faf6; }
.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: #eafaf4; }
.ccalc-hint, .ccalc-meta { font-size: 0.95em; }
.ccalc-hint {
margin: 0;
padding: 0.8em 1em;
border: 1px solid #eaecf0;
border-radius: 6px;
background: #f8f9fa;
color: #54595d;
}
@media ( max-width: 480px ) {
.ccalc-field { flex: 1 1 100%; }
.ccalc-input, .ccalc-num { width: 100%; box-sizing: border-box; }
}
/* Hidden until the gadget has rendered, to avoid a flash of the raw fallback. */
#catch-calculator.ccalc-ready .ccalc-fallback { display: none; }