Files
pokerogue-type-pokemon/popup/popup.css
Vectry 6df2002d31 Initial release: PokeRogue Type Effectiveness extension
Chrome/Firefox MV3 extension that shows move type effectiveness during
PokeRogue battles. Features:

- Auto-detects battle state via Phaser game bridge (MAIN world)
- Shows effectiveness multiplier, base power, and physical/special category
- Supports single and double battles
- Manual type calculator mode as fallback
- Draggable overlay with dark theme matching PokeRogue aesthetic
- Settings popup with position, opacity, and display options
- Complete Gen 6+ type chart (18 types) from PokeRogue source data
- Type colors matching PokeRogue's own color scheme
2026-02-12 18:03:09 +00:00

247 lines
4.8 KiB
CSS

/*
* PokeRogue Type Effectiveness - Popup Styles
*/
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
width: 280px;
background: #1a1a2e;
color: #e0e0e0;
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
font-size: 13px;
}
.popup {
padding: 12px;
}
/* ─── Header ──────────────────────────────────────────────────── */
.popup-header {
display: flex;
align-items: center;
gap: 10px;
padding-bottom: 12px;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
margin-bottom: 12px;
}
.popup-icon {
width: 32px;
height: 32px;
border-radius: 6px;
}
.popup-title {
font-size: 14px;
font-weight: 700;
color: #fff;
}
.popup-subtitle {
font-size: 11px;
color: #888;
margin-top: 1px;
}
/* ─── Sections ────────────────────────────────────────────────── */
.popup-section {
margin-bottom: 10px;
}
.popup-label {
display: flex;
justify-content: space-between;
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.5px;
color: #888;
margin-bottom: 6px;
}
.popup-hint {
font-size: 10px;
color: #666;
margin-top: 3px;
font-style: italic;
}
.popup-divider {
height: 1px;
background: rgba(255, 255, 255, 0.06);
margin: 10px 0;
}
/* ─── Toggle Switch ───────────────────────────────────────────── */
.popup-toggle {
display: flex;
align-items: center;
gap: 10px;
cursor: pointer;
}
.popup-toggle input {
display: none;
}
.toggle-slider {
width: 36px;
height: 20px;
background: #333;
border-radius: 10px;
position: relative;
transition: background 0.2s;
flex-shrink: 0;
}
.toggle-slider::after {
content: '';
position: absolute;
top: 2px;
left: 2px;
width: 16px;
height: 16px;
background: #888;
border-radius: 50%;
transition: all 0.2s;
}
.popup-toggle input:checked + .toggle-slider {
background: #4AA500;
}
.popup-toggle input:checked + .toggle-slider::after {
left: 18px;
background: #fff;
}
.toggle-label {
font-size: 13px;
color: #ddd;
}
/* ─── Position Grid ───────────────────────────────────────────── */
.popup-position-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 4px;
}
.pos-btn {
padding: 6px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 6px;
color: #aaa;
font-size: 16px;
cursor: pointer;
transition: all 0.15s;
font-family: inherit;
}
.pos-btn:hover {
background: rgba(255, 255, 255, 0.1);
color: #fff;
}
.pos-btn.active {
background: rgba(74, 165, 0, 0.2);
border-color: #4AA500;
color: #4AA500;
}
/* ─── Range Slider ────────────────────────────────────────────── */
.popup-slider {
width: 100%;
-webkit-appearance: none;
appearance: none;
height: 4px;
background: #333;
border-radius: 2px;
outline: none;
}
.popup-slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 14px;
height: 14px;
background: #4AA500;
border-radius: 50%;
cursor: pointer;
transition: transform 0.1s;
}
.popup-slider::-webkit-slider-thumb:hover {
transform: scale(1.2);
}
.popup-slider::-moz-range-thumb {
width: 14px;
height: 14px;
background: #4AA500;
border: none;
border-radius: 50%;
cursor: pointer;
}
/* ─── Checkboxes ──────────────────────────────────────────────── */
.popup-checkbox {
display: flex;
align-items: center;
gap: 8px;
padding: 3px 0;
cursor: pointer;
font-size: 12px;
color: #ccc;
}
.popup-checkbox input {
accent-color: #4AA500;
width: 14px;
height: 14px;
}
/* ─── Footer ──────────────────────────────────────────────────── */
.popup-footer {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 12px;
padding-top: 10px;
border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.popup-btn {
padding: 5px 14px;
background: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 6px;
color: #ccc;
font-size: 12px;
cursor: pointer;
transition: all 0.15s;
font-family: inherit;
}
.popup-btn:hover {
background: rgba(255, 255, 255, 0.14);
color: #fff;
}
.popup-version {
font-size: 10px;
color: #555;
}