/* Notion 스타일 약관 편집기 전용 스타일. * 텍스트영역과 미리보기 영역을 동일한 폭/타이포로 보여 주어 입력 ↔ 미리보기 * 전환 시 시각적 점프가 최소화되도록 한다. 슬래시 메뉴는 caret 좌표 위에 * 절대 위치로 띄운다. */ .termsEditorWrap { position: relative; margin-top: 12px; } .termsEditor { width: 100%; min-height: 60vh; padding: 16px 18px; border: 1px solid #d5d5d5; border-radius: 8px; background: #fff; 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; } .termsEditor:focus { border-color: #5b8def; box-shadow: 0 0 0 2px rgba(91, 141, 239, 0.2); } .termsPreview { min-height: 60vh; padding: 16px 18px; border: 1px solid #d5d5d5; border-radius: 8px; background: #fafafa; 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 #e0e0e0; margin: 12px 0; } .termsPreview blockquote { margin: 8px 0; padding: 4px 12px; border-left: 3px solid #ddd; color: #555; } .termsPreview code { background: #eee; padding: 1px 5px; border-radius: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; } .termsPreview pre { background: #f0f0f0; padding: 10px 12px; border-radius: 6px; overflow: auto; } .termsPreview pre code { background: transparent; padding: 0; } .termsPreview a { color: #2664d8; text-decoration: underline; word-break: break-all; } .termsPreview details { margin: 6px 0; border: 1px solid #e0e0e0; border-radius: 6px; background: #fff; 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: #fff; border: 1px solid #ccc; border-radius: 8px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); 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: #eef2ff; } .slashMenu .slashItem strong { font-size: 13px; } .slashMenu .slashItem span { color: #888; font-size: 11px; }