Files
Aislo/ui_template/sheet/ui_template_sheet.css
T
eomsangdonandClaude Opus 5.5 20403340ed feat(sheet): 엑셀처럼 도는 표 부품 createSheet — master · project 두 모드 (PLAN 10-2)
- 여러 층 머리(null = 세로 합침 · 같은 앞머리 = 가로 합침) · 단위 줄 · 합계 줄 · 틀고정 · 열 너비 끌기
- 셀 편집은 M01 startEdit 그대로 · 화살표 · Tab · Enter · F2 · 바로 치기 · Delete 비움
- 줄 더하기 · 지우기 · master 는 열 더하기 · 지우기 · 손 입력 열 · 식 · 들어갈 것 · 일위대가 줄
- project 는 바인딩 · 계산 열 잠금 · 손 열만 입력 · 전구간 줄 맨 위 · 쪽줄 50 으로 쪽(쪽마다 머리 · 합계 마지막 쪽)
- 고칠 때마다 같은 TS 풀이로 즉시 다시 그림 · onChange 로 문서를 넘김(자동저장 없음)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tjoit7rxvpLMM7cafeVTo1
2026-09-25 09:41:29 +09:00

190 lines
3.8 KiB
CSS

/* =============================================================================
* ui_template_sheet.css — 엑셀처럼 도는 표 부품(`ui_template_sheet.ts`)
* 색은 테마 토큰만 — 설계값 = 초록 · 계산 = 노랑 · 손 입력 = 보라 기운
* ========================================================================== */
.ui-sheet {
display: flex;
flex-direction: column;
gap: var(--spacing-8);
min-width: 0;
outline: none;
}
.ui-sheet__toolbar {
display: flex;
flex-wrap: wrap;
gap: var(--spacing-8);
}
.ui-sheet__toolbar .ui-btn.is-on {
background: var(--color-mist-violet);
}
.ui-sheet__hint {
margin: 0;
color: var(--color-text-muted);
font-size: 0.8rem;
}
.ui-sheet__scroll {
overflow: auto;
max-height: calc(100vh - 260px);
border: 1px solid var(--color-border);
background: var(--color-canvas);
}
.ui-sheet__pages {
display: flex;
flex-direction: column;
gap: var(--spacing-16);
}
.ui-sheet__table {
table-layout: fixed;
border-collapse: separate;
border-spacing: 0;
font-size: 0.82rem;
}
.ui-sheet__page {
padding: var(--spacing-4) var(--spacing-8);
color: var(--color-text-secondary);
text-align: left;
}
.ui-sheet__table th,
.ui-sheet__table td {
position: relative;
height: 26px;
padding: 2px 6px;
overflow: hidden;
border-right: 1px solid var(--color-border);
border-bottom: 1px solid var(--color-border);
background: var(--color-canvas);
color: var(--color-text-body);
text-overflow: ellipsis;
white-space: nowrap;
}
.ui-sheet__table thead th,
.ui-sheet__table thead td {
background: var(--color-surface);
font-weight: 600;
text-align: center;
}
.ui-sheet__gutter {
position: sticky;
left: 0;
z-index: 2;
background: var(--color-surface) !important;
color: var(--color-text-secondary);
font-weight: 500;
text-align: center;
}
.ui-sheet__table .is-frozen {
position: sticky;
z-index: 1;
box-shadow: 1px 0 0 var(--color-border);
}
.ui-sheet__table td.is-num {
text-align: right;
font-variant-numeric: tabular-nums;
}
.ui-sheet__table td.is-bound {
background: color-mix(in srgb, var(--color-success) 7%, var(--color-canvas));
}
.ui-sheet__table td.is-calc {
background: color-mix(in srgb, var(--color-warning) 10%, var(--color-canvas));
}
.ui-sheet__table td.is-hand {
background: color-mix(in srgb, var(--color-lavender-wash) 14%, var(--color-canvas));
}
.ui-sheet--project .ui-sheet__table tbody td.is-locked {
color: var(--color-text-secondary);
}
.ui-sheet__table td.is-override {
font-style: italic;
}
.ui-sheet__table td.is-error {
color: var(--color-danger);
}
.ui-sheet__table .is-editable {
cursor: cell;
}
.ui-sheet__table td.is-selected {
outline: 2px solid var(--color-focus-ring);
outline-offset: -2px;
}
.ui-sheet__table tr.is-fixed td {
border-bottom: 2px solid var(--color-border);
}
.ui-sheet__meta td {
color: var(--color-text-secondary);
font-size: 0.76rem;
white-space: normal;
}
.ui-sheet__total td,
.ui-sheet__total th {
border-top: 2px solid var(--color-border);
font-weight: 600;
}
.ui-sheet__chip {
display: inline-block;
margin-right: 4px;
padding: 0 4px;
border-radius: 3px;
font-size: 0.7rem;
font-weight: 600;
}
.ui-sheet__chip.is-bound {
background: color-mix(in srgb, var(--color-success) 18%, var(--color-canvas));
color: var(--color-success);
}
.ui-sheet__chip.is-calc {
background: color-mix(in srgb, var(--color-warning) 22%, var(--color-canvas));
color: var(--color-warning);
}
.ui-sheet__chip.is-hand {
background: var(--color-mist-violet);
color: var(--color-accent);
}
.ui-sheet__resize {
position: absolute;
top: 0;
right: -3px;
z-index: 3;
width: 6px;
height: 100%;
cursor: col-resize;
}
.ui-sheet__table td input,
.ui-sheet__table th input {
width: 100%;
min-width: 0;
padding: 0 2px;
border: 0;
font: inherit;
text-align: inherit;
}