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 %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user