Files
Aislo/ui_template/ui_template_loupe.css
T
eomsangdonandClaude Opus 5.5 2a66130446 fix(ui): 374-1 돋보기 = 지금 보이는 화면 전체(body · 모달 포함) · 움직이는 동안 안 뜸 · 이동 합성층
- 복제 원본 #app → document.body(모달 포함) · 원 · 배율 글은 html 바로 아래(자기 복제 · 관찰 안 걸림)
- 다시 뜨기 스로틀 → 디바운스(바뀜 · 스크롤 · 움직임마다 미룸 · 멈춘 뒤 0.5 초 한 번)
- 바깥 판 translate 만(will-change) · 안쪽 상자 scale
- 시험 helper_218_1 · test_218_1 고쳐 씀(디바운스 · 원 자리 · 원본)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QfHKQs7J3hQELKMWQMUJEy
2026-10-17 11:58:48 +09:00

99 lines
2.3 KiB
CSS

/* =============================================================================
* 돋보기 공용 모양(`ui_template_loupe.ts` · 계획서 218-1) — 화면에 하나 · fixed · 원 ·
* 테두리 · 그림자 = 테마 토큰(밝음 · 어두움 같이) · 마우스를 안 막음 · 크기 · 배율은 TS 상수(220-1 지름 360)
* ========================================================================== */
.ui-loupe {
--loupe-border: var(--color-accent);
--loupe-shadow: var(--shadow-lg);
position: fixed;
left: 0;
top: 0;
z-index: calc(var(--z-toast) + 10);
border-radius: 50%;
overflow: hidden;
background: var(--color-bg);
box-shadow:
0 0 0 2px var(--loupe-border),
var(--loupe-shadow);
pointer-events: none;
will-change: transform;
}
.ui-loupe[hidden] {
display: none;
}
/* 복제를 놓는 판 — 화면(뷰포트) 크기 · 움직임은 translate 만(합성층 · 374-1) */
.ui-loupe__stage {
position: absolute;
left: 0;
top: 0;
width: 100vw;
height: 100dvh;
will-change: transform;
}
/* 배율 상자 — 배율 바꿀 때만 scale · fixed 자식의 기준 상자 */
.ui-loupe__scale {
position: absolute;
inset: 0;
transform-origin: 0 0;
}
.ui-loupe__stage *,
.ui-loupe__stage *::before,
.ui-loupe__stage *::after {
animation: none !important;
transition: none !important;
}
.ui-loupe__page {
position: absolute;
}
/* 배율 글(220-1) — 원 아래 가운데 · 작게 · 자리는 TS 가 transform 으로 */
.ui-loupe__zoom {
position: fixed;
left: 0;
top: 0;
z-index: calc(var(--z-toast) + 10);
padding: 0 6px;
border-radius: 9px;
background: var(--color-bg);
color: var(--color-accent);
/* html 바로 아래라 body 글꼴을 안 물려받음 */
font-family: var(--font-body);
font-size: 11px;
line-height: 18px;
box-shadow: 0 0 0 1px var(--color-accent);
pointer-events: none;
white-space: nowrap;
}
.ui-loupe__zoom[hidden] {
display: none;
}
/* 가운데 십자 — 작게 */
.ui-loupe__cross::before,
.ui-loupe__cross::after {
content: "";
position: absolute;
left: 50%;
top: 50%;
background: var(--loupe-border);
}
.ui-loupe__cross::before {
width: 12px;
height: 1px;
transform: translate(-50%, -50%);
}
.ui-loupe__cross::after {
width: 1px;
height: 12px;
transform: translate(-50%, -50%);
}