fix: simplify trainer controls

This commit is contained in:
nyan404 committed 2026-11-22 16:43:00 +03:00
1 parent cc6bcb23c8
commit 9be0bb48c8
9 files changed
+191 -78

No files matched your search

+7 -13
View File
@@ -75,14 +75,12 @@ dd { margin: 0; text-align: right; font-weight: bold; }
.character-sprite:has(img:not([hidden])) > span { visibility: hidden; }
.legend { display: flex; gap: 4px 12px; flex-wrap: wrap; padding: 12px 16px; font-size: var(--small); }
.result { margin: 0 12px 12px; padding: 12px; background: var(--paper); border: 2px solid var(--border); font-weight: bold; }
.mode { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.mode legend { font-size: var(--small); margin-bottom: 8px; }
.mode label { cursor: pointer; padding: 8px 12px; border: 1px solid var(--border); border-radius: 4px; min-height: 44px; display: flex; gap: 8px; align-items: center; background: var(--inner); }
.mode label:has(:checked) { background: var(--map); color: var(--light); }
input { accent-color: var(--map); }
.mode input { accent-color: var(--active); }
.cell-controls:has(#touch-actions:not([hidden])), .cell-controls:has(#status:not(:empty)) { padding: 8px 16px 0; }
#selection { font-size: var(--small); }
.action-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
#status { margin-top: 12px; font-size: var(--small); min-height: 3em; }
#status { font-size: var(--small); }
#touch-actions:not([hidden]) + #status:not(:empty) { margin-top: 8px; }
.mobile-tools { display: none; }
.journal { list-style-position: inside; margin: 0; padding: 0; max-height: 280px; overflow: auto; font-size: var(--small); scrollbar-color: var(--border) var(--inner); }
.journal li { padding: 8px 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
@@ -137,10 +135,9 @@ select { min-height: 44px; padding: 8px; width: 100%; }
.character .stats { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.character .stats > div { border: 0; padding: 2px 0; }
.location { order: 1; }
.actions { order: 2; }
.history-panel { display: none; }
.right-column { order: 3; width: 100%; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.mobile-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mobile-tools { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 12px; }
.mobile-tools button { flex: 1; }
.brand { display: block; }
.topbar { align-items: start; }
@@ -163,20 +160,17 @@ 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; }
.actions { order: 2; }
.messages-panel { order: 3; }
.map-panel, .history-panel { display: none; }
.mobile-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mobile-tools button { flex: 1; }
.cell-coord { font-size: 8px; left: 1px; top: 1px; padding: 0 1px; }
.cell-value { font-size: 14px; }
.scene-grid .opened .cell-coord { display: none; }
.action-buttons button { flex: 1; }
.action-buttons button { flex: 1 1 125px; }
.legend { padding: 8px 12px; }
.settings-fields { grid-template-columns: 1fr; }
dialog { padding: 16px; }
footer { padding: 16px 12px; }
}
@media (pointer: coarse) { .action-buttons button, .mobile-tools button, #map-mark, .mode label { min-height: 48px; } }
@media (pointer: coarse) { .action-buttons button, .mobile-tools button, #map-mark { 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; } }