style(project): 제목 전체에 프로젝트 색 배경, 아이콘 1.2배·세로 가운데, 섹션 추가 110px

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-28 20:56:10 +09:00
parent 10610b119f
commit de140304b9
6 changed files with 25 additions and 22 deletions
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20260928e" />
<link rel="stylesheet" href="/static/project.css?v=20260928f" />
<link rel="stylesheet" href="/static/project-help.css?v=20260926v" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20260928e" />
<link rel="stylesheet" href="/static/project.css?v=20260928f" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %}
@@ -104,5 +104,5 @@
{% include "project/_side_modals.html" %}
{% include "project/_member_tasks_modal.html" %}
<script src="/static/project.js?v=20260928e" defer></script>
<script src="/static/project.js?v=20260928f" defer></script>
{% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20260928e" />
<link rel="stylesheet" href="/static/project.css?v=20260928f" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %}
@@ -100,5 +100,5 @@
"today": {{ today | tojson }}
}
</script>
<script src="/static/project.js?v=20260928e" defer></script>
<script src="/static/project.js?v=20260928f" defer></script>
{% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20260928e" />
<link rel="stylesheet" href="/static/project.css?v=20260928f" />
<!-- 구글 머티리얼 심볼(담당자 아이콘 등) — self-host -->
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
<!-- 타임라인 vis-timeline — self-host -->
@@ -485,5 +485,5 @@
</script>
<script src="/static/vendor/vis-timeline/vis-timeline-graph2d.min.js"></script>
<script src="/static/project.js?v=20260928e" defer></script>
<script src="/static/project.js?v=20260928f" defer></script>
{% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20260928e" />
<link rel="stylesheet" href="/static/project.css?v=20260928f" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %}
@@ -70,5 +70,5 @@
{% include "project/_side_modals.html" %}
{% include "project/_member_tasks_modal.html" %}
<script src="/static/project.js?v=20260928e" defer></script>
<script src="/static/project.js?v=20260928f" defer></script>
{% endblock %}
+16 -13
View File
@@ -176,25 +176,28 @@
color: #6b7280; font-size: 15px; line-height: 1; cursor: pointer;
}
.pj-title-addmember:hover { border-style: solid; border-color: var(--pj-accent); color: var(--pj-accent); }
/* 제목 — 아사나처럼 프로젝트 색 네모 아이콘 + 진한 글자 제목 */
/* 제목 — 프로젝트 색 사각형 하나에 아이콘 + 이름(글자는 흰색, 밝은 색이면 진한 색) */
.pj-project-title-pill, .pj-project-title-all {
display: inline-flex; align-items: center; gap: 10px; max-width: 100%; vertical-align: middle;
font-size: 21px; font-weight: 700; color: #1e1f21;
border-radius: 8px; padding: 2px 8px 2px 0; white-space: nowrap;
display: inline-flex; align-items: center; gap: 8px; max-width: 100%; vertical-align: middle;
font-size: 21px; font-weight: 700; color: #fff; line-height: 1.2;
background: var(--pj-color, var(--pj-accent)); border-radius: 10px;
padding: 6px 12px 6px 10px; white-space: nowrap;
}
.pj-project-title-pill.is-light { color: #1e1f21; }
.pj-project-title-all { background: #5f6368; }
/* 아이콘 — 25px(예전 21px 의 1.2배), 사각형 위아래 가운데 */
.pj-pill-ic {
flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
width: 34px; height: 34px; border-radius: 9px; font-size: 21px;
background: var(--pj-color, var(--pj-accent)); color: #fff;
width: 25px; height: 25px; font-size: 25px; line-height: 1; color: inherit;
}
.pj-project-title-pill.is-light .pj-pill-ic { color: #1e1f21; }
.pj-project-title-all .pj-pill-ic { background: #5f6368; }
.pj-pill-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; outline: none; padding: 2px 6px; border-radius: 6px; }
/* 제목 바로 수정 — 마우스를 올리면 옅은 테두리 + 글자 커서, 편집 중엔 강조 테두리 */
.pj-pill-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; outline: none; padding: 1px 4px; border-radius: 6px; }
/* 제목 바로 수정 — 마우스를 올리면 이름에 옅은 흰 테두리 + 글자 커서, 편집 중엔 흰 테두리 */
.pj-project-title-pill.is-editable { cursor: text; }
.pj-project-title-pill.is-editable .pj-pill-name { box-shadow: 0 0 0 1px transparent; transition: box-shadow .12s; }
.pj-project-title-pill.is-editable:hover .pj-pill-name { box-shadow: 0 0 0 1px #c9cdd3; }
.pj-project-title-pill.is-editing .pj-pill-name { box-shadow: 0 0 0 2px var(--pj-color, var(--pj-accent)); text-overflow: clip; }
.pj-project-title-pill.is-editable:hover .pj-pill-name { box-shadow: 0 0 0 1px rgba(255,255,255,.75); }
.pj-project-title-pill.is-light.is-editable:hover .pj-pill-name { box-shadow: 0 0 0 1px rgba(30,31,33,.35); }
.pj-project-title-pill.is-editing .pj-pill-name { box-shadow: 0 0 0 2px #fff; text-overflow: clip; }
.pj-project-title-pill.is-light.is-editing .pj-pill-name { box-shadow: 0 0 0 2px #1e1f21; }
.pj-pill-name[contenteditable="true"] { display: inline-block; min-width: 2em; white-space: pre; }
/* 현재 활성 뷰(보드/리스트/달력/타임라인)가 pj-main 의 남은 세로 공간을
차지 — 뷰 하나만 자체 스크롤(다른 칸과 스크롤이 서로 안 얽히게). 보드는
@@ -234,7 +237,7 @@
/* ── 보드(칸반) — 아사나식. 세션은 가로로 한 줄에 나란히 놓이고, 화면을
넘치면 아래로 접히지 않고 보드가 가로로 스크롤된다. ── */
/* "+ 섹션 추가" — 아사나처럼 마지막 섹션 바로 오른쪽(renderBoard 가 캔버스 끝에 붙인다) */
.pj-add-stage.pj-board-addstage { flex: 0 0 240px; width: 240px; padding: 12px; text-align: left; }
.pj-add-stage.pj-board-addstage { flex: 0 0 110px; width: 110px; padding: 12px 8px; text-align: center; white-space: nowrap; }
/* pj-board = 가로 스크롤 뷰포트(남은 세로 공간을 그대로 씀, 부모가 이미
flex 로 높이를 정해준다). pj-board-canvas = 세션을 가로로 늘어놓는 flex
컨테이너 — width:max-content 라서 세션이 늘어나는 만큼 캔버스가 넓어지고