feat(project): 수신함 제목 가운데·굵게 + 성공하기 창 탭에 미끄러지는 사각형 하이라이트
- 수신함 머리 1fr|제목|1fr 격자 — 제목 정가운데·700, [성공하기]는 제목 오른쪽(절대 배치) - dbx.html 탭: Project 뷰 탭처럼 옅은 보라 사각형(.tab-hl)이 고른 탭으로 이동(줄 바뀜도 따라감) - project.css 버전 20261015b Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -11,10 +11,14 @@ body{margin:0;font-family:"맑은 고딕","Malgun Gothic",-apple-system,sans-ser
|
||||
header{display:flex;align-items:center;justify-content:space-between;background:#1f2937;color:#fff;padding:14px 24px;font-size:22px;font-weight:700}
|
||||
.close{border:1px solid rgba(255,255,255,.35);background:transparent;color:#fff;font-size:14px;font-weight:600;padding:6px 16px;border-radius:6px;cursor:pointer;font-family:inherit}
|
||||
.close:hover{background:rgba(255,255,255,.12)}
|
||||
nav{display:flex;flex-wrap:wrap;gap:4px;background:#fff;padding:8px 16px 0;border-bottom:1px solid #ddd}
|
||||
.tab{border:none;background:none;padding:12px 18px;font-size:15px;cursor:pointer;color:#555;border-bottom:3px solid transparent;font-family:inherit}
|
||||
.tab:hover{color:#111;background:#f2f2f2}
|
||||
.tab.active{color:#2563eb;border-bottom-color:#2563eb;font-weight:700}
|
||||
nav{position:relative;display:flex;flex-wrap:wrap;gap:4px;background:#fff;padding:8px 16px;border-bottom:1px solid #ddd}
|
||||
/* 탭 — Project 뷰 탭(보드/목록/…)처럼 고른 탭 뒤 옅은 보라 사각형이 새 탭으로 미끄러진다 */
|
||||
.tab{position:relative;z-index:1;border:none;background:none;padding:8px 14px;border-radius:6px;font-size:15px;font-weight:600;cursor:pointer;color:#6b7280;font-family:inherit;transition:color .2s}
|
||||
.tab:hover{color:#1e1f21}
|
||||
.tab.active{color:#1e1f21}
|
||||
.tab-hl{position:absolute;top:0;left:0;z-index:0;background:#ebe8fd;border-radius:6px;pointer-events:none;
|
||||
transition:transform .22s cubic-bezier(.4,0,.2,1),width .22s cubic-bezier(.4,0,.2,1),height .22s cubic-bezier(.4,0,.2,1)}
|
||||
.tab-hl.no-anim{transition:none}
|
||||
main{max-width:860px;margin:24px auto;padding:0 16px}
|
||||
.panel{display:none;background:#fff;border-radius:12px;padding:28px 32px;box-shadow:0 2px 8px rgba(0,0,0,.06)}
|
||||
.panel.active{display:block;animation:fade .25s}
|
||||
@@ -138,10 +142,24 @@ p{margin:0 0 18px}
|
||||
</section>
|
||||
</main>
|
||||
<script>
|
||||
const nav=document.querySelector('nav'),hl=document.createElement('span');
|
||||
hl.className='tab-hl';nav.insertBefore(hl,nav.firstChild);
|
||||
// 고른 탭 위치·크기로 사각형을 옮긴다(탭이 두 줄로 접혀도 위아래까지 따라감). animate=false 는 즉시.
|
||||
function moveHl(animate){
|
||||
const a=nav.querySelector('.tab.active');if(!a)return;
|
||||
if(!animate)hl.classList.add('no-anim');
|
||||
hl.style.width=a.offsetWidth+'px';hl.style.height=a.offsetHeight+'px';
|
||||
hl.style.transform='translate('+a.offsetLeft+'px,'+a.offsetTop+'px)';
|
||||
if(!animate){void hl.offsetWidth;hl.classList.remove('no-anim');}
|
||||
}
|
||||
document.querySelectorAll('.tab').forEach(b=>b.addEventListener('click',()=>{
|
||||
document.querySelectorAll('.tab,.panel').forEach(e=>e.classList.remove('active'));
|
||||
b.classList.add('active');document.getElementById('p'+b.dataset.i).classList.add('active');window.scrollTo({top:0});
|
||||
moveHl(true);
|
||||
}));
|
||||
moveHl(false);
|
||||
window.addEventListener('resize',()=>moveHl(false));
|
||||
document.fonts&&document.fonts.ready.then(()=>moveHl(false));
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends "project/_meeting_content_base.html" if meeting_embedded else "erp_base.html" %}
|
||||
|
||||
{% block head_extra %}
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261015a" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261015b" />
|
||||
<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=20261015a" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261015b" />
|
||||
<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=20261015a" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261015b" />
|
||||
<link rel="stylesheet" href="/static/project-help.css?v=20261003a" />
|
||||
<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=20261015a" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261015b" />
|
||||
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
||||
{% endblock %}
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<button type="button" class="pj-btn pj-inbox-dbx" id="pj-dbx-open">
|
||||
<span class="material-symbols-outlined">emoji_events</span>성공하기</button>
|
||||
</div>
|
||||
<div style="display:flex; gap:8px;">
|
||||
<div class="pj-inbox-actions">
|
||||
{# PC 알림 프로그램(023) — 연결·내려받기 화면은 수신함 안에서 들어간다 #}
|
||||
<a class="pj-btn pj-inbox-notifier" href="/project/notifier" title="브라우저가 뒤에 있어도 PC 화면에 알림 띄우기">
|
||||
<span class="material-symbols-outlined">desktop_windows</span>PC 알림 프로그램 설치</a>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends "erp_base.html" %}
|
||||
|
||||
{% block head_extra %}
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261015a" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261015b" />
|
||||
<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=20261015a" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261015b" />
|
||||
<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=20261015a" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261015b" />
|
||||
<!-- 구글 머티리얼 심볼(담당자 아이콘 등) — self-host -->
|
||||
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
||||
<!-- 타임라인 vis-timeline — self-host -->
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends "erp_base.html" %}
|
||||
|
||||
{% block head_extra %}
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261015a" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261015b" />
|
||||
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
||||
{% endblock %}
|
||||
|
||||
|
||||
@@ -2137,7 +2137,7 @@ html.pj-embed .pj-btn-goto-project { display: inline-flex; align-items: center;
|
||||
|
||||
/* ── 수신함 섹션 (알림 / 나를 태그한 업무) ── */
|
||||
.pj-inbox-section { margin-bottom: 26px; }
|
||||
.pj-inbox-view .pj-main > .pj-section-head h2 { font-size: var(--pj-heading-size); line-height: var(--pj-heading-leading); font-weight: 500; }
|
||||
.pj-inbox-view .pj-main > .pj-section-head h2 { font-size: var(--pj-heading-size); line-height: var(--pj-heading-leading); font-weight: 700; }
|
||||
.pj-inbox-h3 { display: flex; align-items: center; gap: 8px; font-size: var(--pj-section-size); font-weight: 500; color: #6b7280; margin: 0 0 10px; line-height: var(--pj-section-leading); }
|
||||
.pj-inbox-count { padding: 1px 7px; border-radius: 999px; background: #fbe3df; color: #c22b10; font-size: 11px; font-weight: 700; }
|
||||
.pj-inbox-count[hidden] { display: none; }
|
||||
@@ -3175,9 +3175,13 @@ html[data-pj-font="nanum-square-round"] { --pj-font: "NanumSquareRound", var(--p
|
||||
.pj-notifier-back:hover { color: var(--pj-accent-dark); text-decoration: underline; }
|
||||
.pj-inbox-notifier { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
|
||||
.pj-inbox-notifier .material-symbols-outlined { font-size: 18px; }
|
||||
/* 수신함 머리 — 제목 오른쪽 [성공하기], 모두 확인/읽음은 아이콘만(말풍선 = title) */
|
||||
.pj-inbox-titlebar { display: flex; align-items: center; gap: 12px; }
|
||||
.pj-inbox-dbx { display: inline-flex; align-items: center; gap: 4px; }
|
||||
/* 수신함 머리 — 제목은 줄 가운데(굵게), 그 오른쪽에 [성공하기], 맨 오른쪽 버튼들.
|
||||
1fr | 제목 | 1fr 격자라 [성공하기]가 있어도 제목 자체가 정가운데. 모두 확인/읽음은 아이콘만(말풍선 = title) */
|
||||
.pj-inbox-view .pj-main > .pj-section-head { display: grid; grid-template-columns: 1fr auto 1fr; }
|
||||
.pj-inbox-titlebar { grid-column: 2; position: relative; display: flex; align-items: center; }
|
||||
.pj-inbox-actions { grid-column: 3; justify-self: end; display: flex; gap: 8px; }
|
||||
.pj-inbox-dbx { position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); white-space: nowrap;
|
||||
display: inline-flex; align-items: center; gap: 4px; }
|
||||
.pj-inbox-dbx .material-symbols-outlined { font-size: 18px; color: #e8a33d; }
|
||||
.pj-inbox-iconbtn { display: inline-flex; align-items: center; justify-content: center; padding-left: 10px; padding-right: 10px; }
|
||||
.pj-inbox-iconbtn .material-symbols-outlined { font-size: 20px; }
|
||||
|
||||
@@ -1345,6 +1345,8 @@ Windows 트레이 프로그램 **DBX 알림**(`desktop/notifier/`, C# .NET Frame
|
||||
로그인·`project` 권한 = `_page_user`, DB 없이 파일 그대로)로 내주고, 화면은 `window.open(..., "pj-dbx", "popup=yes,…")` 별도 창으로 연다
|
||||
(같은 창 이름이라 여러 번 눌러도 창 하나). 창 안에는 맨 위 [닫기](`window.close()`) 버튼만 — 내용은 dbx.html 을 고치면 바로 반영(`no-cache`).
|
||||
- **[태그 모두 확인]·[알림 모두 읽음]** 은 글자 없이 아이콘만(`done_all`·`mark_email_read`, 말풍선 = `title`), [PC 알림] → **[PC 알림 프로그램 설치]**.
|
||||
- 수신함 제목은 머리 줄 **가로 정가운데·굵게**(`1fr | 제목 | 1fr` 격자, [성공하기]는 제목 오른쪽에 절대 배치라 제목 위치에 영향 없음).
|
||||
- dbx.html 탭은 Project 뷰 탭처럼 고른 탭 뒤 옅은 보라 사각형(`.tab-hl`)이 미끄러져 옮겨 간다(두 줄로 접혀도 위아래까지).
|
||||
|
||||
## 7. 추후 단계
|
||||
|
||||
|
||||
Reference in New Issue
Block a user