fix(project): 연간 목표 — 월 칸 너비 85px, 영역 색에 색 없음 + 연한 16색
- 표 칸 너비를 여백 포함(border-box)으로 — 150px 이 padding 만큼 171px 로 늘던 문제, 월 칸 85px - 좁아진 칸에 맞춰 숫자·글 칸 안쪽 여백 6px - 색 바꾸기 팝업: 맨 위 색 없음(흰 배경) + 연한 16색(8칸×2줄, 기존 8색 포함) - project.js/css 캐시 버전 20260930b Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+25
-9
@@ -2010,7 +2010,9 @@ html.pj-ui-scale .pj-modal-chat { max-height: calc(92vh / var(--pj-z)); }
|
||||
border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 12.5px;
|
||||
color: var(--pj-ink); background: #fff; border: 1px solid #dfe2e6; border-radius: 10px;
|
||||
}
|
||||
/* 칸 너비는 여백·테두리 포함(border-box) — 안 그러면 padding 만큼 넓어진다 */
|
||||
.pj-goal-table th, .pj-goal-table td {
|
||||
box-sizing: border-box;
|
||||
border-right: 1px solid #e6e8eb; border-bottom: 1px solid #e6e8eb; padding: 0; vertical-align: top;
|
||||
}
|
||||
.pj-goal-table tr > :last-child { border-right: none; }
|
||||
@@ -2018,8 +2020,8 @@ html.pj-ui-scale .pj-modal-chat { max-height: calc(92vh / var(--pj-z)); }
|
||||
position: sticky; top: 0; z-index: 3; background: #f7f8f9; height: 32px; padding: 0 10px;
|
||||
font-weight: 700; text-align: left; vertical-align: middle; white-space: nowrap;
|
||||
}
|
||||
.pj-goal-table thead th:not(.pj-goal-c1):not(.pj-goal-c2) { width: 150px; min-width: 150px; }
|
||||
.pj-goal-table thead th.pj-goal-year-col { width: 210px; min-width: 210px; }
|
||||
.pj-goal-table thead th { width: 85px; min-width: 85px; max-width: 85px; } /* 1~12월 */
|
||||
.pj-goal-table thead th.pj-goal-year-col { width: 210px; min-width: 210px; max-width: 210px; }
|
||||
.pj-goal-table thead th.is-now { color: var(--pj-accent-dark); box-shadow: inset 0 -2px 0 var(--pj-accent); }
|
||||
.pj-goal-c1, .pj-goal-c2 {
|
||||
position: sticky; z-index: 2; width: 72px; min-width: 72px; max-width: 72px;
|
||||
@@ -2027,20 +2029,22 @@ html.pj-ui-scale .pj-modal-chat { max-height: calc(92vh / var(--pj-z)); }
|
||||
}
|
||||
.pj-goal-c1 { left: 0; }
|
||||
.pj-goal-c2 { left: 72px; font-weight: 600; color: #3b4048; }
|
||||
.pj-goal-table thead .pj-goal-c1, .pj-goal-table thead .pj-goal-c2 { z-index: 4; }
|
||||
.pj-goal-table thead th.pj-goal-c1, .pj-goal-table thead th.pj-goal-c2 {
|
||||
z-index: 4; width: 72px; min-width: 72px; max-width: 72px; /* 왼쪽 고정 두 칸 — c2 의 left:72px 와 맞춤 */
|
||||
}
|
||||
.pj-goal-table tbody th { padding: 7px 8px; }
|
||||
|
||||
/* 숫자 지표 */
|
||||
.pj-goal-kpi td { height: 32px; vertical-align: middle; }
|
||||
.pj-goal-kpi td.is-now { background: #faf9ff; }
|
||||
input.pj-goal-num, span.pj-goal-num {
|
||||
display: block; width: 100%; box-sizing: border-box; height: 32px; padding: 0 10px; border: none;
|
||||
display: block; width: 100%; box-sizing: border-box; height: 32px; padding: 0 6px; border: none;
|
||||
background: transparent; font: inherit; font-variant-numeric: tabular-nums; text-align: right; line-height: 32px;
|
||||
}
|
||||
input.pj-goal-num:focus { outline: 2px solid var(--pj-accent); outline-offset: -2px; background: #fff; }
|
||||
.pj-goal-sum { padding: 0 10px !important; text-align: right; font-weight: 700; background: #fafafb;
|
||||
.pj-goal-sum { padding: 0 6px !important; text-align: right; font-weight: 700; background: #fafafb;
|
||||
font-variant-numeric: tabular-nums; }
|
||||
.pj-goal-rate { padding: 0 10px !important; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
|
||||
.pj-goal-rate { padding: 0 6px !important; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
|
||||
.pj-goal-rate.is-good { color: #1f8a4c; }
|
||||
.pj-goal-rate.is-low { color: #c2410c; }
|
||||
.pj-goal-kpi tr:last-child > * { border-bottom: 2px solid #d5d9de; }
|
||||
@@ -2057,12 +2061,12 @@ input.pj-goal-num:focus { outline: 2px solid var(--pj-accent); outline-offset: -
|
||||
.pj-goal-tools .pj-icon-btn .material-symbols-outlined { font-size: 15px; }
|
||||
.pj-goal-tools .pj-icon-btn:hover { background: rgba(255, 255, 255, .7); }
|
||||
textarea.pj-goal-text {
|
||||
display: block; width: 100%; box-sizing: border-box; min-height: 46px; padding: 7px 9px; border: none;
|
||||
display: block; width: 100%; box-sizing: border-box; min-height: 46px; padding: 6px; border: none;
|
||||
background: transparent; font: inherit; line-height: 1.5; color: inherit; resize: none; overflow: hidden;
|
||||
}
|
||||
textarea.pj-goal-text:focus { outline: 2px solid var(--pj-accent); outline-offset: -2px; background: rgba(255, 255, 255, .75); }
|
||||
textarea.pj-goal-text::placeholder { color: rgba(0, 0, 0, .3); }
|
||||
.pj-goal-text-ro { min-height: 46px; padding: 7px 9px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
|
||||
.pj-goal-text-ro { min-height: 46px; padding: 6px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
|
||||
.pj-goal-area td.is-now { box-shadow: inset 2px 0 0 rgba(123, 104, 238, .35), inset -2px 0 0 rgba(123, 104, 238, .35); }
|
||||
.pj-goal-texttd.pj-goal-year-col { font-weight: 600; }
|
||||
|
||||
@@ -2073,10 +2077,22 @@ textarea.pj-goal-text::placeholder { color: rgba(0, 0, 0, .3); }
|
||||
|
||||
/* 영역 색 고르기 팝업(body 에 붙음) */
|
||||
.pj-goal-colorpop {
|
||||
position: fixed; z-index: 1000; display: grid; grid-template-columns: repeat(4, 26px); gap: 6px;
|
||||
position: fixed; z-index: 1000; display: grid; grid-template-columns: repeat(8, 26px); gap: 6px;
|
||||
padding: 10px; background: #fff; border: 1px solid var(--pj-border); border-radius: 10px;
|
||||
box-shadow: 0 8px 24px rgba(16, 24, 40, .16);
|
||||
}
|
||||
.pj-goal-swatch { width: 26px; height: 26px; border-radius: 6px; border: 1px solid rgba(0, 0, 0, .12); cursor: pointer; padding: 0; }
|
||||
.pj-goal-swatch:hover { transform: scale(1.08); }
|
||||
.pj-goal-swatch.is-on { outline: 2px solid var(--pj-accent); outline-offset: 1px; }
|
||||
/* 맨 위 "색 없음" — 한 줄 전체, 흰 칸에 빨간 사선 */
|
||||
.pj-goal-swatch-none {
|
||||
grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px;
|
||||
border: 1px solid var(--pj-border); border-radius: 6px; background: #fff; color: var(--pj-ink);
|
||||
font-size: 12.5px; cursor: pointer;
|
||||
}
|
||||
.pj-goal-swatch-none:hover { background: #f6f7f8; }
|
||||
.pj-goal-swatch-none.is-on { outline: 2px solid var(--pj-accent); outline-offset: 1px; }
|
||||
.pj-goal-swatch-x {
|
||||
width: 16px; height: 16px; border: 1px solid rgba(0, 0, 0, .2); border-radius: 4px; background:
|
||||
linear-gradient(to top right, transparent calc(50% - 1px), #e5484d calc(50% - 1px), #e5484d calc(50% + 1px), transparent calc(50% + 1px));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user