/* app.hint.css — 사용자화면(프론트) 도움말 힌트 */ /* 트리거(? 아이콘) ─────────────────────────────── */ .hint-trigger { display: inline-flex; align-items: center; justify-content: center; width: 1.15rem; height: 1.15rem; padding: 0; border: 1px solid #e3e6ea; border-radius: 50%; background: #f7f8f9; color: #777; font-size: .72rem; font-weight: 600; line-height: 1; text-decoration: none; vertical-align: middle; cursor: pointer; transition: background-color .12s ease, color .12s ease, border-color .12s ease; } .hint-trigger:hover, .hint-trigger:focus-visible, .hint-trigger.is-hint-open { background: var(--point-color, #32c0b6); border-color: transparent; color: #fff; text-decoration: none; } /* 자유형 힌트 원본(화면에 안 보이지만 JS 가 innerHTML 을 읽어간다) */ .hint-source { display: none !important; } /* 레이어 ───────────────────────────────────────── */ .app-hint-layer { position: fixed; inset: 0; z-index: 2050; pointer-events: none; /* 레이어 자체는 클릭을 통과시킨다 */ } .app-hint-backdrop { position: absolute; inset: 0; background: rgba(24, 36, 51, .5); opacity: 0; pointer-events: auto; transition: opacity .18s ease; } .app-hint-backdrop.is-open { opacity: 1; } .app-hint-backdrop.is-closing { opacity: 0; pointer-events: none; } /* 패널(PC 말풍선) ──────────────────────────────── */ .app-hint { position: absolute; top: 0; left: 0; width: 320px; max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); display: flex; flex-direction: column; background: #fff; color: #333; border: 1px solid #e3e6ea; border-radius: 8px; box-shadow: 0 8px 28px rgba(24, 36, 51, .18); font-size: .8125rem; line-height: 1.55; opacity: 0; transform: translateY(4px); pointer-events: auto; transition: opacity .14s ease, transform .14s ease; } .app-hint.is-open { opacity: 1; transform: none; } .app-hint.is-closing { opacity: 0; transform: translateY(4px); pointer-events: none; } /* 트리거↔패널 사이 10px 틈에서 마우스가 빠져 툴팁이 깜빡이며 닫히는 것을 막는 투명 다리 */ .app-hint::before { content: ""; position: absolute; pointer-events: auto; } .app-hint[data-placement="bottom"]::before { left: 0; right: 0; top: -12px; height: 12px; } .app-hint[data-placement="top"]::before { left: 0; right: 0; bottom: -12px; height: 12px; } .app-hint[data-placement="right"]::before { top: 0; bottom: 0; left: -12px; width: 12px; } .app-hint[data-placement="left"]::before { top: 0; bottom: 0; right: -12px; width: 12px; } /* 화살표 */ .app-hint-arrow { position: absolute; width: 10px; height: 10px; background: #fff; border: 1px solid #e3e6ea; } .app-hint[data-placement="bottom"] .app-hint-arrow { top: -6px; transform: translateX(-50%) rotate(45deg); border-right: 0; border-bottom: 0; } .app-hint[data-placement="top"] .app-hint-arrow { bottom: -6px; transform: translateX(-50%) rotate(45deg); border-left: 0; border-top: 0; } .app-hint[data-placement="right"] .app-hint-arrow { left: -6px; transform: translateY(-50%) rotate(45deg); border-right: 0; border-top: 0; } .app-hint[data-placement="left"] .app-hint-arrow { right: -6px; transform: translateY(-50%) rotate(45deg); border-left: 0; border-bottom: 0; } /* 머리말 / 본문 ────────────────────────────────── */ .app-hint-head { display: flex; align-items: center; gap: .5rem; padding: .625rem .875rem; border-bottom: 1px solid #e3e6ea; flex: 0 0 auto; } .app-hint-title { flex: 1 1 auto; min-width: 0; font-weight: 600; font-size: .8125rem; color: #333; } .app-hint-close { flex: 0 0 auto; width: 1.5rem; height: 1.5rem; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #777; font-size: 1.15rem; line-height: 1; cursor: pointer; } .app-hint-close:hover { background: #f1f5f9; } .app-hint-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: .75rem .875rem; word-break: break-word; } .app-hint-body > :last-child { margin-bottom: 0 !important; } .app-hint-body p { margin: 0 0 .4rem; } .app-hint-body strong { font-weight: 600; } /* 이미지 — 가로폭에 맞추고 비율 유지 */ .app-hint-figure { margin: 0 0 .625rem; } .app-hint-figure img, .app-hint-body img { display: block; width: 100%; height: auto; border-radius: 6px; background: #f1f5f9; /* 화면 비례로 캡한다 — 세로로 긴 이미지 하나가 패널을 화면 끝까지 밀어 정작 읽어야 할 설명이 스크롤 밖으로… */ max-height: 42vh; object-fit: contain; object-position: center; } .app-hint-figure figcaption { margin-top: .375rem; font-size: .75rem; color: #777; } /* 라벨/값 2열 — 여러 줄을 세로로 반듯하게 정렬 */ .app-hint-dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem .625rem; margin: 0 0 .5rem; } .app-hint-dl dt { font-weight: 600; color: #777; white-space: nowrap; } .app-hint-dl dd { margin: 0; } /* 점 목록 */ .app-hint-ul { margin: 0 0 .5rem; padding-left: 1.1rem; } .app-hint-ul li { margin-bottom: .2rem; } .app-hint-ul li:last-child { margin-bottom: 0; } /* 소제목 — 사용법처럼 여러 토막으로 나뉜 힌트에 쓴다 */ .app-hint-h { margin: .85rem 0 .35rem; font-weight: 600; font-size: .78rem; color: #333; } .app-hint-h:first-child { margin-top: 0; } /* 코드 표기 */ .app-hint-body code { padding: .08rem .28rem; border-radius: 3px; background: #f1f5f9; color: var(--point-color, #32c0b6); font-size: .95em; word-break: break-all; } .app-hint-pre { margin: .35rem 0 .6rem; padding: .55rem .7rem; border: 1px solid #e3e6ea; border-radius: 6px; background: #f7f8f9; color: #334155; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .7rem; line-height: 1.55; white-space: pre; overflow-x: auto; -webkit-overflow-scrolling: touch; } .app-hint-note { margin-top: .5rem; padding-top: .5rem; border-top: 1px dashed #e3e6ea; font-size: .75rem; color: #777; } /* 모바일 : 하단 시트 ───────────────────────────── */ .app-hint--sheet { /* 시트 안 이미지는 조금 더 조인다 — 하단 시트는 애초에 화면의 일부만 쓰기 때문이다 */ top: auto !important; left: 0 !important; right: 0; bottom: 0; width: auto !important; max-width: none; max-height: 78vh; border-width: 0; border-radius: 14px 14px 0 0; box-shadow: 0 -6px 28px rgba(24, 36, 51, .22); transform: translateY(100%); /* 아이폰 홈바 영역 확보 */ padding-bottom: env(safe-area-inset-bottom, 0px); transition: transform .2s ease, opacity .2s ease; } .app-hint--sheet.is-open { transform: none; } .app-hint--sheet .app-hint-body img { max-height: 34vh; } .app-hint--sheet.is-closing { transform: translateY(100%); opacity: 1; } .app-hint--sheet .app-hint-arrow { display: none; } .app-hint--sheet::before { display: none; } .app-hint--sheet .app-hint-head { padding: .875rem 1rem; } .app-hint--sheet .app-hint-title { font-size: .875rem; } .app-hint--sheet .app-hint-close { width: 2rem; height: 2rem; font-size: 1.4rem; } .app-hint--sheet .app-hint-body { padding: 1rem; font-size: .875rem; } /* 시트 상단 손잡이 */ .app-hint--sheet::after { content: ""; position: absolute; top: 6px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: #e3e6ea; } @media (max-width: 767.98px) { /* 터치 타깃 확보 */ .hint-trigger { width: 1.4rem; height: 1.4rem; font-size: .78rem; } } /* 모션 최소화 설정 존중 */ @media (prefers-reduced-motion: reduce) { .app-hint, .app-hint--sheet, .app-hint-backdrop { transition: none; } } .read-more, .more-text.read-more { display: block; position: relative; overflow: hidden; overflow-wrap: anywhere; } .read-more.is-collapsed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2em; background: linear-gradient(to bottom, transparent, var(--read-more-fade, var(--tblr-bg-surface, #fff)) 78%); pointer-events: none; } .read-more-btn { display: inline-block; margin: 4px 0 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 0.875em; text-decoration: underline; cursor: pointer; } .read-more-btn:hover { background: none; text-decoration: none; } /* display 를 지정했으니 hidden 속성이 이겨야 한다 */ .read-more-btn[hidden] { display: none; } /* * 바탕화면 바로가기 배너 — 모바일 전용. 색 3개는 JS 가 CSS 변수로 얹는다(값만 바뀌고 규칙은 여기 하나다). * ★하단 고정이라 다른 고정 요소(하단바)를 가리지 않게 z-index 를 낮게 두고, 하단바 높이만큼 띄운다. */ .zen-shortcut-bar { --zsc-bg: #ffffff; --zsc-text: #222222; --zsc-icon: #1a73e8; position: fixed; left: 10px; right: 10px; /* 하단바(모바일 고정 메뉴) 위에 얹는다. 하단바가 없는 테마에서도 안전여백 안쪽에 남는다. */ bottom: calc(60px + env(safe-area-inset-bottom, 0px)); z-index: 90; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--zsc-bg); color: var(--zsc-text); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); } .zen-shortcut-icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--zsc-icon); color: #fff; font-weight: 700; font-size: 18px; } .zen-shortcut-icon img { width: 100%; height: 100%; object-fit: cover; } .zen-shortcut-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; } .zen-shortcut-body strong { font-size: 14px; color: inherit; } /* 안내 문구는 같은 글자색을 옅게 쓴다(색을 하나 더 받지 않는다) */ .zen-shortcut-body span { font-size: 12px; color: inherit; opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .zen-shortcut-add { flex: 0 0 auto; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--zsc-icon); color: #fff; font-size: 13px; font-weight: 700; } .zen-shortcut-close { flex: 0 0 auto; width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: inherit; opacity: .5; font-size: 18px; line-height: 1; } /* 자동 설치가 안 되는 브라우저용 안내 레이어 */ .zen-shortcut-guide { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0, 0, 0, .5); } .zen-shortcut-guide-box { width: 100%; max-width: 320px; padding: 22px; border-radius: 16px; background: #fff; color: #222; text-align: center; } .zen-shortcut-guide-box strong { display: block; margin-bottom: 12px; font-size: 16px; } .zen-shortcut-guide-box p { margin: 6px 0; font-size: 14px; line-height: 1.6; color: #555; } .zen-shortcut-guide-close { margin-top: 16px; width: 100%; padding: 12px 0; border: 0; border-radius: 10px; background: #222; color: #fff; font-size: 14px; font-weight: 700; } /* 바로가기로 실행한 상태(standalone)에서는 배너를 그리지 않는다 — JS 가 먼저 막지만 규칙으로도 닫아 둔다 */ @media all and (display-mode: standalone) { .zen-shortcut-bar { display: none; } }