MediaWiki:Gadget-catchcalc.css: Difference between revisions
Jump to navigation
Jump to search
m (Update MediaWiki:Gadget-catchcalc.css) |
m (Apply accessible Pixelrus dark catch calculator theme) Tag: Reverted |
||
| 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; } | ||
/* Pixelrus dark catch calculator theme */ | |||
#catch-calculator { | |||
border-color: #86599A; | |||
background: #210B2E; | |||
color: #F7EFFB; | |||
box-shadow: 0 8px 24px rgba(9, 0, 15, .45); | |||
} | |||
#catch-calculator .ccalc-header { | |||
background: linear-gradient(135deg, #5C006C, #B80073); | |||
color: #FFFFFF; | |||
} | |||
#catch-calculator .ccalc-label, | |||
#catch-calculator .ccalc-hint { | |||
color: #CDBBD7; | |||
} | |||
#catch-calculator .ccalc-input, | |||
#catch-calculator .ccalc-num { | |||
border-color: #86599A; | |||
background: #180722; | |||
color: #F7EFFB; | |||
} | |||
#catch-calculator .ccalc-input:focus, | |||
#catch-calculator .ccalc-num:focus { | |||
border-color: #F05BB9; | |||
box-shadow: 0 0 0 2px rgba(240, 91, 185, .35); | |||
} | |||
#catch-calculator .ccalc-toggles-wrap { | |||
border-top-color: #86599A; | |||
} | |||
#catch-calculator .ccalc-meta, | |||
#catch-calculator .ccalc-hint { | |||
border-color: #86599A; | |||
background: #2B103A; | |||
color: #F7EFFB; | |||
} | |||
#catch-calculator .ccalc-table, | |||
#catch-calculator .ccalc-table th, | |||
#catch-calculator .ccalc-table td { | |||
border-color: #86599A; | |||
color: #F7EFFB; | |||
} | |||
#catch-calculator .ccalc-table th { | |||
background: #3A174B; | |||
} | |||
#catch-calculator .ccalc-table td { | |||
background: #210B2E; | |||
} | |||
#catch-calculator .ccalc-table tr.ccalc-guaranteed td { | |||
background: #163821; | |||
} | |||
#catch-calculator a { | |||
color: #73B7FF; | |||
text-decoration: underline; | |||
} | |||
/* End Pixelrus dark catch calculator theme */ | |||
Revision as of 09:16, 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; }
/* Pixelrus dark catch calculator theme */
#catch-calculator {
border-color: #86599A;
background: #210B2E;
color: #F7EFFB;
box-shadow: 0 8px 24px rgba(9, 0, 15, .45);
}
#catch-calculator .ccalc-header {
background: linear-gradient(135deg, #5C006C, #B80073);
color: #FFFFFF;
}
#catch-calculator .ccalc-label,
#catch-calculator .ccalc-hint {
color: #CDBBD7;
}
#catch-calculator .ccalc-input,
#catch-calculator .ccalc-num {
border-color: #86599A;
background: #180722;
color: #F7EFFB;
}
#catch-calculator .ccalc-input:focus,
#catch-calculator .ccalc-num:focus {
border-color: #F05BB9;
box-shadow: 0 0 0 2px rgba(240, 91, 185, .35);
}
#catch-calculator .ccalc-toggles-wrap {
border-top-color: #86599A;
}
#catch-calculator .ccalc-meta,
#catch-calculator .ccalc-hint {
border-color: #86599A;
background: #2B103A;
color: #F7EFFB;
}
#catch-calculator .ccalc-table,
#catch-calculator .ccalc-table th,
#catch-calculator .ccalc-table td {
border-color: #86599A;
color: #F7EFFB;
}
#catch-calculator .ccalc-table th {
background: #3A174B;
}
#catch-calculator .ccalc-table td {
background: #210B2E;
}
#catch-calculator .ccalc-table tr.ccalc-guaranteed td {
background: #163821;
}
#catch-calculator a {
color: #73B7FF;
text-decoration: underline;
}
/* End Pixelrus dark catch calculator theme */