terms: dark editor BG, vertical row layout, add/delete custom kinds
- 약관 편집기 배경/슬래시 메뉴를 사이트 다크 팔레트로 통일 (흰 배경 + 흰 글씨 가시성 문제 해결) - 약관 목록을 가로 풀폭 1줄씩 세로로 쌓이는 레이아웃으로 변경 - 사용자 정의 약관 추가/삭제 지원 - manifest/terms/_meta.json 에 라벨 저장 - builtin 5종(map/resourcepack/mod/installer/installer-rp)은 삭제 불가, "기본" 배지 표시 - kind 식별자 규칙: 소문자/숫자/하이픈 32자 이내 - 공개 라우트 /manifest/terms/<file>.md 는 isPublicTermsFile() 로 _meta.json 차단 - 0.3.0 → 0.3.1 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/* Notion 스타일 약관 편집기 전용 스타일.
|
||||
* 텍스트영역과 미리보기 영역을 동일한 폭/타이포로 보여 주어 입력 ↔ 미리보기
|
||||
* 전환 시 시각적 점프가 최소화되도록 한다. 슬래시 메뉴는 caret 좌표 위에
|
||||
* 절대 위치로 띄운다. */
|
||||
* 절대 위치로 띄운다. 색은 사이트 다크 팔레트(var(--bg-card) 등)에 맞춘다. */
|
||||
|
||||
.termsEditorWrap {
|
||||
position: relative;
|
||||
@@ -12,9 +12,10 @@
|
||||
width: 100%;
|
||||
min-height: 60vh;
|
||||
padding: 16px 18px;
|
||||
border: 1px solid #d5d5d5;
|
||||
border: 1px solid var(--border, #30363d);
|
||||
border-radius: 8px;
|
||||
background: #fff;
|
||||
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;
|
||||
@@ -22,19 +23,21 @@
|
||||
box-sizing: border-box;
|
||||
outline: none;
|
||||
white-space: pre-wrap;
|
||||
caret-color: var(--accent, #58a6ff);
|
||||
}
|
||||
|
||||
.termsEditor:focus {
|
||||
border-color: #5b8def;
|
||||
box-shadow: 0 0 0 2px rgba(91, 141, 239, 0.2);
|
||||
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 #d5d5d5;
|
||||
border: 1px solid var(--border, #30363d);
|
||||
border-radius: 8px;
|
||||
background: #fafafa;
|
||||
background: var(--bg-alt, #161b22);
|
||||
color: var(--text, #e6edf3);
|
||||
font-size: 14px;
|
||||
line-height: 1.7;
|
||||
box-sizing: border-box;
|
||||
@@ -46,23 +49,30 @@
|
||||
.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 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 #ddd; color: #555;
|
||||
margin: 8px 0; padding: 4px 12px;
|
||||
border-left: 3px solid var(--border, #30363d);
|
||||
color: var(--text-muted, #8b949e);
|
||||
}
|
||||
.termsPreview code {
|
||||
background: #eee; padding: 1px 5px; border-radius: 4px;
|
||||
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: #f0f0f0; padding: 10px 12px; border-radius: 6px; overflow: auto;
|
||||
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: #2664d8; text-decoration: underline; word-break: break-all; }
|
||||
.termsPreview a { color: var(--accent, #58a6ff); text-decoration: underline; word-break: break-all; }
|
||||
.termsPreview details {
|
||||
margin: 6px 0; border: 1px solid #e0e0e0; border-radius: 6px;
|
||||
background: #fff; padding: 4px 10px;
|
||||
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; }
|
||||
|
||||
@@ -73,10 +83,11 @@
|
||||
min-width: 220px;
|
||||
max-height: 280px;
|
||||
overflow-y: auto;
|
||||
background: #fff;
|
||||
border: 1px solid #ccc;
|
||||
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.12);
|
||||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
|
||||
padding: 4px;
|
||||
font-size: 13px;
|
||||
}
|
||||
@@ -89,7 +100,7 @@
|
||||
}
|
||||
.slashMenu .slashItem:hover,
|
||||
.slashMenu .slashItem.active {
|
||||
background: #eef2ff;
|
||||
background: var(--bg-card, #1f242c);
|
||||
}
|
||||
.slashMenu .slashItem strong { font-size: 13px; }
|
||||
.slashMenu .slashItem span { color: #888; font-size: 11px; }
|
||||
.slashMenu .slashItem strong { font-size: 13px; color: var(--text, #e6edf3); }
|
||||
.slashMenu .slashItem span { color: var(--text-muted, #8b949e); font-size: 11px; }
|
||||
|
||||
Reference in New Issue
Block a user