feat(performance): 매출 실적 표 열 너비 자동·날짜 열 고정·그룹 구분·접기 애니메이션
- 열 너비 = 내용 길이(표가 100% 로 늘지 않음, 모든 기간 같음), 날짜 열 고정 너비 → 자동 - 가로 스크롤해도 날짜 열 고정(sticky) - 그룹 열(진한 보라·묶음 선)과 하위 열(옅은 보라·위 띠) 구분, 마지막 하위 열 오른쪽 선 - 접기 단추 22px ⊟/⊞, 펼치고 접을 때 열 너비 애니메이션 - perf_manual.test.js 를 10/21 변경(앞날 입력·계산식 글자 그대로 전송)에 맞게 고침 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -407,3 +407,37 @@ body.perf-dragging, body.perf-dragging * { cursor: grabbing !important; user-sel
|
||||
.perf-group-sel { width: auto; min-width: 110px; height: 28px; padding: 2px 6px; font-size: 12.5px; margin-right: 4px; }
|
||||
.perf-del-btn { color: var(--perf-down); }
|
||||
.perf-add-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
|
||||
|
||||
/* ── 매출 실적 표(2026-10-22): 열 너비 = 내용 길이(모든 기간 같음), 날짜 열 고정, 그룹·하위 열 구분, 접기 애니메이션 ── */
|
||||
.perf-main.perf-autofit { width: auto; }
|
||||
.perf-main.perf-autofit thead th.perf-th-label, .perf-main.perf-autofit .perf-td-label { width: auto; min-width: 0; max-width: none; overflow: visible; }
|
||||
/* 날짜 열 — 가로 스크롤해도 왼쪽에 고정(배경을 깔아 뒤로 지나가는 칸을 가림, 오른쪽 그림자로 경계) */
|
||||
.perf-main.perf-autofit .perf-th-label, .perf-main.perf-autofit .perf-td-label {
|
||||
position: sticky; left: 0; z-index: 2; box-shadow: inset -1px 0 0 #e3e3e3, 6px 0 6px -6px rgba(0, 0, 0, .22);
|
||||
}
|
||||
.perf-main.perf-autofit thead th.perf-th-label { z-index: 4; }
|
||||
:where(.perf-main.perf-autofit) .perf-td-label { background: #fff; } /* 주간합계·기간 합계 줄 배경은 그 줄 규칙 그대로 */
|
||||
/* 그룹 열 = 진한 보라 머리 + 왼쪽 묶음 선, 하위 열 = 옅은 보라 머리(위 띠) + 옅은 칸, 마지막 하위 열(접히면 그룹 열)이 오른쪽 묶음 선 */
|
||||
.perf-main th.perf-th-group { background: #e6defa; color: #3d1d8a; font-weight: 800; box-shadow: inset 2px 0 0 #8a6fd8; }
|
||||
.perf-main td.perf-td-group { box-shadow: inset 2px 0 0 #8a6fd8; }
|
||||
.perf-main th.perf-th-group.is-gclosed, .perf-main td.perf-td-group.is-gclosed { box-shadow: inset 2px 0 0 #8a6fd8, inset -2px 0 0 #8a6fd8; }
|
||||
.perf-main th.perf-th-child { background: #f6f3fe; color: #5b4a86; font-weight: 600; font-size: 11.5px; box-shadow: inset 0 3px 0 #b9a6ee; }
|
||||
.perf-main th.perf-th-child.is-glast { box-shadow: inset 0 3px 0 #b9a6ee, inset -2px 0 0 #8a6fd8; }
|
||||
.perf-row-day > td[data-group-child], .perf-row-month > td[data-group-child] { background: #fcfbff; }
|
||||
.perf-main td.is-glast { box-shadow: inset -2px 0 0 #8a6fd8; }
|
||||
.perf-gh { display: inline-flex; align-items: center; gap: 6px; }
|
||||
/* 접기/펴기 단추 — 18px 둥근 네모 ⊟(펼침) / ⊞(접힘), 세로 막대가 돌며 바뀐다 */
|
||||
.perf-main .perf-gtoggle { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; margin: 0;
|
||||
border: 0; border-radius: 6px; background: none; cursor: pointer; vertical-align: middle; }
|
||||
.perf-main .perf-gtoggle:hover { background: #d9cff6; }
|
||||
.perf-main .perf-gtoggle:focus-visible { outline: 2px solid #6d4fd1; outline-offset: 1px; }
|
||||
.perf-gtoggle .g-box { fill: #fff; stroke: #8a6fd8; stroke-width: 1.4; }
|
||||
.perf-gtoggle .g-h, .perf-gtoggle .g-v { stroke: #4c2a9a; stroke-width: 1.9; stroke-linecap: round; }
|
||||
.perf-gtoggle .g-v { transform-origin: 9px 9px; transition: transform .26s ease; }
|
||||
.perf-gtoggle[aria-expanded="true"] .g-v { transform: rotate(90deg); } /* 펼침 = − (세로 막대가 가로로 겹침) */
|
||||
/* 하위 열 접기·펴기 애니메이션 — .perf-gc 너비·칸 좌우 여백·투명도 */
|
||||
.perf-gc { overflow: hidden; }
|
||||
.perf-main .is-ganim, .perf-main .is-ganim .perf-gc { transition: padding .26s ease, max-width .26s ease, opacity .2s ease; }
|
||||
.perf-main .is-gshut { padding-left: 0 !important; padding-right: 0 !important; }
|
||||
.perf-main .is-gshut .perf-gc { opacity: 0; }
|
||||
@media (prefers-reduced-motion: reduce) { .perf-gtoggle .g-v { transition: none; } }
|
||||
|
||||
Reference in New Issue
Block a user