/* Notion 스타일 약관 편집기 전용 스타일. * 텍스트영역과 미리보기 영역을 동일한 폭/타이포로 보여 주어 입력 ↔ 미리보기 * 전환 시 시각적 점프가 최소화되도록 한다. 슬래시 메뉴는 caret 좌표 위에 * 절대 위치로 띄운다. 색은 사이트 다크 팔레트(var(--bg-card) 등)에 맞춘다. */ .termsEditorWrap { position: relative; margin-top: 12px; } .termsEditor { width: 100%; min-height: 60vh; padding: 16px 18px; border: 1px solid var(--border, #30363d); border-radius: 8px; background: var(--bg-card, #1f242c); color: var(--text, #e6edf3); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; line-height: 1.7; resize: vertical; box-sizing: border-box; outline: none; white-space: pre-wrap; caret-color: var(--accent, #58a6ff); } .termsEditor:focus { border-color: var(--accent, #58a6ff); box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.25); } .termsPreview { min-height: 60vh; padding: 16px 18px; border: 1px solid var(--border, #30363d); border-radius: 8px; background: var(--bg-alt, #161b22); color: var(--text, #e6edf3); font-size: 14px; line-height: 1.7; box-sizing: border-box; } .termsPreview h1 { font-size: 22px; margin: 12px 0 8px; } .termsPreview h2 { font-size: 18px; margin: 10px 0 6px; } .termsPreview h3 { font-size: 15px; margin: 8px 0 4px; } .termsPreview p { margin: 6px 0; } .termsPreview ul, .termsPreview ol { margin: 6px 0; padding-left: 22px; } .termsPreview li { margin: 2px 0; } .termsPreview hr { border: none; border-top: 1px solid var(--border, #30363d); margin: 12px 0; } .termsPreview blockquote { margin: 8px 0; padding: 4px 12px; border-left: 3px solid var(--border, #30363d); color: var(--text-muted, #8b949e); } .termsPreview code { background: rgba(255, 255, 255, 0.08); padding: 1px 5px; border-radius: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; } .termsPreview pre { background: rgba(0, 0, 0, 0.4); padding: 10px 12px; border-radius: 6px; overflow: auto; } .termsPreview pre code { background: transparent; padding: 0; } .termsPreview a { color: var(--accent, #58a6ff); text-decoration: underline; word-break: break-all; } .termsPreview details { margin: 6px 0; border: 1px solid var(--border, #30363d); border-radius: 6px; background: var(--bg-card, #1f242c); padding: 4px 10px; } .termsPreview details > summary { cursor: pointer; font-weight: 600; padding: 4px 0; } /* 슬래시 자동완성 메뉴 — 노션 느낌으로 caret 좌표 위에 띄움. */ .slashMenu { position: absolute; z-index: 50; min-width: 220px; max-height: 280px; overflow-y: auto; background: var(--bg-alt, #161b22); color: var(--text, #e6edf3); border: 1px solid var(--border, #30363d); border-radius: 8px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6); padding: 4px; font-size: 13px; } .slashMenu .slashItem { display: flex; flex-direction: column; padding: 6px 10px; border-radius: 6px; cursor: pointer; } .slashMenu .slashItem:hover, .slashMenu .slashItem.active { background: var(--bg-card, #1f242c); } .slashMenu .slashItem strong { font-size: 13px; color: var(--text, #e6edf3); } .slashMenu .slashItem span { color: var(--text-muted, #8b949e); font-size: 11px; }