Fix trainer mobile map and entrance hazard limits

This commit is contained in:
nyan404 committed 2026-11-22 17:34:19 +03:00
1 parent eb04ce3e48
commit ba25b64190
10 files changed
+208 -39

No files matched your search

+9 -2
View File
@@ -71,6 +71,8 @@ dd { margin: 0; text-align: right; font-weight: bold; }
.cell-grid .wrong button { background: var(--paper); color: var(--danger); }
.cell-coord { position: absolute; left: 4px; top: 2px; font-size: 10px; font-weight: normal; color: var(--light); background: #17120dbb; padding: 0 2px; line-height: 1.4; }
.cell-value { font-size: clamp(14px, 1.5vw, 24px); }
.entrance .cell-value { font-size: clamp(.8125rem, 1.2vw, 1rem); line-height: 1.25; white-space: nowrap; }
.scene-grid .entrance .cell-value { position: absolute; right: 2px; bottom: 2px; z-index: 1; padding: 0 2px; border-radius: 2px; background: var(--map); }
.cell-rating, .rating-key { background: var(--active); color: var(--ink); padding: 0 3px; border-radius: 2px; font-weight: bold; }
.cell-rating { position: absolute; bottom: 1px; right: 1px; font-size: .6875rem; line-height: 1.15; text-shadow: none; }
.character-sprite { position: absolute; width: 10%; height: 16.6667%; left: 0; top: 83.3333%; pointer-events: none; display: flex; align-items: center; justify-content: center; }
@@ -93,6 +95,7 @@ input { accent-color: var(--map); }
.map-panel .fineprint, #panel-dialog:has(#map-body) .fineprint { color: var(--paper); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.panel-heading h2 { min-width: 0; }
.phone-map-title { display: none; }
#map-toggle { color: inherit; background: none; border: 0; padding: 0 4px; text-align: left; font: inherit; }
#map-expand { padding: 4px 8px; font-size: var(--small); }
.map-grid { display: grid; gap: 2px; margin: 12px 0; }
@@ -169,8 +172,7 @@ select { min-height: 44px; padding: 8px; width: 100%; }
.character .stats > div { border: 0; padding: 2px 0; }
.character .stats:first-of-type > div:last-child, .character .stats:last-of-type > div:nth-child(n+3) { display: none; }
.location { order: 1; padding: 0; }
.messages-panel { order: 3; }
.map-panel, .history-panel { display: none; }
.messages-panel, .map-panel { order: 3; }
.cell-coord { font-size: 8px; left: 1px; top: 1px; padding: 0 1px; }
.cell-value { font-size: 14px; }
.scene-grid .opened .cell-coord { display: none; }
@@ -180,6 +182,11 @@ select { min-height: 44px; padding: 8px; width: 100%; }
dialog { padding: 16px; }
footer { padding: 16px 12px; }
}
@media (max-width: 700px), (max-width: 1100px) and (max-height: 500px) and (pointer: coarse) {
#map-title { scroll-margin-block-start: 12px; }
.phone-map-title { display: inline; }
#map-toggle, #map-expand { display: none; }
}
@media (pointer: coarse) { .action-buttons button, .mobile-tools button, #map-mark, #map-levels button, .listen-controls button, .listen-controls .check { min-height: 48px; } }
@media (prefers-reduced-motion: reduce) { button { transition: none; } }
@media (forced-colors: active) { .cell-grid .selected button, .cell-grid .current button { outline: 2px solid Highlight; outline-offset: -3px; } }