.quill-note-editor { overflow: visible; background: var(--input-bg); border: 1px solid var(--line); border-radius: 9px; } .quill-note-editor:focus-within { border-color: var(--accent); } .quill-note-editor .rich-note-toolbar.ql-toolbar.ql-snow { display: flex; align-items: center; flex-wrap: nowrap; gap: 4px; min-height: 42px; padding: 6px; overflow: visible; background: var(--bg-soft); border: 0; border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; color: var(--text); white-space: nowrap; } .quill-note-editor .ql-toolbar .ql-formats { display: inline-flex; align-items: center; flex-shrink: 0; gap: 2px; margin: 0; } .quill-note-editor .ql-toolbar .ql-picker.ql-header { width: 102px; color: var(--text); } .quill-note-editor .ql-picker.ql-header .ql-picker-label::before, .quill-note-editor .ql-picker.ql-header .ql-picker-item::before { content: "正文"; } .quill-note-editor .ql-picker.ql-header .ql-picker-label[data-value="1"]::before, .quill-note-editor .ql-picker.ql-header .ql-picker-item[data-value="1"]::before { content: "一级标题"; } .quill-note-editor .ql-picker.ql-header .ql-picker-label[data-value="2"]::before, .quill-note-editor .ql-picker.ql-header .ql-picker-item[data-value="2"]::before { content: "二级标题"; } .quill-note-editor .ql-toolbar .ql-picker-label { border: 1px solid var(--line); border-radius: 6px; } .quill-note-editor .ql-toolbar .ql-picker-label:hover, .quill-note-editor .ql-toolbar .ql-picker-label.ql-active { border-color: var(--accent); color: var(--accent-bright); } .quill-note-editor .ql-toolbar .ql-picker-options { z-index: 20; max-height: 210px; overflow-y: auto; background: var(--bg-card); border-color: var(--line); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28); color: var(--text); } .quill-note-editor .ql-toolbar .ql-picker-item:hover, .quill-note-editor .ql-toolbar .ql-picker-item.ql-selected { color: var(--accent-bright); } .quill-note-editor .ql-toolbar button { float: none; border-radius: 5px; color: var(--text-dim); } .quill-note-editor .ql-toolbar button:hover, .quill-note-editor .ql-toolbar button:focus-visible, .quill-note-editor .ql-toolbar button.ql-active { background: var(--hover-bg); color: var(--accent-bright); } .quill-note-editor .ql-snow .ql-stroke { stroke: var(--text-dim); } .quill-note-editor .ql-snow .ql-fill { fill: var(--text-dim); } .quill-note-editor .ql-snow .ql-picker-label:hover .ql-stroke, .quill-note-editor .ql-snow button:hover .ql-stroke, .quill-note-editor .ql-snow button:focus-visible .ql-stroke, .quill-note-editor .ql-snow button.ql-active .ql-stroke { stroke: var(--accent-bright); } .quill-note-editor .ql-snow button:hover .ql-fill, .quill-note-editor .ql-snow button:focus-visible .ql-fill, .quill-note-editor .ql-snow button.ql-active .ql-fill { fill: var(--accent-bright); } .quill-note-editor .rich-note-history { margin-left: auto; } .quill-note-editor .rich-note-undo, .quill-note-editor .rich-note-redo { font-size: 18px; line-height: 20px; } .quill-note-editor .rich-note-quill.ql-container.ql-snow { overflow: hidden; background: var(--input-bg); border: 0; border-radius: 0 0 8px 8px; color: var(--text); font-family: inherit; font-size: 13px; } .quill-note-editor .rich-note-surface.ql-editor { min-height: 220px; max-height: 48vh; padding: 12px 14px; overflow-y: auto; color: var(--text); line-height: 1.7; } .quill-note-editor .ql-editor.ql-blank::before { color: var(--text-dim); font-style: normal; } .quill-note-editor .ql-editor blockquote { border-color: var(--accent); color: var(--text-dim); } .quill-note-editor .ql-editor pre.ql-syntax { background: var(--bg); color: var(--text); } .quill-note-editor .ql-editor img { max-width: 100%; max-height: 520px; border: 1px solid var(--line); border-radius: 8px; object-fit: contain; } .mixed-note-editor { display: flex; min-height: 0; flex-direction: column; gap: 7px; } .mixed-note-modes { display: inline-flex; align-self: flex-start; padding: 3px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; } .mixed-note-mode { height: 28px; padding: 0 14px; background: transparent; border: 0; border-radius: 6px; color: var(--text-dim); cursor: pointer; font: inherit; } .mixed-note-mode:hover { color: var(--text); } .mixed-note-mode.active { background: var(--accent); color: var(--on-accent, #fff); } .mixed-note-canvas { min-height: 360px; } .mixed-note-editor.note-editor-canvas { height: 100%; } .note-editor-canvas .mixed-note-canvas { display: flex; min-height: 0; flex: 1; flex-direction: column; } .note-canvas-summary, .list-item-canvas-summary { width: fit-content; margin-top: 7px; padding: 4px 8px; background: var(--hover-bg); border: 1px solid var(--line); border-radius: 999px; color: var(--text-dim); font-size: 11px; } .canvas-note-root { display: flex; min-height: 0; flex: 1; flex-direction: column; overflow: hidden; background: var(--input-bg); border: 1px solid var(--line); border-radius: 9px; } .canvas-note-toolbar { display: flex; align-items: center; align-content: flex-start; flex: 0 0 auto; flex-wrap: wrap; gap: 4px; min-height: 42px; padding: 6px; overflow: visible; background: var(--bg-soft); border-bottom: 1px solid var(--line); white-space: normal; } .canvas-flow-toolbar-host { flex: 0 0 auto; background: var(--bg-soft); border-bottom: 1px solid var(--line); } .canvas-flow-toolbar.ql-toolbar.ql-snow { display: flex; min-height: 38px; padding: 5px 8px; align-items: center; flex-wrap: wrap; gap: 4px; overflow: visible; border: 0; color: var(--text); } .canvas-flow-toolbar .ql-formats { display: inline-flex; margin: 0; align-items: center; flex-wrap: wrap; gap: 2px; } .canvas-flow-toolbar .ql-picker.ql-header { width: 102px; color: var(--text); } .canvas-flow-toolbar .ql-picker.ql-header .ql-picker-label::before, .canvas-flow-toolbar .ql-picker.ql-header .ql-picker-item::before { content: "正文"; } .canvas-flow-toolbar .ql-picker.ql-header .ql-picker-label[data-value="1"]::before, .canvas-flow-toolbar .ql-picker.ql-header .ql-picker-item[data-value="1"]::before { content: "一级标题"; } .canvas-flow-toolbar .ql-picker.ql-header .ql-picker-label[data-value="2"]::before, .canvas-flow-toolbar .ql-picker.ql-header .ql-picker-item[data-value="2"]::before { content: "二级标题"; } .canvas-flow-toolbar .ql-picker-label { border: 1px solid var(--line); border-radius: 6px; } .canvas-flow-toolbar button { float: none; border-radius: 5px; } .canvas-flow-toolbar button:hover, .canvas-flow-toolbar button:focus-visible, .canvas-flow-toolbar button.ql-active, .canvas-flow-toolbar .ql-picker-label:hover, .canvas-flow-toolbar .ql-picker-label.ql-active { background: var(--hover-bg); color: var(--accent-bright); } .canvas-flow-toolbar .ql-picker-options { z-index: 30; max-height: 210px; overflow-y: auto; background: var(--bg-card); border-color: var(--line); color: var(--text); } .canvas-flow-toolbar .ql-stroke { stroke: var(--text-dim); } .canvas-flow-toolbar .ql-fill { fill: var(--text-dim); } .canvas-flow-toolbar button:hover .ql-stroke, .canvas-flow-toolbar button.ql-active .ql-stroke { stroke: var(--accent-bright); } .canvas-flow-toolbar button:hover .ql-fill, .canvas-flow-toolbar button.ql-active .ql-fill { fill: var(--accent-bright); } .canvas-note-tool-group { display: inline-flex; align-items: center; max-width: 100%; padding-right: 5px; flex-wrap: wrap; gap: 4px; border-right: 1px solid var(--line); } .canvas-note-tool-group:last-of-type { padding-right: 0; border-right: 0; } .canvas-note-button, .canvas-note-toolbar select, .canvas-note-color { flex-shrink: 0; height: 28px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 6px; color: var(--text); cursor: pointer; font: inherit; font-size: 12px; } .canvas-note-button { display: inline-flex; width: 30px; align-items: center; justify-content: center; padding: 0; color: var(--text-dim); } .canvas-note-icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; } .canvas-note-toolbar select { padding: 0 5px; } .canvas-note-color { width: 34px; padding: 2px; } .canvas-note-button:hover, .canvas-note-button.canvas-note-active, .canvas-note-toolbar select:hover { border-color: var(--accent); color: var(--accent-bright); } .canvas-note-button.canvas-note-active { background: var(--hover-bg); } .canvas-note-button.canvas-note-delete-confirm { background: var(--danger); border-color: var(--danger); color: #fff; } .canvas-note-button:disabled, .canvas-note-toolbar select:disabled { opacity: 0.45; cursor: not-allowed; } .canvas-note-page-controls { display: inline-flex; align-items: center; flex-shrink: 0; gap: 4px; margin-left: auto; } .canvas-note-page-counter { min-width: 46px; color: var(--text-dim); text-align: center; font-size: 12px; } .canvas-note-viewport { min-height: 0; padding: 18px; flex: 1 1 0; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; background: var(--bg); outline: none; } .canvas-note-page { position: relative; margin: 0 auto; flex-shrink: 0; overflow: hidden; background: #fff; box-shadow: 0 3px 18px rgba(0, 0, 0, 0.3); } .canvas-note-background { z-index: 0; display: block; } .canvas-note-fabric-container { z-index: 2; } .canvas-note-fabric-container canvas { display: block; } .canvas-flow-layer { position: absolute; z-index: 1; top: 72px; left: 50%; overflow: hidden; color: #111827; transform: translateX(-50%); pointer-events: none; } .canvas-flow-layer.canvas-flow-active { cursor: text; outline: 1px dashed rgba(57, 123, 211, 0.55); outline-offset: 4px; pointer-events: auto; } .canvas-flow-quill.ql-container.ql-snow { overflow: hidden; border: 0; color: #111827; font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif; font-size: 16px; } .canvas-flow-surface.ql-editor { min-height: 0; max-height: none; padding: 0; overflow: visible; column-fill: auto; color: #111827; line-height: 1.7; } .canvas-flow-surface.ql-editor.ql-blank::before { right: 0; left: 0; color: #8792a2; font-style: normal; } .canvas-flow-surface .canvas-flow-page-break { width: 100%; height: 1px; margin: 0; padding: 0; break-after: column; border: 0; } .canvas-flow-surface blockquote { border-color: #397bd3; color: #526175; } .canvas-flow-surface pre.ql-syntax { background: #eef2f7; color: #1f2937; } @media (max-width: 720px) { .canvas-note-toolbar { align-items: flex-start; } .canvas-note-page-controls { flex-basis: 100%; justify-content: flex-end; margin-left: 0; } .canvas-note-viewport { padding: 10px; } }