mirror of
https://github.com/amitwh/markdown-converter.git
synced 2026-10-01 17:29:29 +05:30
- AI Assistant plugin: multi-provider chat (OpenAI/Anthropic/Ollama/LM Studio), summarize/improve/translate commands, proofread via ai:analyze; calls proxied through main so API keys stay out of the renderer - Collaboration plugin: anchor-based comments in .comments/ sidecars with drift detection and F8 navigation - Local knowledge base: [[wiki-links]] with click-to-create + Backlinks panel - Crash recovery: debounced session snapshots with restore prompt on launch - Version history: pre-save snapshots, History panel with restore/diff/delete - Real PDF encryption: swap pdf-lib for @cantoo/pdf-lib (probe-driven UI) - XLSX export (native workbooks via JSZip), ODT headers/footers + page size - Offline KaTeX (bundled CSS+fonts), local-first PlantUML rendering - Editor: vim mode toggle, snippet Tab-expansion, zen word-goal setter, writing heatmap, writing-studio panels wired with rail icons - Quick Note global scratchpad (Ctrl+Alt+Q), markdownconverter:// deep links, REPL first-run confirmation - Fix: Ctrl+Shift+P collision, pandoc converter availability check, CLI dangling --css/--reference-doc flags, dead converter button 8 new test suites; 613 tests green; lint clean
158 lines
3.0 KiB
CSS
158 lines
3.0 KiB
CSS
/* Zen Mode — Distraction-free writing styles */
|
|
|
|
/* Hide chrome elements */
|
|
body.zen-mode .app-header,
|
|
body.zen-mode .tab-bar,
|
|
body.zen-mode .toolbar,
|
|
body.zen-mode .status-bar,
|
|
body.zen-mode .sidebar,
|
|
body.zen-mode .breadcrumb-bar {
|
|
display: none !important;
|
|
}
|
|
|
|
/* Main content fills viewport */
|
|
body.zen-mode .main-content {
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Editor container takes full width */
|
|
body.zen-mode .editor-container {
|
|
width: 100% !important;
|
|
height: 100% !important;
|
|
}
|
|
|
|
/* Hide preview panes */
|
|
body.zen-mode .preview-container,
|
|
body.zen-mode .preview-pane,
|
|
body.zen-mode .pane-resizer {
|
|
display: none !important;
|
|
}
|
|
|
|
/* Center and style editor content for comfortable reading width */
|
|
body.zen-mode .cm-content {
|
|
max-width: 700px;
|
|
margin: 0 auto;
|
|
font-size: 18px;
|
|
line-height: 1.8;
|
|
padding-top: 80px;
|
|
}
|
|
|
|
body.zen-mode .cm-line {
|
|
padding: 4px 0;
|
|
}
|
|
|
|
body.zen-mode .editor-wrapper {
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* Floating HUD pill */
|
|
.zen-hud {
|
|
position: fixed;
|
|
bottom: 24px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
background: rgba(0, 0, 0, 0.6);
|
|
backdrop-filter: blur(12px);
|
|
-webkit-backdrop-filter: blur(12px);
|
|
color: rgba(255, 255, 255, 0.8);
|
|
padding: 10px 24px;
|
|
border-radius: 24px;
|
|
font-size: 13px;
|
|
font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
|
|
z-index: 9999;
|
|
pointer-events: none;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
.zen-hud-stat {
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.zen-hud-sep {
|
|
opacity: 0.3;
|
|
margin: 0 4px;
|
|
}
|
|
|
|
/* Word goal progress bar */
|
|
.zen-progress-container {
|
|
width: 120px;
|
|
height: 4px;
|
|
background: rgba(255, 255, 255, 0.15);
|
|
border-radius: 2px;
|
|
margin-top: 8px;
|
|
overflow: hidden;
|
|
display: none;
|
|
}
|
|
|
|
.zen-progress-bar {
|
|
height: 100%;
|
|
background: rgba(255, 178, 70, 0.85);
|
|
border-radius: 2px;
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
/* Dark mode — HUD stays dark in both themes */
|
|
body[class*='dark'].zen-mode .zen-hud {
|
|
background: rgba(0, 0, 0, 0.7);
|
|
}
|
|
|
|
/* Word-goal setter (HUD button + inline dialog) */
|
|
.zen-goal-btn {
|
|
background: none;
|
|
border: none;
|
|
color: inherit;
|
|
font: inherit;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
opacity: 0.7;
|
|
}
|
|
.zen-goal-btn:hover {
|
|
opacity: 1;
|
|
}
|
|
.zen-goal-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 11000;
|
|
}
|
|
.zen-goal-dialog {
|
|
background: var(--bg-primary, #fff);
|
|
color: var(--text-primary, #222);
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
|
|
}
|
|
.zen-goal-dialog h3 {
|
|
margin: 0;
|
|
}
|
|
.zen-goal-dialog input {
|
|
padding: 8px;
|
|
border: 1px solid var(--border-color, #ccc);
|
|
border-radius: 4px;
|
|
font: inherit;
|
|
}
|
|
.zen-goal-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
}
|
|
.zen-goal-actions button {
|
|
padding: 6px 16px;
|
|
border-radius: 4px;
|
|
border: 1px solid var(--border-color, #ccc);
|
|
background: transparent;
|
|
color: inherit;
|
|
cursor: pointer;
|
|
}
|