MediaWiki:Gadget-spawncalc.css: Difference between revisions
Jump to navigation
Jump to search
(Create 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. | ||
#spawn-calculator { margin: 0.5em 0 1em; } | * Goal: read as one self-contained widget, not inline wiki markup. */ | ||
.scalc-intro { font-size: 0. | #spawn-calculator { | ||
margin: 0.8em 0 1.2em; | |||
border: 1px solid #c8ccd1; | |||
border-radius: 10px; | |||
background: #fff; | |||
overflow: hidden; | |||
box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.08 ); | |||
max-width: 46em; | |||
} | |||
/* Header bar */ | |||
.scalc-header { | |||
display: flex; | |||
align-items: center; | |||
gap: 0.5em; | |||
padding: 0.6em 1em; | |||
background: linear-gradient( 135deg, #14866d, #0f6e58 ); | |||
color: #fff; | |||
} | |||
.scalc-header-icon { font-size: 1.2em; line-height: 1; } | |||
.scalc-header-title { font-weight: bold; font-size: 1.05em; letter-spacing: 0.01em; } | |||
/* Body + sections */ | |||
.scalc-body { padding: 0.9em 1em 1em; } | |||
.scalc-intro { margin: 0 0 0.8em; font-size: 0.9em; color: #54595d; } | |||
.scalc-section { margin-bottom: 0.85em; } | |||
.scalc-section-label { | |||
font-size: 0.72em; | |||
font-weight: bold; | |||
text-transform: uppercase; | |||
letter-spacing: 0.06em; | |||
color: #72777d; | |||
margin-bottom: 0.4em; | |||
} | |||
.scalc-form { | .scalc-form { | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: 0. | gap: 0.7em 1em; | ||
align-items: flex-end; | align-items: flex-end; | ||
padding: 0. | padding: 0.8em 0.9em; | ||
background: #f8f9fa; | background: #f8f9fa; | ||
border: 1px solid # | border: 1px solid #eaecf0; | ||
border-radius: | border-radius: 8px; | ||
} | } | ||
.scalc-field { display: flex; flex-direction: column; gap: 0. | .scalc-field { display: flex; flex-direction: column; gap: 0.25em; } | ||
.scalc-label { font-weight: bold; font-size: 0. | .scalc-label { font-weight: bold; font-size: 0.8em; color: #202122; } | ||
.scalc-input, .scalc-num { | .scalc-input, .scalc-num { | ||
padding: 0. | padding: 0.3em 0.45em; | ||
border: 1px solid #a2a9b1; | border: 1px solid #a2a9b1; | ||
border-radius: 2px; | border-radius: 4px; | ||
background: #fff; | |||
font-size: 0.92em; | |||
} | |||
.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: 5em; } | .scalc-num { width: 5em; } | ||
/* Action row */ | |||
.scalc-actions { | |||
display: flex; | |||
align-items: center; | |||
gap: 0.8em; | |||
flex-wrap: wrap; | |||
margin-bottom: 0.9em; | |||
} | |||
.scalc-btn { | .scalc-btn { | ||
padding: 0. | padding: 0.45em 1.1em; | ||
border: | border: 0; | ||
border-radius: | border-radius: 6px; | ||
background: #36c; | background: #36c; | ||
color: #fff; | color: #fff; | ||
cursor: pointer; | cursor: pointer; | ||
font-weight: bold; | font-weight: bold; | ||
font-size: 0.95em; | |||
} | } | ||
.scalc-btn:hover { background: #2a4b8d; | .scalc-btn:hover { background: #2a4b8d; } | ||
.scalc-btn:active { transform: translateY( 1px ); } | |||
.scalc-actions-hint { font-size: 0.82em; color: #72777d; } | |||
.scalc- | /* Result panel */ | ||
.scalc- | .scalc-result { | ||
.scalc-pct { font-size: | border-radius: 8px; | ||
.scalc-pctlabel { font-size: 0. | padding: 0.85em 1em; | ||
.scalc-detail { margin: 0. | border: 1px solid #eaecf0; | ||
.scalc-note { margin: 0.3em 0; color: #54595d; font-style: italic; } | background: #f8f9fa; | ||
.scalc- | text-align: center; | ||
} | |||
.scalc-result-hit { | |||
border-color: #a6e8d5; | |||
background: linear-gradient( 180deg, #eafaf4, #f4fbf8 ); | |||
} | |||
.scalc-badge { | |||
display: inline-block; | |||
margin-bottom: 0.4em; | |||
padding: 0.15em 0.7em; | |||
border-radius: 999px; | |||
background: #14866d; | |||
color: #fff; | |||
font-size: 0.72em; | |||
font-weight: bold; | |||
text-transform: uppercase; | |||
letter-spacing: 0.05em; | |||
} | |||
.scalc-pct { | |||
font-size: 2.4em; | |||
font-weight: 800; | |||
line-height: 1.05; | |||
color: #14866d; | |||
font-variant-numeric: tabular-nums; | |||
} | |||
.scalc-result-miss .scalc-pct { color: #b32424; } | |||
.scalc-pctlabel { font-size: 0.9em; color: #54595d; margin-top: 0.1em; } | |||
.scalc-detail { margin: 0.55em 0 0; font-size: 0.88em; color: #202122; } | |||
.scalc-note { margin: 0.3em 0 0; font-size: 0.9em; 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 { width: 100%; box-sizing: border-box; } | |||
} | |||
Revision as of 07:05, 17 June 2026
/* Pixelmon spawn-chance calculator gadget styling.
* Goal: read as one self-contained widget, not inline wiki markup. */
#spawn-calculator {
margin: 0.8em 0 1.2em;
border: 1px solid #c8ccd1;
border-radius: 10px;
background: #fff;
overflow: hidden;
box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.08 );
max-width: 46em;
}
/* Header bar */
.scalc-header {
display: flex;
align-items: center;
gap: 0.5em;
padding: 0.6em 1em;
background: linear-gradient( 135deg, #14866d, #0f6e58 );
color: #fff;
}
.scalc-header-icon { font-size: 1.2em; line-height: 1; }
.scalc-header-title { font-weight: bold; font-size: 1.05em; letter-spacing: 0.01em; }
/* Body + sections */
.scalc-body { padding: 0.9em 1em 1em; }
.scalc-intro { margin: 0 0 0.8em; font-size: 0.9em; color: #54595d; }
.scalc-section { margin-bottom: 0.85em; }
.scalc-section-label {
font-size: 0.72em;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 0.06em;
color: #72777d;
margin-bottom: 0.4em;
}
.scalc-form {
display: flex;
flex-wrap: wrap;
gap: 0.7em 1em;
align-items: flex-end;
padding: 0.8em 0.9em;
background: #f8f9fa;
border: 1px solid #eaecf0;
border-radius: 8px;
}
.scalc-field { display: flex; flex-direction: column; gap: 0.25em; }
.scalc-label { font-weight: bold; font-size: 0.8em; color: #202122; }
.scalc-input, .scalc-num {
padding: 0.3em 0.45em;
border: 1px solid #a2a9b1;
border-radius: 4px;
background: #fff;
font-size: 0.92em;
}
.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: 5em; }
/* Action row */
.scalc-actions {
display: flex;
align-items: center;
gap: 0.8em;
flex-wrap: wrap;
margin-bottom: 0.9em;
}
.scalc-btn {
padding: 0.45em 1.1em;
border: 0;
border-radius: 6px;
background: #36c;
color: #fff;
cursor: pointer;
font-weight: bold;
font-size: 0.95em;
}
.scalc-btn:hover { background: #2a4b8d; }
.scalc-btn:active { transform: translateY( 1px ); }
.scalc-actions-hint { font-size: 0.82em; color: #72777d; }
/* Result panel */
.scalc-result {
border-radius: 8px;
padding: 0.85em 1em;
border: 1px solid #eaecf0;
background: #f8f9fa;
text-align: center;
}
.scalc-result-hit {
border-color: #a6e8d5;
background: linear-gradient( 180deg, #eafaf4, #f4fbf8 );
}
.scalc-badge {
display: inline-block;
margin-bottom: 0.4em;
padding: 0.15em 0.7em;
border-radius: 999px;
background: #14866d;
color: #fff;
font-size: 0.72em;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.scalc-pct {
font-size: 2.4em;
font-weight: 800;
line-height: 1.05;
color: #14866d;
font-variant-numeric: tabular-nums;
}
.scalc-result-miss .scalc-pct { color: #b32424; }
.scalc-pctlabel { font-size: 0.9em; color: #54595d; margin-top: 0.1em; }
.scalc-detail { margin: 0.55em 0 0; font-size: 0.88em; color: #202122; }
.scalc-note { margin: 0.3em 0 0; font-size: 0.9em; 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 { width: 100%; box-sizing: border-box; }
}