모든 게임이 남는 화면 전체를 쓰도록: 게임별 폭 상한 제거, 판·카드·말을 --play-w/--play-h에 맞춰 키움
- 카드 게임: 펠트가 남는 높이를 채우고 손패·가운데 더미·자리 크기가 화면에 따라 커짐 - 판 게임: 체스·바둑·오목 등은 높이를 다 쓰고, 장기·쿼리도·젬블로는 넓은 화면에서 조작판을 판 옆으로 - 섯다: 자리를 판 크기에 맞춘 타원 위에 고르게 두고, 많을 때 자리 크기를 줄여 8명에서도 겹치지 않게 - 바퀴벌레 포커 6명·야단법석 달리기 5명 선수 뽑기가 PC에서 넘치지 않게 - 휴대폰·태블릿(1100px 아래) 배치는 그대로 - layout-survey: 컴퓨터 넣기 버튼 기다림, 넘친 높이(px) 표시 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -193,6 +193,26 @@ button.cl-card.can { box-shadow: 0 0 0 3px var(--primary); }
|
||||
.cl-note { grid-template-columns: minmax(0, 1fr); }
|
||||
.cl-card { width: 66px; min-height: 78px; }
|
||||
}
|
||||
/* PC: fill the play column. Wide screens put the map on the left and the actions, my cards and notes on the right;
|
||||
room text, tokens and cards grow with the play area. */
|
||||
@media (min-width: 1100px) {
|
||||
.cl-board { max-width: none; align-self: stretch; flex: 1 1 auto; min-height: 0; }
|
||||
.cl-rname { font-size: clamp(.92rem, calc(var(--play-h) * .017), 1.25rem); }
|
||||
.cl-tok { width: clamp(24px, calc(var(--play-h) * .03), 34px); height: clamp(24px, calc(var(--play-h) * .03), 34px); font-size: clamp(.72rem, calc(var(--play-h) * .013), .95rem); }
|
||||
.cl-weap { font-size: clamp(1rem, calc(var(--play-h) * .024), 1.6rem); }
|
||||
.cl-mid { font-size: clamp(.8rem, calc(var(--play-h) * .014), 1rem); }
|
||||
.cl-card { width: clamp(74px, calc(var(--play-w) * .055), 100px); min-height: clamp(86px, calc(var(--play-w) * .064), 116px); }
|
||||
}
|
||||
@media (min-width: 1700px) {
|
||||
.cl-board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr);
|
||||
grid-template-areas: "map act" "map cards" "map note"; }
|
||||
.cl-top { display: contents; }
|
||||
.cl-map { grid-area: map; grid-template-rows: repeat(4, minmax(84px, 1fr)); }
|
||||
.cl-top > .cl-panel { grid-area: act; }
|
||||
.cl-board > section.cl-sec { grid-area: cards; }
|
||||
.cl-board > details.cl-sec { grid-area: note; }
|
||||
.cl-note li { min-height: clamp(34px, calc((var(--play-h) - 400px) / 11), 48px); }
|
||||
}
|
||||
/* Tokens / weapons on the map are lifted above the rooms while they slide (see slideFrom). */
|
||||
.cl-map [data-tok], .cl-map [data-weap] { position: relative; }
|
||||
.fx-ghost.cl-ghost { display: flex; align-items: center; justify-content: center; border-radius: 8px; background: linear-gradient(160deg, #fffaf0, #f1e6cf);
|
||||
|
||||
Reference in New Issue
Block a user