From d29c26a01700cdfbaff55a43dc0f74c64d65384e Mon Sep 17 00:00:00 2001 From: king Date: Tue, 20 Oct 2026 20:59:33 +0900 Subject: [PATCH] =?UTF-8?q?feat(erp):=20=EC=82=AC=EC=9D=B4=EB=93=9C?= =?UTF-8?q?=EB=B0=94=20=EC=BB=AC=EB=9F=AC=20=EC=95=84=EC=9D=B4=EC=BD=98?= =?UTF-8?q?=C2=B7=EC=B6=95=EC=86=8C=20=EB=A9=94=EB=89=B4=20=EA=B0=84?= =?UTF-8?q?=EA=B2=A9=20=EC=B6=95=EC=86=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 메뉴 항목에 data-key 부여, 모듈별 아이콘 색(--erp-ic) 지정 - 축소 상태 항목 padding/gap 줄여 세로 간격 압축 - erp-shell.css 캐시 버전 갱신 Co-Authored-By: Claude Opus 5.5 --- app/static/erp-shell.css | 26 +++++++++++++++++++++++++- app/templates/erp_base.html | 12 ++++++------ 2 files changed, 31 insertions(+), 7 deletions(-) diff --git a/app/static/erp-shell.css b/app/static/erp-shell.css index f096cb8..3f3d43d 100644 --- a/app/static/erp-shell.css +++ b/app/static/erp-shell.css @@ -103,6 +103,28 @@ body.erp-app-body { background: var(--color-canvas-white); height: 100vh; overfl flex-shrink: 0; } .erp-sidebar-icon svg { width: 21px; height: 21px; } +/* 메뉴별 컬러 아이콘 — data-key 는 main.py build_erp_nav 의 key(+ 하단 modules/notice/admin) */ +.erp-sidebar-item .erp-sidebar-icon { color: var(--erp-ic, currentColor); } +.erp-sidebar-item .erp-sidebar-icon svg { stroke-width: 2; } +.erp-sidebar-item[data-key="home"] { --erp-ic: #2563eb; } +.erp-sidebar-item[data-key="corm"] { --erp-ic: #7c3aed; } +.erp-sidebar-item[data-key="order"] { --erp-ic: #0891b2; } +.erp-sidebar-item[data-key="cupang"] { --erp-ic: #dc2626; } +.erp-sidebar-item[data-key="malaysia"] { --erp-ic: #d97706; } +.erp-sidebar-item[data-key="dispatch"] { --erp-ic: #059669; } +.erp-sidebar-item[data-key="cafe24"] { --erp-ic: #db2777; } +.erp-sidebar-item[data-key="inout"] { --erp-ic: #ea580c; } +.erp-sidebar-item[data-key="expense"] { --erp-ic: #0d9488; } +.erp-sidebar-item[data-key="vacation"] { --erp-ic: #65a30d; } +.erp-sidebar-item[data-key="project"] { --erp-ic: #4f46e5; } +.erp-sidebar-item[data-key="performance"] { --erp-ic: #c026d3; } +.erp-sidebar-item[data-key="asset"] { --erp-ic: #475569; } +.erp-sidebar-item[data-key="modules"] { --erp-ic: #0284c7; } +.erp-sidebar-item[data-key="notice"] { --erp-ic: #e11d48; } +.erp-sidebar-item[data-key="admin"] { --erp-ic: #ca8a04; } +/* 검정 배경(실행중)에서도 보이도록 밝게, 준비중은 흐리게 */ +.erp-sidebar-item.is-active .erp-sidebar-icon { filter: brightness(1.6) saturate(1.2); } +.erp-sidebar-item.is-disabled .erp-sidebar-icon { opacity: .45; } .erp-sidebar-label { flex: 1; } .erp-sidebar-badge { background: var(--color-ghost-gray); color: var(--color-midtone-gray); @@ -120,9 +142,11 @@ body.erp-app-body { background: var(--color-canvas-white); height: 100vh; overfl } /* 접힌 상태: 아이콘 위 / 프로그램 이름 작은 글씨 아래 */ .erp-sidebar[data-collapsed="true"] .erp-sidebar-item { - flex-direction: column; gap: 3px; padding: 8px 2px; + flex-direction: column; gap: 2px; padding: 5px 2px; justify-content: center; text-align: center; } +.erp-sidebar[data-collapsed="true"] .erp-sidebar-nav { gap: 1px; padding-top: var(--sp-8); padding-bottom: var(--sp-8); } +.erp-sidebar[data-collapsed="true"] .erp-sidebar-foot { gap: 1px; } .erp-sidebar[data-collapsed="true"] .erp-sidebar-label { flex: none; font-size: 10px; line-height: 1.1; font-weight: 500; white-space: normal; word-break: keep-all; diff --git a/app/templates/erp_base.html b/app/templates/erp_base.html index 57c23d8..8d699ec 100644 --- a/app/templates/erp_base.html +++ b/app/templates/erp_base.html @@ -5,7 +5,7 @@ {{ page_title or "ERP" }} — DBX Corporation - + @@ -59,9 +59,9 @@ {% if item.disabled %}{% set classes = classes + " is-disabled" %}{% endif %} {% if item.disabled %} -
+
{% else %} - {% endif %} {{ item.icon | safe }} @@ -87,7 +87,7 @@
{% if user.is_super_admin %} - + @@ -98,7 +98,7 @@ 업무 모듈 {# 긴급 공지 관리 — 수퍼관리자만(app/modules/notice) #} - + @@ -109,7 +109,7 @@ {% endif %} {% if is_admin %} - +