v1.2
This commit is contained in:
parent
f500279abd
commit
cefa2ace5a
27 changed files with 1275 additions and 314 deletions
278
css/mobile.css
278
css/mobile.css
|
|
@ -59,7 +59,7 @@
|
|||
.sound-panel input:disabled + span { opacity: .55; }
|
||||
.sound-master { font-weight: 700; }
|
||||
.sound-panel-divider { height: 1px; background: rgba(84,68,48,.12); margin: 2px 0; }
|
||||
@media (max-width: 760px) { .sound-panel { right: auto; left: 0; } }
|
||||
@media (max-width: 980px) { .sound-panel { right: auto; left: 0; } }
|
||||
|
||||
|
||||
/* Collapsed card sizing is shared by the base panel rules; no event-only shrink override. */
|
||||
|
|
@ -363,7 +363,7 @@ body.touch-mobile-ui .tool-tip-popover {
|
|||
}
|
||||
|
||||
|
||||
/* v39.15.39: desktop rollback guard. Keep the normal PC layout; only remove duplicated quick-scroll buttons. */
|
||||
/* v39.15.47: desktop rollback guard. Keep the normal PC layout; only remove duplicated quick-scroll buttons. */
|
||||
@media (min-width: 981px) {
|
||||
.topbar {
|
||||
display: flex;
|
||||
|
|
@ -410,19 +410,281 @@ body.touch-mobile-ui .tool-tip-popover {
|
|||
}
|
||||
}
|
||||
|
||||
/* v39.15.39: mobile scroll must remain manual; disable any CSS scroll snapping. */
|
||||
/* v39.15.47: PC / smartphone UI isolation. All override UI placement is scoped by width. */
|
||||
@media (min-width: 981px) {
|
||||
html,
|
||||
body {
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
}
|
||||
#app {
|
||||
width: min(1480px, 100vw);
|
||||
padding: 18px;
|
||||
overflow: visible;
|
||||
}
|
||||
.topbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
gap: 14px 18px;
|
||||
}
|
||||
.top-left {
|
||||
flex: 1 0 auto;
|
||||
min-width: max-content;
|
||||
max-width: 100%;
|
||||
}
|
||||
.brand,
|
||||
.brand h1,
|
||||
h1 {
|
||||
flex: 0 0 auto;
|
||||
min-width: max-content;
|
||||
max-width: none !important;
|
||||
overflow: visible !important;
|
||||
text-overflow: clip !important;
|
||||
}
|
||||
.top-actions {
|
||||
flex: 1 1 560px;
|
||||
margin-left: auto;
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
.top-actions .btn,
|
||||
.top-actions .sound-menu-btn,
|
||||
.room-link {
|
||||
min-height: 42px;
|
||||
padding: 10px 16px;
|
||||
font-size: 13px;
|
||||
line-height: 1.15;
|
||||
}
|
||||
.layout {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(680px, 1fr) minmax(320px, 390px);
|
||||
align-items: start;
|
||||
}
|
||||
.panel {
|
||||
position: sticky;
|
||||
top: 12px;
|
||||
align-self: start;
|
||||
max-height: calc(100vh - 24px);
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
.panel-quick-tabs {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
}
|
||||
.panel-quick-tabs [data-panel-tab="game"],
|
||||
.panel-quick-tabs [data-panel-tab="tools"] {
|
||||
display: none !important;
|
||||
}
|
||||
.lineage-main-card {
|
||||
display: block;
|
||||
visibility: visible;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
width: auto;
|
||||
margin: 16px 0 0;
|
||||
overflow: hidden;
|
||||
contain: layout paint;
|
||||
}
|
||||
.lineage-main-content {
|
||||
height: min(78vh, 980px);
|
||||
min-height: 520px;
|
||||
max-height: calc(100vh - 120px);
|
||||
overflow: auto;
|
||||
overscroll-behavior: auto;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 980px) {
|
||||
html, body, #app, .layout, .stage-wrap, .panel, .card, .lineage-main-card {
|
||||
scroll-snap-type: none !important;
|
||||
scroll-snap-align: none !important;
|
||||
scroll-snap-stop: normal !important;
|
||||
html,
|
||||
body {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
min-height: 100%;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
overscroll-behavior-y: auto;
|
||||
}
|
||||
#app {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
padding: 10px max(10px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 104px) max(10px, env(safe-area-inset-left, 0px));
|
||||
overflow-x: clip;
|
||||
overflow-y: visible;
|
||||
}
|
||||
.topbar,
|
||||
.top-left,
|
||||
.brand,
|
||||
.layout,
|
||||
.stage-wrap,
|
||||
.panel,
|
||||
.card,
|
||||
.lineage-main-card {
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.topbar {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
gap: 8px;
|
||||
}
|
||||
.top-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
.brand h1,
|
||||
h1 {
|
||||
max-width: 100%;
|
||||
overflow: visible;
|
||||
text-overflow: clip;
|
||||
white-space: nowrap;
|
||||
font-size: clamp(20px, 7vw, 30px);
|
||||
}
|
||||
.top-actions {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
justify-content: flex-start;
|
||||
gap: 5px;
|
||||
width: 100%;
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
padding: 1px 0 5px;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
.top-actions > .btn,
|
||||
.top-actions > .sound-menu,
|
||||
.top-actions .sound-menu-btn {
|
||||
flex: 0 0 auto;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.top-actions .btn,
|
||||
.top-actions .sound-menu-btn {
|
||||
min-height: 34px;
|
||||
padding: 7px 9px;
|
||||
font-size: 11px;
|
||||
}
|
||||
.layout {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
gap: 10px;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
overflow: visible;
|
||||
}
|
||||
.stage-wrap {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
.panel {
|
||||
position: relative !important;
|
||||
top: auto !important;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
width: 100%;
|
||||
max-height: none !important;
|
||||
height: auto !important;
|
||||
overflow: visible !important;
|
||||
isolation: auto;
|
||||
}
|
||||
body.touch-mobile-ui .panel-quick-tabs,
|
||||
.panel-quick-tabs {
|
||||
position: fixed;
|
||||
left: max(8px, env(safe-area-inset-left, 0px));
|
||||
right: max(8px, env(safe-area-inset-right, 0px));
|
||||
bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
|
||||
top: auto;
|
||||
z-index: 12002;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(6, minmax(0, 1fr));
|
||||
gap: 4px;
|
||||
width: auto;
|
||||
max-width: none;
|
||||
margin: 0;
|
||||
padding: 6px;
|
||||
border: 1px solid rgba(102, 169, 215, 0.34);
|
||||
border-radius: 16px;
|
||||
background: rgba(244, 250, 247, 0.95);
|
||||
box-shadow: 0 12px 28px rgba(42, 54, 64, 0.18);
|
||||
}
|
||||
.panel-quick-tabs button {
|
||||
min-height: 34px;
|
||||
padding: 5px 2px;
|
||||
font-size: 10px;
|
||||
}
|
||||
body.touch-mobile-ui .mobile-mode-controls:not([hidden]) {
|
||||
display: flex !important;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
right: auto;
|
||||
bottom: 10px;
|
||||
transform: translateX(-50%);
|
||||
z-index: 24;
|
||||
max-width: calc(100% - 18px);
|
||||
}
|
||||
body.touch-mobile-ui.mobile-mode-auto #gameCanvas {
|
||||
touch-action: pan-y pinch-zoom !important;
|
||||
}
|
||||
body.touch-mobile-ui.mobile-mode-camera #gameCanvas,
|
||||
body.touch-mobile-ui.mobile-mode-tool #gameCanvas {
|
||||
touch-action: none !important;
|
||||
}
|
||||
.log {
|
||||
max-height: none !important;
|
||||
height: auto !important;
|
||||
overflow: visible !important;
|
||||
overscroll-behavior-y: auto !important;
|
||||
}
|
||||
.lineage-main-card {
|
||||
display: block !important;
|
||||
visibility: visible !important;
|
||||
margin-bottom: calc(env(safe-area-inset-bottom, 0px) + 132px);
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
width: 100%;
|
||||
margin: 10px 0 calc(env(safe-area-inset-bottom, 0px) + 132px);
|
||||
overflow: visible !important;
|
||||
contain: none !important;
|
||||
clear: both;
|
||||
}
|
||||
.lineage-main-content {
|
||||
display: block !important;
|
||||
height: auto !important;
|
||||
min-height: 360px;
|
||||
max-height: none !important;
|
||||
overflow-x: hidden !important;
|
||||
overflow-y: visible !important;
|
||||
overscroll-behavior-y: auto !important;
|
||||
-webkit-overflow-scrolling: auto;
|
||||
touch-action: pan-y pinch-zoom;
|
||||
}
|
||||
.lineage-family-tree {
|
||||
max-width: 100%;
|
||||
overflow-x: auto !important;
|
||||
overflow-y: visible !important;
|
||||
overscroll-behavior-x: contain;
|
||||
overscroll-behavior-y: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
touch-action: pan-x pan-y pinch-zoom;
|
||||
}
|
||||
.lineage-family-tree .lineage-tree-panel {
|
||||
max-width: none;
|
||||
}
|
||||
.selected-card,
|
||||
.tool-card,
|
||||
.colony-card,
|
||||
.log-card,
|
||||
.lineage-main-card,
|
||||
.stage-wrap {
|
||||
scroll-margin-top: 0 !important;
|
||||
scroll-margin-bottom: calc(env(safe-area-inset-bottom, 0px) + 104px);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue