M0-M11 狩夜人笔记初始实现:11里程碑+86测试

This commit is contained in:
hunter-dev
2026-08-24 20:35:22 +08:00
commit 3ebd33536b
106 changed files with 10490 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
* { box-sizing: border-box; }
html, body, #root { margin: 0; height: 100%; }
/* Tiptap 编辑器正文 */
.tiptap-wrap .ProseMirror {
font-size: var(--editor-font-size, 14px) !important;
font-family: var(--editor-font-family, Consolas, monospace) !important;
white-space: var(--editor-white-space, pre-wrap);
min-height: 100%;
padding: 16px 24px;
font-family: 'Consolas', 'Source Code Pro', system-ui, sans-serif;
font-size: 14px;
line-height: 1.7;
color: #ddd;
outline: none;
max-width: 860px;
margin: 0 auto;
}
.tiptap-wrap .ProseMirror p { margin: 0.6em 0; }
.tiptap-wrap .ProseMirror h1 { font-size: 1.8em; margin: 0.8em 0 0.4em; }
.tiptap-wrap .ProseMirror h2 { font-size: 1.5em; margin: 0.7em 0 0.35em; }
.tiptap-wrap .ProseMirror h3 { font-size: 1.25em; margin: 0.6em 0 0.3em; }
.tiptap-wrap .ProseMirror code {
background: #2a2a2a; padding: 1px 5px; border-radius: 3px; font-family: 'Consolas', monospace;
}
.tiptap-wrap .ProseMirror pre {
background: #161616; padding: 12px 16px; border-radius: 6px; overflow: auto;
}
.tiptap-wrap .ProseMirror pre code { background: none; padding: 0; }
.tiptap-wrap .ProseMirror blockquote {
border-left: 3px solid #444; padding-left: 12px; color: #aaa; margin: 0.6em 0;
}
.tiptap-wrap .ProseMirror ul, .tiptap-wrap .ProseMirror ol { padding-left: 24px; }
.tiptap-wrap .ProseMirror table { border-collapse: collapse; }
.tiptap-wrap .ProseMirror th, .tiptap-wrap .ProseMirror td {
border: 1px solid #444; padding: 4px 8px;
}
.tiptap-wrap .ProseMirror p.is-editor-empty:first-child::before {
content: attr(data-placeholder); color: #666; pointer-events: none; float: left;
}