MediaWiki:Gadget-spawncalc.css: Difference between revisions
Jump to navigation
Jump to search
m (Update MediaWiki:Gadget-spawncalc.css) |
m (Update MediaWiki:Gadget-spawncalc.css) |
||
| Line 44: | Line 44: | ||
} | } | ||
.scalc-num { width: 4.5em; } | .scalc-num { width: 4.5em; } | ||
/* Meta/analysis section: visually separated from the spawn-condition inputs. */ | |||
.scalc-meta { | |||
margin-top: 0.5em; | |||
padding-top: 0.5em; | |||
border-top: 1px dashed #d4d7dc; | |||
align-items: center; | |||
} | |||
.scalc-meta-label { | |||
font-weight: bold; | |||
font-size: 0.68em; | |||
color: #72777d; | |||
text-transform: uppercase; | |||
letter-spacing: 0.04em; | |||
} | |||
.scalc-btn { | .scalc-btn { | ||
| Line 85: | Line 100: | ||
.scalc-detail { display: block; margin-top: 0.2em; font-size: 0.82em; color: #202122; } | .scalc-detail { display: block; margin-top: 0.2em; font-size: 0.82em; color: #202122; } | ||
.scalc-note { display: block; font-size: 0.85em; color: #54595d; font-style: italic; } | .scalc-note { display: block; font-size: 0.85em; color: #54595d; font-style: italic; } | ||
/* Per-time breakdown for a consecutive-time block: compact pill row. */ | |||
.scalc-breakdown { | |||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 0.3em 0.4em; | |||
margin-top: 0.4em; | |||
} | |||
.scalc-chip { | |||
display: inline-flex; | |||
align-items: baseline; | |||
gap: 0.3em; | |||
padding: 0.08em 0.5em; | |||
border: 1px solid #d4e9e2; | |||
border-radius: 999px; | |||
background: #f1faf6; | |||
font-size: 0.78em; | |||
line-height: 1.6; | |||
} | |||
.scalc-chip-time { color: #54595d; } | |||
.scalc-chip-pct { font-weight: 700; color: #14866d; font-variant-numeric: tabular-nums; } | |||
/* Narrow screens: stack fields full width. */ | /* Narrow screens: stack fields full width. */ | ||
Revision as of 07:35, 17 June 2026
/* Pixelmon spawn-chance calculator gadget styling.
* Reads as one compact self-contained widget, not inline wiki markup. */
#spawn-calculator {
margin: 0.6em 0 0.9em;
border: 1px solid #c8ccd1;
border-radius: 8px;
background: #fff;
overflow: hidden;
box-shadow: 0 1px 2px rgba( 0, 0, 0, 0.08 );
max-width: 48em;
}
/* Slim header bar */
.scalc-header {
padding: 0.35em 0.8em;
background: linear-gradient( 135deg, #14866d, #0f6e58 );
color: #fff;
}
.scalc-header-title { font-weight: bold; font-size: 0.95em; letter-spacing: 0.01em; }
/* Body */
.scalc-body { padding: 0.6em 0.8em 0.7em; }
/* Controls: inline fields that wrap, button included at the end. */
.scalc-form {
display: flex;
flex-wrap: wrap;
gap: 0.4em 0.8em;
align-items: flex-end;
}
.scalc-field { display: flex; flex-direction: column; gap: 0.15em; }
.scalc-label { font-weight: bold; font-size: 0.72em; color: #54595d; }
.scalc-input, .scalc-num {
padding: 0.2em 0.4em;
border: 1px solid #a2a9b1;
border-radius: 4px;
background: #fff;
font-size: 0.88em;
}
.scalc-input:focus, .scalc-num:focus {
outline: none;
border-color: #36c;
box-shadow: 0 0 0 2px rgba( 51, 102, 204, 0.2 );
}
.scalc-num { width: 4.5em; }
/* Meta/analysis section: visually separated from the spawn-condition inputs. */
.scalc-meta {
margin-top: 0.5em;
padding-top: 0.5em;
border-top: 1px dashed #d4d7dc;
align-items: center;
}
.scalc-meta-label {
font-weight: bold;
font-size: 0.68em;
color: #72777d;
text-transform: uppercase;
letter-spacing: 0.04em;
}
.scalc-btn {
padding: 0.3em 0.85em;
border: 0;
border-radius: 5px;
background: #36c;
color: #fff;
cursor: pointer;
font-weight: bold;
font-size: 0.88em;
}
.scalc-btn:hover { background: #2a4b8d; }
.scalc-btn:active { transform: translateY( 1px ); }
/* Result: one compact strip. */
.scalc-results { margin-top: 0.6em; }
.scalc-result {
border: 1px solid #eaecf0;
border-radius: 6px;
padding: 0.45em 0.7em;
background: #f8f9fa;
}
.scalc-result-hit { border-color: #a6e8d5; background: #eafaf4; }
.scalc-result-best { border-color: #14866d; }
.scalc-result-head {
display: flex;
align-items: baseline;
gap: 0.4em;
flex-wrap: wrap;
}
.scalc-pct {
font-size: 1.5em;
font-weight: 800;
line-height: 1;
color: #14866d;
font-variant-numeric: tabular-nums;
}
.scalc-result-miss .scalc-pct { color: #b32424; }
.scalc-pctlabel { font-size: 0.85em; color: #54595d; }
.scalc-detail { display: block; margin-top: 0.2em; font-size: 0.82em; color: #202122; }
.scalc-note { display: block; font-size: 0.85em; color: #54595d; font-style: italic; }
/* Per-time breakdown for a consecutive-time block: compact pill row. */
.scalc-breakdown {
display: flex;
flex-wrap: wrap;
gap: 0.3em 0.4em;
margin-top: 0.4em;
}
.scalc-chip {
display: inline-flex;
align-items: baseline;
gap: 0.3em;
padding: 0.08em 0.5em;
border: 1px solid #d4e9e2;
border-radius: 999px;
background: #f1faf6;
font-size: 0.78em;
line-height: 1.6;
}
.scalc-chip-time { color: #54595d; }
.scalc-chip-pct { font-weight: 700; color: #14866d; font-variant-numeric: tabular-nums; }
/* Narrow screens: stack fields full width. */
@media ( max-width: 480px ) {
.scalc-field { flex: 1 1 100%; }
.scalc-input, .scalc-num, .scalc-btn { width: 100%; box-sizing: border-box; }
}