feat(project): Project 옵션 창 개편 — 분류별 설정 + 보드 카드 표지·처음 여는 탭
- 옵션 창을 왼쪽 분류(일반·프로젝트 화면·보드·관리자) | 오른쪽 설정 구조로 개편, 아래 [기본값으로]·취소·저장(한꺼번에 저장). 폰트·긴급 공지(수퍼관리자)는 그대로. - 보드: 카드 표지 이미지 켜기/끄기(localStorage pj_board_cover, 기본 켬) — 저장하면 보던 보드에 바로 반영. - 프로젝트 화면: 처음 여는 탭(pj_default_view — 보드·목록·캘린더·타임라인·대시보드). 달력 월 이동 복원·전체 보기(대시보드)·업무 창 패널(embed)은 기존 동작 유지. - 도움말·docs/PROJECT_MODULE.md·CLAUDE.md 갱신, jsdom 테스트 추가, 정적 파일 버전 올림. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+58
-7
@@ -3131,15 +3131,66 @@ html[data-pj-font="pretendard"] { --pj-font: "Pretendard Variable", var(--pj-sys
|
||||
html[data-pj-font="nanum-square"] { --pj-font: "NanumSquare", var(--pj-system-font); }
|
||||
html[data-pj-font="nanum-square-neo"] { --pj-font: "NanumSquareNeo", var(--pj-system-font); }
|
||||
html[data-pj-font="nanum-square-round"] { --pj-font: "NanumSquareRound", var(--pj-system-font); }
|
||||
.pj-options-dialog { width: min(440px, calc(100vw - 40px)); box-sizing: border-box; padding: 24px; border: 1px solid #d8dce2; border-radius: 12px; color: var(--pj-ink); font-family: var(--pj-font); box-shadow: 0 12px 40px #0003; }
|
||||
/* ── Project 옵션 대화창(_options.html) — 데스크톱 프로그램 설정 창처럼 왼쪽 분류 | 오른쪽 설정 ── */
|
||||
.pj-options-dialog { width: min(720px, calc(100vw - 40px)); max-height: min(600px, calc(100vh - 40px)); box-sizing: border-box; padding: 0; border: 1px solid #d8dce2; border-radius: 12px; color: var(--pj-ink); font-family: var(--pj-font); box-shadow: 0 12px 40px #0003; overflow: hidden; }
|
||||
.pj-options-dialog[open] { display: flex; }
|
||||
.pj-options-dialog::backdrop { background: #0005; }
|
||||
.pj-options-dialog h2 { margin: 0 0 22px; font-size: 20px; font-weight: 500; }
|
||||
.pj-options-dialog label { display: block; margin-bottom: 8px; }
|
||||
.pj-options-dialog form { display: flex; flex-direction: column; width: 100%; min-height: 0; }
|
||||
.pj-options-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--pj-border); }
|
||||
.pj-options-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 18px; font-weight: 500; }
|
||||
.pj-options-head h2 .material-symbols-outlined { font-size: 22px; color: var(--pj-accent); }
|
||||
.pj-options-x { display: inline-flex; padding: 4px; border: 0; border-radius: 6px; background: none; color: #6d6e6f; cursor: pointer; }
|
||||
.pj-options-x:hover { background: #f1f2f4; color: var(--pj-ink); }
|
||||
.pj-options-body { display: flex; flex: 1; min-height: 380px; overflow: hidden; }
|
||||
.pj-options-nav { flex: 0 0 180px; display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; background: #f7f8fa; border-right: 1px solid var(--pj-border); }
|
||||
.pj-options-nav button { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 0; border-radius: 6px; background: none; color: #3d3f42; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
|
||||
.pj-options-nav button .material-symbols-outlined { font-size: 20px; color: #6d6e6f; }
|
||||
.pj-options-nav button:hover { background: #eceef1; }
|
||||
.pj-options-nav button.is-active { background: var(--pj-accent-tint); color: var(--pj-accent-dark); font-weight: 600; }
|
||||
.pj-options-nav button.is-active .material-symbols-outlined { color: var(--pj-accent); }
|
||||
.pj-options-nav button:focus-visible { outline: 2px solid var(--pj-accent); outline-offset: -2px; }
|
||||
.pj-options-panes { flex: 1; min-width: 0; padding: 20px 24px; overflow-y: auto; }
|
||||
.pj-options-pane h3 { margin: 0 0 14px; font-size: 15px; font-weight: 600; }
|
||||
.pj-options-group { border: 1px solid var(--pj-border); border-radius: 8px; }
|
||||
.pj-options-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; }
|
||||
.pj-options-row + .pj-options-row { border-top: 1px solid var(--pj-border); }
|
||||
.pj-options-row.is-stack { flex-direction: column; align-items: stretch; gap: 10px; }
|
||||
label.pj-options-row[for] { cursor: pointer; }
|
||||
.pj-options-row > label, .pj-options-label { display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
|
||||
.pj-options-row > label b, .pj-options-label b { font-weight: 500; }
|
||||
.pj-options-row small, .pj-options-note { font-size: 12px; color: var(--pj-ink-soft); }
|
||||
.pj-options-dialog select { width: 100%; padding: 9px; border: 1px solid #d8dce2; border-radius: 6px; font: inherit; }
|
||||
.pj-options-preview { padding: 18px 12px; margin-top: 16px; border: 1px solid #e5e6e8; border-radius: 6px; font-size: 16px; line-height: 1.7; }
|
||||
.pj-options-dialog p { font-size: 12px; color: var(--pj-ink-soft); }
|
||||
.pj-options-dialog .pj-options-error { color: #c22b10; }
|
||||
.pj-options-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
|
||||
.pj-options-preview { padding: 16px 12px; border: 1px solid #e5e6e8; border-radius: 6px; background: #fcfcfd; font-size: 16px; line-height: 1.7; }
|
||||
/* 처음 여는 탭 — 아이콘 카드 5개 중 하나 */
|
||||
.pj-options-views { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
|
||||
.pj-options-views label { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 10px; border: 1px solid #d8dce2; border-radius: 8px; font-size: 13px; cursor: pointer; transition: border-color .12s, background .12s; }
|
||||
.pj-options-views label .material-symbols-outlined { font-size: 26px; color: #6d6e6f; }
|
||||
.pj-options-views label:hover { border-color: var(--pj-accent); }
|
||||
.pj-options-views input { position: absolute; opacity: 0; pointer-events: none; }
|
||||
.pj-options-views label:has(input:checked) { border-color: var(--pj-accent); background: var(--pj-accent-tint); color: var(--pj-accent-dark); font-weight: 600; box-shadow: 0 0 0 1px var(--pj-accent) inset; }
|
||||
.pj-options-views label:has(input:checked) .material-symbols-outlined { color: var(--pj-accent); }
|
||||
.pj-options-views label:has(input:focus-visible) { outline: 2px solid var(--pj-accent); outline-offset: 2px; }
|
||||
/* 켜기/끄기 스위치 */
|
||||
.pj-switch { position: relative; flex: none; display: inline-block; width: 40px; height: 22px; }
|
||||
.pj-switch input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
|
||||
.pj-switch span { position: absolute; inset: 0; border-radius: 999px; background: #c9ccd1; transition: background .15s; pointer-events: none; }
|
||||
.pj-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #0003; transition: transform .15s; }
|
||||
.pj-switch input:checked + span { background: var(--pj-accent); }
|
||||
.pj-switch input:checked + span::after { transform: translateX(18px); }
|
||||
.pj-switch input:focus-visible + span { outline: 2px solid var(--pj-accent); outline-offset: 2px; }
|
||||
.pj-switch input:disabled + span { opacity: .5; }
|
||||
.pj-options-foot { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--pj-border); background: #fafbfc; }
|
||||
.pj-options-foot .pj-options-reset { margin-right: auto; }
|
||||
.pj-options-scope { font-size: 12px; color: var(--pj-ink-soft); margin-right: 6px; }
|
||||
.pj-options-dialog .pj-options-error { margin: 0 6px 0 0; font-size: 12px; color: #c22b10; }
|
||||
.pj-options-error:not([hidden]) + .pj-options-scope { display: none; }
|
||||
@media (max-width: 560px) {
|
||||
.pj-options-body { flex-direction: column; min-height: 0; overflow-y: auto; }
|
||||
.pj-options-nav { flex: none; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--pj-border); }
|
||||
.pj-options-nav button { white-space: nowrap; }
|
||||
.pj-options-views { grid-template-columns: repeat(3, 1fr); }
|
||||
.pj-options-scope { display: none; }
|
||||
}
|
||||
.pj-goal-format { position: fixed; z-index: 1200; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 4px 6px; max-width: calc(100vw - 16px); box-sizing: border-box; border: 1px solid var(--pj-border); border-radius: 8px; box-shadow: 0 4px 16px #0002; background: #fff; color: var(--pj-ink); font-family: var(--pj-font); font-size: 12px; }
|
||||
.pj-goal-format[hidden], .pj-goal-color-grid[hidden] { display: none; }
|
||||
.pj-goal-format-group { display: inline-flex; align-items: center; gap: 2px; }
|
||||
|
||||
Reference in New Issue
Block a user