π The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.
Vue dockergolangkanbanknowledge-baseknowledge-managementmarkdownnote-takingnotesnotes-appnotionnuxtnuxtjsoffline-firstoidcpwaselfhostedssovuevuejswiki
feat(themes): add the Minimal document theme (#638)
Dipak Chaudhari4bc1a568b717
diff --git a/frontend/app/helpers/constants.ts b/frontend/app/helpers/constants.tsindex aa7744f0..eb506fd2 100644--- a/frontend/app/helpers/constants.ts+++ b/frontend/app/helpers/constants.ts@@ -14,6 +14,7 @@ export const DOCUMENT_THEMES = [{ label: 'Modern', id: 'modern' },{ label: 'Academic', id: 'academic' },{ label: 'Material', id: 'material' },+ { label: 'Minimal', id: 'minimal' },];// Document visibility options (1 = Private, 3 = Published)diff --git a/frontend/app/styles/features/document-theme.scss b/frontend/app/styles/features/document-theme.scssindex 932e1a3a..89269644 100644--- a/frontend/app/styles/features/document-theme.scss+++ b/frontend/app/styles/features/document-theme.scss@@ -942,4 +942,156 @@.katex {font-size: 1.05em;}-}\ No newline at end of file+}++.minimal-theme {+ max-width: 100%;+ padding: 0 0.5rem;+ font-family: $font-sans !important;+ font-size: 1.0625rem;+ line-height: 1.75;+ color: var(--text-body);++ .header-anchor {+ display: none;+ }++ // Reductive scale: weight and generous space carry the hierarchy, not size jumps or rules.+ h1,+ h2,+ h3,+ h4 {+ font-weight: 600;+ line-height: 1.3;+ }++ h1 {+ margin: 0 0 1.5rem;+ font-size: 1.75em;+ }++ h2 {+ margin: 2.5rem 0 0.75rem;+ font-size: 1.35em;+ }++ h3 {+ margin: 1.75rem 0 0.5rem;+ font-size: 1.1em;+ }++ h4 {+ margin: 1.25rem 0 0.5rem;+ font-size: 1em;+ }++ p {+ width: 100%;+ margin: 0;+ padding: 0.45em 0;+ }++ // Monochrome by default and underlined, so a link never depends on colour perception; colour is a hover cue only.+ a {+ color: var(--text-body);+ text-decoration: underline;+ text-underline-offset: 0.15em;++ &:hover,+ &:focus-visible {+ color: var(--primary);+ }+ }++ // No panel, no fill: code is set apart by the mono face and a hairline rule alone.+ code,+ pre {+ font-family: $font-mono;+ font-size: 0.9em;+ color: var(--text-body);+ }++ pre {+ margin: 1.5rem 0;+ padding: 0 0 0 1rem;+ border-left: 1px solid var(--border);+ background-color: transparent;+ overflow-x: auto;+ }++ // A hanging indent instead of a rule or tint β the quote steps out of the measure, nothing more.+ blockquote {+ margin: 1.75rem 0;+ padding: 0;+ border: 0;+ font-style: italic;+ color: var(--text-muted);+ }++ ul,+ ol {+ margin: 1rem 0;+ padding-left: 1.5rem;++ li {+ margin: 0.35em 0;+ }+ }++ // Images sit flat in the flow: no frame, no rounding.+ img {+ max-width: 100%;+ margin: 1.5rem 0;+ }++ // A single hairline instead of a heavy bar.+ hr {+ height: 0;+ margin: 2.5rem 0;+ border: 0;+ border-top: 1px solid var(--border);+ }++ // Rule-only tables: horizontal hairlines, no cell borders, no zebra fill.+ table {+ display: block;+ width: 100%;+ margin: 1.5rem 0;+ border-collapse: collapse;+ overflow-x: auto;++ th,+ td {+ padding: 0.5em 0.75em 0.5em 0;+ border-bottom: 1px solid var(--border);+ text-align: left;+ }++ th {+ font-weight: 600;+ }+ }++ // Admonitions reduced to a plain note: a thin left rule and a small, muted, upper-case label β no box or colour.+ .custom-block {+ margin: 1.75rem 0;+ padding: 0 0 0 1rem;+ border: 0;+ border-left: 1px solid var(--border);+ color: var(--text-body);+ background-color: transparent;++ .custom-block-title {+ margin: 0 0 0.35em;+ font-size: 0.8em;+ font-weight: 600;+ color: var(--text-muted);+ text-transform: uppercase;+ letter-spacing: 0.06em;+ }++ .custom-block-content > :last-child {+ margin-bottom: 0;+ }+ }+}