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 1: | Line 1: | ||
/* Pixelmon spawn-chance calculator gadget styling. | /* Pixelmon spawn-chance calculator gadget styling. | ||
* | * Reads as one compact self-contained widget, not inline wiki markup. */ | ||
#spawn-calculator { | #spawn-calculator { | ||
margin: 0. | margin: 0.6em 0 0.9em; | ||
border: 1px solid #c8ccd1; | border: 1px solid #c8ccd1; | ||
border-radius: | border-radius: 8px; | ||
background: #fff; | background: #fff; | ||
overflow: hidden; | overflow: hidden; | ||
box-shadow: 0 1px | box-shadow: 0 1px 2px rgba( 0, 0, 0, 0.08 ); | ||
max-width: | max-width: 48em; | ||
} | } | ||
/* | /* Slim header bar */ | ||
.scalc-header { | .scalc-header { | ||
padding: 0.35em 0.8em; | |||
background: linear-gradient( 135deg, #14866d, #0f6e58 ); | background: linear-gradient( 135deg, #14866d, #0f6e58 ); | ||
color: #fff; | color: #fff; | ||
} | } | ||
.scalc-header-title { font-weight: bold; font-size: 0.95em; letter-spacing: 0.01em; } | |||
.scalc-header-title { font-weight: bold; font-size: | |||
/* Body | /* Body */ | ||
.scalc-body { padding: 0. | .scalc-body { padding: 0.6em 0.8em 0.7em; } | ||
} | |||
/* Controls: inline fields that wrap, button included at the end. */ | |||
.scalc-form { | .scalc-form { | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: 0. | gap: 0.4em 0.8em; | ||
align-items: flex-end; | align-items: flex-end; | ||
} | } | ||
.scalc-field { display: flex; flex-direction: column; gap: 0. | .scalc-field { display: flex; flex-direction: column; gap: 0.15em; } | ||
.scalc-label { font-weight: bold; font-size: 0. | .scalc-label { font-weight: bold; font-size: 0.72em; color: #54595d; } | ||
.scalc-input, .scalc-num { | .scalc-input, .scalc-num { | ||
padding: 0. | padding: 0.2em 0.4em; | ||
border: 1px solid #a2a9b1; | border: 1px solid #a2a9b1; | ||
border-radius: 4px; | border-radius: 4px; | ||
background: #fff; | background: #fff; | ||
font-size: 0. | font-size: 0.88em; | ||
} | } | ||
.scalc-input:focus, .scalc-num:focus { | .scalc-input:focus, .scalc-num:focus { | ||
| Line 61: | Line 43: | ||
box-shadow: 0 0 0 2px rgba( 51, 102, 204, 0.2 ); | box-shadow: 0 0 0 2px rgba( 51, 102, 204, 0.2 ); | ||
} | } | ||
.scalc-num { width: 5em; } | .scalc-num { width: 4.5em; } | ||
.scalc-btn { | .scalc-btn { | ||
padding: 0. | padding: 0.3em 0.85em; | ||
border: 0; | border: 0; | ||
border-radius: | border-radius: 5px; | ||
background: #36c; | background: #36c; | ||
color: #fff; | color: #fff; | ||
cursor: pointer; | cursor: pointer; | ||
font-weight: bold; | font-weight: bold; | ||
font-size: 0. | font-size: 0.88em; | ||
} | } | ||
.scalc-btn:hover { background: #2a4b8d; } | .scalc-btn:hover { background: #2a4b8d; } | ||
.scalc-btn:active { transform: translateY( 1px ); } | .scalc-btn:active { transform: translateY( 1px ); } | ||
/* Result | /* Result: one compact strip. */ | ||
.scalc-results { margin-top: 0.6em; } | |||
.scalc-result { | .scalc-result { | ||
border: 1px solid #eaecf0; | border: 1px solid #eaecf0; | ||
border-radius: 6px; | |||
padding: 0.45em 0.7em; | |||
background: #f8f9fa; | background: #f8f9fa; | ||
} | } | ||
.scalc-result-hit { | .scalc-result-hit { border-color: #a6e8d5; background: #eafaf4; } | ||
.scalc-result-best { border-color: #14866d; } | |||
.scalc-result-head { | |||
} | display: flex; | ||
.scalc- | align-items: baseline; | ||
gap: 0.4em; | |||
flex-wrap: wrap; | |||
} | } | ||
.scalc-pct { | .scalc-pct { | ||
font-size: | font-size: 1.5em; | ||
font-weight: 800; | font-weight: 800; | ||
line-height: 1 | line-height: 1; | ||
color: #14866d; | color: #14866d; | ||
font-variant-numeric: tabular-nums; | font-variant-numeric: tabular-nums; | ||
} | } | ||
.scalc-result-miss .scalc-pct { color: #b32424; } | .scalc-result-miss .scalc-pct { color: #b32424; } | ||
.scalc-pctlabel { font-size: 0. | .scalc-pctlabel { font-size: 0.85em; color: #54595d; } | ||
.scalc-detail { margin: 0. | .scalc-detail { display: block; margin-top: 0.2em; font-size: 0.82em; color: #202122; } | ||
.scalc-note { | .scalc-note { display: block; font-size: 0.85em; color: #54595d; font-style: italic; } | ||
/* Narrow screens: stack fields full width. */ | /* Narrow screens: stack fields full width. */ | ||
@media ( max-width: 480px ) { | @media ( max-width: 480px ) { | ||
.scalc-field { flex: 1 1 100%; } | .scalc-field { flex: 1 1 100%; } | ||
.scalc-input, .scalc-num { width: 100%; box-sizing: border-box; } | .scalc-input, .scalc-num, .scalc-btn { width: 100%; box-sizing: border-box; } | ||
} | } | ||
Revision as of 07:12, 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; }
.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; }
/* 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; }
}