From 3f64d7c72c4cef8503b1158e5c4e73882974c128 Mon Sep 17 00:00:00 2001 From: umsangdon Date: Thu, 8 Oct 2026 12:09:54 +0900 Subject: [PATCH] =?UTF-8?q?feat(ui=5Ftemplate):=20B=C2=B7M=20=ED=99=94?= =?UTF-8?q?=EB=A9=B4=20=EC=A0=84=EC=97=AD=20=EA=B8=80=20=EC=84=A0=ED=83=9D?= =?UTF-8?q?=20=EB=A7=89=EC=9D=8C(81-1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- A00_Common/main.ts | 4 ++++ ui_template/ui_template_theme.css | 17 +++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/A00_Common/main.ts b/A00_Common/main.ts index c1dca79fd..2d94e6e8b 100644 --- a/A00_Common/main.ts +++ b/A00_Common/main.ts @@ -59,6 +59,10 @@ function bootstrap(): void { let shown = ""; let shownHash = ""; const renderAll = (): void => { + document.documentElement.classList.toggle( + "is-bm-route", + NATIVE_MENU_ROUTE.test(currentRoute()), + ); // 전역 글 선택 막음(81-1) const within = showWithinPage(currentRoute()); // B05 ↔ B06 — 보기만 바꿈(24-3a) shown = currentRoute(); shownHash = window.location.hash; diff --git a/ui_template/ui_template_theme.css b/ui_template/ui_template_theme.css index 036d2a651..4685e1666 100644 --- a/ui_template/ui_template_theme.css +++ b/ui_template/ui_template_theme.css @@ -510,3 +510,20 @@ a:hover { outline: 2px solid var(--color-focus-ring); outline-offset: 2px; } + +/* ─── B · M 화면 전역 글 선택 막음(81-1) ─────────────────────────────────── + `html.is-bm-route` 는 main.ts 가 라우트마다 토글(A 영역은 안 붙음). + 허용 = input · textarea · select · [contenteditable] · 원문 본문(m01lab-src__body). */ +html.is-bm-route { + user-select: none; + -webkit-user-select: none; +} +html.is-bm-route input, +html.is-bm-route textarea, +html.is-bm-route select, +html.is-bm-route [contenteditable], +html.is-bm-route .m01lab-src__body, +html.is-bm-route .m01lab-src__body * { + user-select: text; + -webkit-user-select: text; +}