big update
This commit is contained in:
217
game/index.html
217
game/index.html
@@ -116,6 +116,25 @@
|
||||
.board { list-style: none; padding: 0; margin: 14px 0 0; text-align: left; font-variant-numeric: tabular-nums; max-height: 150px; overflow: auto; }
|
||||
.board li { display: flex; gap: 10px; padding: 2px 0; }
|
||||
.board li .nm { flex: 1; } .board li.me { color: var(--good); }
|
||||
/* live animated ranking board */
|
||||
.livedot { font: 12px var(--head); color: var(--good); letter-spacing: .06em; vertical-align: middle; animation: pulse 1.6s ease-in-out infinite; }
|
||||
@keyframes pulse { 50% { opacity: .35; } }
|
||||
.board.live { max-height: 340px; margin-top: 10px; }
|
||||
.board.live .brow { display: flex; align-items: center; gap: 9px; padding: 5px 8px; border-radius: 8px;
|
||||
background: var(--panel2); border: 1px solid var(--line); margin-bottom: 5px; will-change: transform; }
|
||||
.board.live .brow.me { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
|
||||
.board.live .rk { width: 22px; text-align: center; font: 14px var(--head); color: var(--dim); }
|
||||
.board.live .brow:nth-child(1) .rk { color: #f2c230; } .board.live .brow:nth-child(2) .rk { color: #cfd6e0; } .board.live .brow:nth-child(3) .rk { color: #d08a4a; }
|
||||
.board.live .fl { width: 20px; flex: none; }
|
||||
.board.live .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.board.live .arrow { font-size: 10px; margin-left: 5px; animation: arrpop .9s ease-out; }
|
||||
.board.live .arrow.up { color: var(--good); } .board.live .arrow.dn { color: #e5593b; }
|
||||
@keyframes arrpop { 0% { transform: translateY(4px); opacity: 0; } 30% { opacity: 1; } 100% { opacity: .6; } }
|
||||
.board.live .val { position: relative; width: 108px; flex: none; display: flex; align-items: center; justify-content: flex-end;
|
||||
padding: 2px 8px; border-radius: 6px; overflow: hidden; background: #0d1016; }
|
||||
.board.live .val .fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--accent), #ffb060);
|
||||
opacity: .3; transition: width .5s cubic-bezier(.2,.8,.2,1); }
|
||||
.board.live .val b { position: relative; font-weight: 700; font-variant-numeric: tabular-nums; }
|
||||
.muted { color: var(--dim); font-size: 13px; }
|
||||
.row { display: flex; gap: 8px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
|
||||
.credits { margin: 14px 0 0; font-size: 12px; color: var(--dim); }
|
||||
@@ -142,6 +161,21 @@
|
||||
.trow2 { display: flex; gap: 6px; flex-wrap: wrap; }
|
||||
.trow2 button { flex: 1 1 auto; font-size: 13px; min-height: 36px; padding: 4px 10px; }
|
||||
.title .credits { margin-top: 10px; }
|
||||
/* title: live ranking on the right, names fade in from the bottom up */
|
||||
.trank { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); width: 300px; max-width: 36vw;
|
||||
background: rgba(12,14,19,.82); border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; box-shadow: var(--hl), 0 8px 30px #000a; }
|
||||
.trank h3 { margin: 0 0 9px; font: 15px var(--head); letter-spacing: .05em; color: var(--accent); display: flex; align-items: center; gap: 8px; }
|
||||
.trank ol { list-style: none; margin: 0; padding: 0; }
|
||||
.trank .trow { display: grid; grid-template-columns: 18px 20px 1fr auto; gap: 8px; align-items: center; padding: 5px 2px; font-size: 13px;
|
||||
font-variant-numeric: tabular-nums; border-bottom: 1px solid rgba(255,255,255,.06); opacity: 0; animation: trankin .5s ease-out both; }
|
||||
.trank .trow:last-child { border-bottom: none; }
|
||||
.trank .trow.me { color: var(--accent); font-weight: 700; }
|
||||
.trank .trk { text-align: center; color: var(--dim); font-weight: 700; }
|
||||
.trank .trow:nth-child(1) .trk { color: #f2c230; } .trank .trow:nth-child(2) .trk { color: #cfd6e0; } .trank .trow:nth-child(3) .trk { color: #d08a4a; }
|
||||
.trank .trn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.trank .trmuted { color: var(--dim); font-size: 13px; list-style: none; }
|
||||
@keyframes trankin { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
|
||||
@media (max-width: 720px) { .trank { display: none; } } /* too narrow -> hide, title stays usable */
|
||||
.skip { position: absolute; right: 16px; bottom: 12px; font-size: 12px; color: rgba(255,255,255,.55); }
|
||||
.form { width: 320px; margin: 0 auto; text-align: left; display: flex; flex-direction: column; gap: 8px; }
|
||||
.form label { font-size: 13px; color: var(--dim); }
|
||||
@@ -156,13 +190,24 @@
|
||||
.seg button { flex: 1 1 56px; padding: 5px 8px; font-size: 13px; }
|
||||
.seg button.on { background: var(--accent); color: #1a0c02; border-color: var(--accent); font-weight: 700; }
|
||||
/* compact settings: two columns of label + control */
|
||||
.set2 { display: grid; grid-template-columns: 96px 1fr 96px 1fr; gap: 7px 12px; align-items: center; text-align: left; min-width: 680px; }
|
||||
.set2 .sl, .setacc .sl { font-size: 13px; color: var(--dim); }
|
||||
.set2 .seg button { padding: 6px 4px; font-size: 12px; min-height: 34px; }
|
||||
.set2 input[type=range] { width: 100%; accent-color: var(--accent); height: 28px; }
|
||||
.setacc { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; align-items: center; text-align: left; margin-top: 12px;
|
||||
padding-top: 10px; border-top: 1px solid var(--line); }
|
||||
.setacc .who { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.set2 { display: grid; grid-template-columns: 88px 1fr 88px 1fr; gap: 5px 10px; align-items: center; text-align: left; min-width: 620px; }
|
||||
.set2 .sl, .setacc .sl, .setdev .sl { font-size: 12px; color: var(--dim); }
|
||||
.setdev { display: grid; grid-template-columns: 88px 1fr; gap: 8px; align-items: center; text-align: left; margin-top: 8px;
|
||||
padding-top: 8px; border-top: 1px solid var(--line); }
|
||||
.setdev .row { display: flex; gap: 6px; } .setdev .row button { flex: 1; min-height: 34px; font-size: 12px; }
|
||||
.set2 .seg button { padding: 4px 4px; font-size: 11.5px; min-height: 34px; }
|
||||
.set2 input[type=range] { width: 100%; accent-color: var(--accent); height: 24px; }
|
||||
.setacc { display: grid; grid-template-columns: 88px 1fr auto; gap: 10px; align-items: center; text-align: left; margin-top: 8px;
|
||||
padding-top: 8px; border-top: 1px solid var(--line); }
|
||||
.setacc .who { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.selset { width: 100%; min-height: 34px; padding: 5px 8px; background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; }
|
||||
/* first-start country picker */
|
||||
.flaggrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 6px; }
|
||||
.flagbtn { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 4px; min-height: 48px;
|
||||
background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; color: var(--text); font-size: 12px; }
|
||||
.flagbtn .fl { width: 34px; height: 22px; }
|
||||
.flagbtn.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; background: rgba(255,122,26,.14); }
|
||||
@media (hover: hover) { .flagbtn:hover { border-color: var(--accent); } }
|
||||
|
||||
/* league */
|
||||
/* tournament bracket */
|
||||
@@ -204,11 +249,14 @@
|
||||
.res .plus { color: var(--good); } .res .minus { color: var(--warn); }
|
||||
|
||||
/* shop */
|
||||
#shop { position: absolute; inset: 44px 0 0; display: grid; grid-template-columns: 300px 1fr; z-index: 3; pointer-events: none; }
|
||||
#shop { position: absolute; inset: 44px 0 0; display: grid; grid-template-columns: 1fr 560px; z-index: 3; pointer-events: none; }
|
||||
#shop.hide, #fightHud.hide { display: none; }
|
||||
#shop > * { pointer-events: auto; }
|
||||
#sLeft { display: flex; flex-direction: column; padding: 12px; gap: 8px; pointer-events: none; }
|
||||
/* left grid cell = the free area left of the shop panel; robot renders centered behind it */
|
||||
#sLeft { position: relative; pointer-events: none; }
|
||||
#sLeft > * { pointer-events: auto; }
|
||||
.slTL { position: absolute; left: 14px; top: 12px; width: 230px; display: flex; flex-direction: column; gap: 8px; }
|
||||
.slBottom { position: absolute; left: 50%; transform: translateX(-50%); bottom: 14px; width: min(96%, 660px); display: flex; flex-direction: column; align-items: center; gap: 6px; }
|
||||
/* hangar: robot slots at the top of the shop */
|
||||
.hangar { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 4px; }
|
||||
.hslot { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; font-size: 12px; max-width: 120px; }
|
||||
@@ -218,16 +266,17 @@
|
||||
.hslot .hdel:hover { background: rgba(0,0,0,.25); opacity: 1; }
|
||||
.hadd { padding: 4px 11px; font-size: 15px; font-weight: 700; color: var(--accent); }
|
||||
/* name plate riveted to the robot, always readable (not only on hover) */
|
||||
#rname { width: 100%; font: 20px var(--head); letter-spacing: .04em; background: rgba(11,14,20,.82);
|
||||
#rname { width: 100%; font: 18px var(--head); letter-spacing: .04em; background: rgba(11,14,20,.82);
|
||||
border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r2);
|
||||
color: var(--text); padding: 4px 10px; text-shadow: 0 2px 6px #000; box-shadow: var(--hl); }
|
||||
#rname:hover, #rname:focus { border-color: var(--accent); outline: none; }
|
||||
.mech { display: flex; gap: 8px; align-items: flex-end; }
|
||||
.mech .pic { width: 42px; height: 50px; font-size: 28px; border-radius: 8px; overflow: hidden; background: rgba(0,0,0,.35); border: 1px solid var(--line); }
|
||||
.mech .bubble { background: rgba(250,246,238,.95); color: #1b1d22; border-radius: 10px 10px 10px 2px; padding: 5px 8px; font-size: 11.5px; max-width: 210px; box-shadow: 0 4px 14px #0008; }
|
||||
.mech .bubble { background: rgba(250,246,238,.95); color: #1b1d22; border-radius: 10px 10px 10px 2px; padding: 6px 9px; font-size: 12px; line-height: 1.3; max-width: 240px; box-shadow: 0 4px 14px #0008; }
|
||||
.spacer { flex: 1; pointer-events: none !important; }
|
||||
.stats { background: rgba(12,14,19,.8); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px; font-size: 11px; font-variant-numeric: tabular-nums; }
|
||||
.stats .st { display: grid; grid-template-columns: 18px 1fr 54px; gap: 5px; align-items: center; }
|
||||
.stats { background: rgba(12,14,19,.88); border: 1px solid var(--line); border-radius: 12px; padding: 7px 12px; width: 100%;
|
||||
display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; font-size: 12px; font-variant-numeric: tabular-nums; box-shadow: var(--hl); }
|
||||
.stats .st { flex: 1 1 120px; display: grid; grid-template-columns: 18px 1fr 50px; gap: 6px; align-items: center; }
|
||||
.stats .st > span:last-child { text-align: right; }
|
||||
#shop.painting .mech, #shop.painting .stats { display: none; }
|
||||
.stats .pic { width: 18px; height: 18px; font-size: 16px; }
|
||||
@@ -235,11 +284,20 @@
|
||||
.bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); }
|
||||
.bar i.ghost { background: rgba(255,255,255,.35); }
|
||||
.bar i.over { background: var(--warn); }
|
||||
/* over-limit meter (weight / power) flashes so the problem is obvious at a glance */
|
||||
.st.warn { animation: meterpulse 0.7s ease-in-out 4; border-radius: 6px; }
|
||||
.st.warn .pic, .st.warn > span:last-child { color: var(--warn); font-weight: 700; }
|
||||
.st.warn .bar i.over { animation: barpulse 0.7s ease-in-out infinite; }
|
||||
@keyframes meterpulse { 0%, 100% { filter: none; } 50% { filter: brightness(1.9); } }
|
||||
@keyframes barpulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
|
||||
.gbar .err.alert { color: #fff; background: var(--warn); border-radius: 6px; padding: 3px 8px; font-size: 10.5px; font-weight: 700; line-height: 1.25;
|
||||
box-shadow: 0 0 0 1px #000 inset, 0 2px 10px #0008; animation: errblink 0.46s steps(1, end) 6; }
|
||||
@keyframes errblink { 0%, 100% { background: var(--warn); color: #fff; } 50% { background: #5a1410; color: #ffb9a6; } }
|
||||
.paint { display: flex; gap: 3px; align-items: center; font-size: 11px; color: var(--dim); }
|
||||
.paint span.sw { width: 15px; height: 15px; border-radius: 4px; border: 2px solid transparent; cursor: pointer; }
|
||||
.paint span.sw.on { border-color: #fff; }
|
||||
.paint .lb { width: 46px; }
|
||||
#sRight { background: rgba(14,16,22,.9); border-left: 1px solid var(--line); display: flex; flex-direction: column; padding: 10px 12px; gap: 8px; min-height: 0; }
|
||||
#sRight { background: rgba(14,16,22,.9); border-left: 1px solid var(--line); display: flex; flex-direction: column; padding: 10px 12px; gap: 8px; min-height: 0; width: 100%; max-width: 560px; margin-left: auto; }
|
||||
#buildView { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; }
|
||||
#buildView.hide, #paintView.hide, #hangarView.hide { display: none; }
|
||||
#paintView, #hangarView { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
|
||||
@@ -250,6 +308,12 @@
|
||||
/* zoom bar under the preview */
|
||||
.zoombar { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 12px; color: var(--dim); margin-bottom: 2px; }
|
||||
.zoombar button { width: 30px; height: 26px; padding: 0; font-size: 16px; font-weight: 700; }
|
||||
.placebtn { width: 100%; min-height: 40px; font: 13px var(--head); letter-spacing: .03em; border-left: 3px solid var(--accent); }
|
||||
.placebtn::before { content: '🔧 '; }
|
||||
.placebtn.on { background: var(--accent); color: #1a0c02; border-color: var(--accent); }
|
||||
.placehint { font-size: 11.5px; color: var(--dim); background: rgba(8,10,14,.7); border: 1px solid var(--line);
|
||||
border-radius: 8px; padding: 5px 8px; line-height: 1.3; }
|
||||
.placehint.hide { display: none; }
|
||||
/* fitted parts strip (bottom of the parts view): 7 compact chips, does not cover the robot preview */
|
||||
.fittedwrap { border-top: 1px solid var(--line); padding-top: 5px; }
|
||||
.flabel { font: 10px var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 3px; }
|
||||
@@ -294,21 +358,23 @@
|
||||
#designer .drow { display: grid; grid-template-columns: 48px 1fr 34px; gap: 8px; align-items: center; font-size: 11px; margin: 2px 0; }
|
||||
#designer .drow input[type=range] { width: 100%; accent-color: var(--accent); height: 20px; }
|
||||
#designer .drow .dv { text-align: right; color: var(--dim); font-variant-numeric: tabular-nums; }
|
||||
#cards { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px;
|
||||
align-content: start; padding: 7px; background: rgba(0,0,0,.26); border: 1px solid var(--line); border-top: none;
|
||||
#cards { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 6px;
|
||||
align-content: start; padding: 8px; background: rgba(0,0,0,.26); border: 1px solid var(--line); border-top: none;
|
||||
border-radius: 0 0 var(--r2) var(--r2); }
|
||||
.item { background: linear-gradient(#252b37, #171b23); border: 1px solid #39414f; border-radius: var(--r2);
|
||||
padding: 4px 4px 3px; cursor: pointer; text-align: center; position: relative;
|
||||
box-shadow: var(--hl), 0 2px 0 rgba(0,0,0,.45); }
|
||||
padding: 16px 4px 5px; cursor: pointer; text-align: center; position: relative; min-width: 0;
|
||||
display: flex; flex-direction: column; gap: 2px; box-shadow: var(--hl), 0 2px 0 rgba(0,0,0,.45); }
|
||||
@media (hover: hover) { .item:hover { border-color: #5a6478; } }
|
||||
.item.sel { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255,122,26,.3); }
|
||||
.item > .pic { width: 100%; height: 40px; font-size: 30px; }
|
||||
.item .nm { font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.item > .pic { width: 100%; height: 42px; font-size: 30px; }
|
||||
.item .nm { font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
|
||||
.item .pr { font-size: 11px; color: var(--gold); display: flex; gap: 3px; justify-content: center; align-items: center;
|
||||
font-variant-numeric: tabular-nums; background: rgba(0,0,0,.3); border-radius: var(--r1); padding: 0 4px; margin: 2px auto 0; width: fit-content; }
|
||||
.item .pr .pic { width: 14px; height: 14px; }
|
||||
.item .pr.no { color: var(--warn); }
|
||||
.item .badge { position: absolute; top: 5px; left: 5px; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--accent); color: #1a0c02; }
|
||||
/* badge as a thin ribbon across the top so it never overlaps the image */
|
||||
.item .badge { position: absolute; top: 3px; left: 3px; right: 3px; text-align: center; font-size: 9px; font-weight: 700;
|
||||
letter-spacing: .02em; padding: 1px 0; border-radius: 5px; background: var(--accent); color: #1a0c02; white-space: nowrap; overflow: hidden; }
|
||||
.item .badge.own { background: #3c4556; color: var(--text); }
|
||||
#detail { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 9px; display: grid; grid-template-columns: 46px 1fr auto; gap: 9px; align-items: center; min-height: 56px; }
|
||||
#detail > .pic { width: 46px; height: 46px; font-size: 32px; }
|
||||
@@ -357,17 +423,18 @@
|
||||
.achrow .ad { font-size: 11.5px; color: var(--dim); font-weight: 400; }
|
||||
.achrow .am { font-size: 16px; text-align: center; }
|
||||
|
||||
/* paint tab: proper colour chips instead of tiny dots */
|
||||
#paintView { gap: 10px; }
|
||||
.psec h4 { margin: 0 0 6px; font: 12px var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
|
||||
.pgrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 7px; }
|
||||
.pgrid.wide { grid-template-columns: repeat(8, 1fr); }
|
||||
.pgrid .sw { position: relative; height: 40px; border-radius: var(--r2); border: 2px solid #000a;
|
||||
/* paint tab: compact colour chips (must fit without scrolling) */
|
||||
#shop.paintmode #tabs, #shop.paintmode #detail, #shop.paintmode #fittedwrap { display: none !important; }
|
||||
.psec { margin: 0 0 2px; }
|
||||
.psec h4 { margin: 0 0 2px; font: 8.5px var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
|
||||
.pgrid { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; }
|
||||
.pgrid.wide { grid-template-columns: repeat(10, 1fr); }
|
||||
.pgrid .sw { position: relative; height: 16px; border-radius: var(--r1); border: 1.5px solid #000a;
|
||||
cursor: pointer; box-shadow: var(--hl), 0 2px 0 rgba(0,0,0,.4); transition: transform .1s; }
|
||||
@media (hover: hover) { .pgrid .sw:hover { transform: translateY(-2px); } }
|
||||
.pgrid .sw.on { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
|
||||
.pgrid .sw.on::after { content: '✓'; position: absolute; inset: 0; display: flex; align-items: center;
|
||||
justify-content: center; color: #fff; font-size: 19px; font-weight: 700; text-shadow: 0 1px 3px #000; }
|
||||
justify-content: center; color: #fff; font-size: 10px; font-weight: 700; text-shadow: 0 1px 3px #000; }
|
||||
.pgrid .duo { display: flex; overflow: hidden; }
|
||||
.pgrid .duo i { flex: 1; }
|
||||
.pcustom { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
|
||||
@@ -533,6 +600,70 @@
|
||||
#gate.open .gh-top { transform: translateY(-100%); }
|
||||
#gate.open .gh-bot { transform: translateY(100%); }
|
||||
|
||||
/* build editor: fills the shop panel in place of the parts view (robot stays on the left) */
|
||||
/* weapon placement + shape: small panel, top-right of the live-view area */
|
||||
#wplace { position: absolute; right: 14px; top: 12px; width: 198px; background: rgba(12,14,19,.9); border: 1px solid var(--line);
|
||||
border-radius: 10px; padding: 7px 9px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--hl); }
|
||||
#wplace.hide { display: none; }
|
||||
#wplace .wphead { font: 10px var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-top: 2px; }
|
||||
#wplace .wpsides { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
|
||||
#wplace .wpsides button { min-height: 30px; font-size: 11px; padding: 2px; }
|
||||
#wplace .wpsides button.on { background: var(--accent); color: #1a0c02; border-color: var(--accent); font-weight: 700; }
|
||||
#wplace .wprow { display: grid; grid-template-columns: 54px 1fr 36px; gap: 6px; align-items: center; font-size: 11px; }
|
||||
#wplace .wprow input[type=range] { width: 100%; accent-color: var(--accent); height: 16px; }
|
||||
#wplace .wprow .dv { text-align: right; color: var(--dim); font-variant-numeric: tabular-nums; }
|
||||
#wplace .weplist { display: flex; flex-wrap: wrap; gap: 4px; }
|
||||
#wplace .wepchip { display: flex; align-items: center; gap: 4px; padding: 2px 6px; min-height: 26px; border: 1px solid var(--line); border-radius: 7px; background: #141922; cursor: pointer; font-size: 11px; }
|
||||
#wplace .wepchip.on { border-color: var(--accent); background: #2a1c10; }
|
||||
#wplace .wepchip .pic { width: 16px; height: 16px; }
|
||||
#wplace .wepchip .x { color: var(--warn); font-weight: 700; padding: 0 1px; font-size: 12px; }
|
||||
#wplace .edhint { font-size: 10.5px; color: var(--dim); }
|
||||
.item.dim { opacity: .5; }
|
||||
.pbtn { width: 100%; min-height: 44px; font-size: 16px; }
|
||||
|
||||
/* paint / hangar / weapon editor all render inside #cards; override the parts grid */
|
||||
#cards.wedit { display: flex; flex-direction: column; grid-template-columns: none; gap: 7px; padding: 9px; }
|
||||
#cards.pcards { display: flex; flex-direction: column; grid-template-columns: none; gap: 6px; padding: 7px; overflow: hidden; }
|
||||
#cards.hcards { display: flex; flex-direction: column; grid-template-columns: none; gap: 6px; padding: 10px; }
|
||||
/* paint tab: 3 save slots + inline painter */
|
||||
.phdr { display: flex; flex-direction: column; gap: 4px; }
|
||||
.pslots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
|
||||
.pslot { position: relative; height: 22px; border-radius: 6px; border: 2px solid #000a; cursor: pointer; overflow: hidden; }
|
||||
.pslot.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
|
||||
.pslot .acc { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; }
|
||||
.pslot .dmark { position: absolute; top: 1px; left: 4px; font-size: 11px; text-shadow: 0 1px 2px #000; }
|
||||
.pslot .sv { position: absolute; top: 2px; right: 2px; min-height: 0; padding: 0 4px; font-size: 10px; line-height: 1.3; }
|
||||
#painter.inline { position: static; grid-column: auto; grid-row: auto; background: none; border: none; padding: 0; gap: 6px; }
|
||||
#painter.inline .pt-head { display: none; }
|
||||
#painter.inline #ptCancel, #painter.inline #ptDone { display: none; }
|
||||
#painter.inline .pt-canvas canvas { width: 100%; height: auto; max-height: 184px; aspect-ratio: 2 / 1; margin: 0 auto; }
|
||||
#painter.inline .pt-tools button, #painter.inline .pt-colors .sw, #painter.inline .gbar button { padding: 3px 6px; font-size: 11px; }
|
||||
#painter.inline .pt-row { margin: 2px 0; }
|
||||
#painter.inline .gbar { border-top: none; padding-top: 0; }
|
||||
.wedit .edsec { background: var(--panel2); border: 1px solid var(--line); border-radius: 9px; padding: 7px 9px; }
|
||||
.wedit .edlabel { font: 10px var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 5px; }
|
||||
.wedit .weplist { display: flex; flex-wrap: wrap; gap: 5px; }
|
||||
.wedit .wepchip { display: flex; align-items: center; gap: 5px; padding: 3px 7px; min-height: 30px; border: 1px solid var(--line);
|
||||
border-radius: 8px; background: #141922; cursor: pointer; font-size: 12px; }
|
||||
.wedit .wepchip.on { border-color: var(--accent); background: #2a1c10; }
|
||||
.wedit .wepchip .pic { width: 18px; height: 18px; }
|
||||
.wedit .wepchip .x { color: var(--warn); font-weight: 700; padding: 0 2px; font-size: 13px; }
|
||||
.wedit .addrow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 6px; }
|
||||
.wedit .addrow button { min-height: 36px; font-size: 9.5px; padding: 3px 2px; display: flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.1; }
|
||||
.wedit .addrow button .pic { width: 18px; height: 18px; }
|
||||
.wedit .addrow button .pr { color: var(--gold); font-size: 9px; }
|
||||
.wedit .addrow button:disabled { opacity: .4; }
|
||||
.wedit .sides { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
|
||||
.wedit .sides button { min-height: 34px; font-size: 11.5px; }
|
||||
.wedit .sides button.on { background: var(--accent); color: #1a0c02; border-color: var(--accent); font-weight: 700; }
|
||||
.wedit .erow { display: grid; grid-template-columns: 50px 1fr 38px; gap: 8px; align-items: center; font-size: 11px; margin: 3px 0; }
|
||||
.wedit .erow input[type=range] { width: 100%; accent-color: var(--accent); height: 18px; }
|
||||
.wedit .erow .dv { text-align: right; color: var(--dim); font-variant-numeric: tabular-nums; }
|
||||
.wedit .edhint { font-size: 11px; color: var(--dim); line-height: 1.3; }
|
||||
.wedit .edmeters { display: flex; flex-wrap: wrap; gap: 7px; font-size: 11.5px; }
|
||||
.wedit .edmeters b { color: var(--text); }
|
||||
.wedit .edmeters .over { color: var(--warn); }
|
||||
|
||||
/* touch pad: only on touch screens */
|
||||
#pad { position: absolute; left: 14px; right: 14px; bottom: 14px; display: none; justify-content: space-between; pointer-events: none; z-index: 5; }
|
||||
#pad > div { display: grid; grid-template-columns: repeat(3, 60px); gap: 6px; pointer-events: auto; }
|
||||
@@ -573,11 +704,15 @@
|
||||
|
||||
<div id="shop" class="hide">
|
||||
<div id="sLeft">
|
||||
<input id="rname" maxlength="18" spellcheck="false">
|
||||
<div class="zoombar"><button id="zOut" title="Zoom -">-</button><span data-i18n="zoom">Zoom</span><button id="zIn" title="Zoom +">+</button></div>
|
||||
<div class="spacer"></div>
|
||||
<div class="stats" id="meters"></div>
|
||||
<div class="mech"><span class="pic" data-f="🧔" id="mechPic"></span><div class="bubble" id="mechTip"></div></div>
|
||||
<div class="slTL">
|
||||
<input id="rname" maxlength="18" spellcheck="false">
|
||||
<div class="mech"><span class="pic" data-f="🧔" id="mechPic"></span><div class="bubble" id="mechTip"></div></div>
|
||||
</div>
|
||||
<div id="wplace" class="hide"></div>
|
||||
<div class="slBottom">
|
||||
<div class="zoombar"><button id="zOut" title="Zoom -">-</button><span data-i18n="zoom">Zoom</span><button id="zIn" title="Zoom +">+</button></div>
|
||||
<div class="stats" id="meters"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="sRight">
|
||||
<div class="shoptabs" id="shopTabs"></div>
|
||||
@@ -586,23 +721,13 @@
|
||||
<div id="cards"></div>
|
||||
<div id="detail"></div>
|
||||
<div id="designer" class="hide"></div>
|
||||
<div class="fittedwrap"><div class="flabel" data-i18n="fitted_parts">Fitted</div><div id="fitted" class="fitted"></div></div>
|
||||
<div id="fittedwrap" class="fittedwrap"><div class="flabel" data-i18n="fitted_parts">Fitted</div><div id="fitted" class="fitted"></div></div>
|
||||
</div>
|
||||
<div id="paintView" class="hide">
|
||||
<div class="psec"><h4 data-i18n="paint_body">Body</h4><div class="pgrid" id="paintBody"></div></div>
|
||||
<div class="psec"><h4 data-i18n="paint_accent">Accent</h4><div class="pgrid" id="paintAccent"></div></div>
|
||||
<div class="psec"><h4 data-i18n="paint_schemes">Schemes</h4><div class="pgrid wide" id="paintSchemes"></div></div>
|
||||
<div class="spacer"></div>
|
||||
<div class="pcustom">
|
||||
<div class="pct"><b data-i18n="pt_open">Paint it yourself</b><span class="muted" data-i18n="paint_hint">Pick quick colours above, or paint your own design.</span></div>
|
||||
<button id="bPaint" class="primary">🎨</button>
|
||||
</div>
|
||||
</div>
|
||||
<div id="hangarView" class="hide"></div>
|
||||
<div class="gbar">
|
||||
<div class="err" id="gErr"></div>
|
||||
<button id="bGMenu" data-i18n="menu">Menu</button>
|
||||
<button id="bGMode">Kampagne</button>
|
||||
<button id="bRankG" style="display:none">🏆</button>
|
||||
<button id="bTrain" data-i18n="training">Training</button>
|
||||
<button class="primary" id="bLeague">League</button>
|
||||
</div>
|
||||
@@ -664,6 +789,8 @@
|
||||
<script src="ai.js"></script>
|
||||
<script src="profiles.js"></script>
|
||||
<script src="net.js"></script>
|
||||
<script src="cloudsave.js"></script>
|
||||
<script src="ranking.js"></script>
|
||||
<script src="lobby.js"></script>
|
||||
<script src="looks.js"></script>
|
||||
<script src="render3d.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user