/* --------------------------------------------------------------------------- Minimal Theme by @Sir-Marc-VII User interface replacement for Obsidian. Designed inspired by Word office 2019 color palette and font. ----------------------------------------------------------------------------- MIT License Copyright (c) 2026 (@Sir-Marc-VII) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. /* make page full width */ body { --file-line-width: 90%; font-size: 20px; --font-text: 'Calibri', 'Segoe UI', sans-serif; --font-interface: 'Segoe UI', 'Calibri', sans-serif; --font-monospace: 'Consolas', monospace; } body:not(.native-scrollbars) ::-webkit-scrollbar { width: 10px; } .theme-dark { --accent-h: 214; --accent-s: 63%; --accent-l: 57%; --background-primary: #1E1E1E; --background-primary-alt: #2D2D2E; --background-secondary: #252526; --background-secondary-alt: #2D2D2E; --background-accent: #1B3A6B; --background-modifier-border: #3E3E42; --background-modifier-form-field: #333333; --background-modifier-form-field-highlighted: #3A3A3A; --background-modifier-box-shadow: rgba(0, 0, 0, 0.4); --background-modifier-success: #1B4332; --background-modifier-error: #4B1C1C; --background-modifier-error-rgb: 180, 60, 60; --background-modifier-error-hover: #5C2020; --background-modifier-cover: rgba(0, 0, 0, 0.85); --text-accent: #4E8FD4; --text-accent-hover: #6AAAE0; --text-normal: #D4D4D4; --text-muted: #9D9D9D; --text-faint: #606060; --text-error: #F44747; --text-error-hover: #FF6B6B; --text-highlight-bg: rgba(100, 120, 140, 0.35); --text-selection: rgba(43, 87, 154, 0.35); --text-on-accent: #FFFFFF; --interactive-normal: #2D2D2E; --interactive-hover: #2A2D2E; --interactive-accent: #4E8FD4; --interactive-accent-hover: #6AAAE0; --scrollbar-active-thumb-bg: rgba(255, 255, 255, 0.2); --scrollbar-bg: transparent; --scrollbar-thumb-bg: rgba(255, 255, 255, 0.12); --panel-border-color: #3E3E42; --gray-1: #9D9D9D; --gray-2: #606060; --red: #F44747; --green: #4EC994; --blue: #4E8FD4; --purple: #C586C0; --aqua: #4FC1FF; --yellow: #DCDCAA; --orange: #CE9178; } .theme-light { --accent-h: 230; --accent-s: 83%; --accent-l: 64%; --background-primary: #FFFFFF; --background-primary-alt: #F3F3F3; --background-secondary: #F3F3F3; --background-secondary-alt: #EBEBEB; --background-accent: #2B579A; --background-modifier-border: #E8E8E8; --background-modifier-form-field: #fff; --background-modifier-form-field-highlighted: #fff; --background-modifier-box-shadow: rgba(0, 0, 0, 0.1); --background-modifier-success: #DFF6DD; --background-modifier-error: #FDE7E9; --background-modifier-error-rgb: 230, 135, 135; --background-modifier-error-hover: #EFEFEF; --background-modifier-cover: rgba(0, 0, 0, 0.8); --text-accent: #2B579A; --text-accent-hover: #1E3F73; --text-normal: #000000; --text-muted: #595959; --text-faint: #A19F9D; --text-error: #C42B1C; --text-error-hover: #A80000; --text-highlight-bg: rgba(116, 122, 122, 0.4); --text-selection: rgba(43, 87, 154, 0.18); --text-on-accent: #FFFFFF; --interactive-normal: #F3F3F3; --interactive-hover: #EFEFEF; --interactive-accent: #2B579A; --interactive-accent-hover: #1E3F73; --scrollbar-active-thumb-bg: rgba(0, 0, 0, 0.2); --scrollbar-bg: transparent; --scrollbar-thumb-bg: rgba(0, 0, 0, 0.15); --panel-border-color: #E8E8E8; --gray-1: #383a42; --gray-2: #383a42; --red: #e75545; --green: #4ea24c; --blue: #3d74f6; --purple: #a625a4; --aqua: #0084bc; --yellow: #e35649; --orange: #986800; } .theme-dark, .theme-light { --ribbon-background: var(--background-primary); --drag-ghost-background: var(--background-secondary-alt); --background-modifier-message: var(--background-secondary-alt); --tab-outline-color: transparent; --divider-color: transparent; --prompt-border-color: var(--panel-border-color); --modal-border-color: var(--panel-border-color); --background-modifier-border-hover: var(--interactive-hover); --background-modifier-border-focus: var(--interactive-hover); --checkbox-color: var(--text-accent); --checkbox-color-hover: var(--text-accent-hover); --nav-item-background-active: var(--interactive-accent); --nav-item-color-active: #ffffff; --tag-color: var(--yellow); --tag-background: var(--background-primary-alt); --tag-color-hover: var(--yellow); --tag-background-hover: var(--background-primary-alt); --tag-padding-x: 4px; --tag-padding-y: 2px; --tag-radius: 4px; --inline-title-weight: var(--bold-weight); --link-decoration: none; --link-external-decoration: none; --embed-padding: 0 0 0 var(--size-4-4); } /* ── Fix testo invisibile durante rename file/cartella ──────── */ .nav-file-title input, .nav-file-title input:focus, .nav-folder-title input, .nav-folder-title input:focus, .tree-item-inner input, .tree-item-inner input:focus, input.nav-file-title-content, input.nav-folder-title-content { color: var(--text-normal) !important; background: var(--background-modifier-form-field) !important; border: 0.5px solid var(--background-modifier-border) !important; -webkit-text-fill-color: var(--text-normal) !important; } /* Search */ .search-result .search-result-file-title { cursor: pointer; } .search-result .collapse-icon { cursor: var(--cursor); } .search-result:not(.is-collapsed) .search-result-file-title { color: var(--blue); } /* File tab separators */ .workspace .mod-root .workspace-tab-header-inner::after { right: unset; left: -0.5px; } .workspace .mod-root .workspace-tab-header:last-child .workspace-tab-header-inner::before { position: absolute; right: -0.5px; width: 1px; background-color: var(--tab-divider-color); content: ''; height: 20px; } .workspace .mod-root .workspace-tab-header.is-active .workspace-tab-header-inner::after, .workspace .mod-root .workspace-tab-header.is-active .workspace-tab-header-inner::before, .workspace .mod-root .workspace-tab-header:first-child .workspace-tab-header-inner::after, .workspace .mod-root .workspace-tab-header.is-active + .workspace-tab-header .workspace-tab-header-inner::after { opacity: 0; } /* Editor and output */ .markdown-rendered blockquote { padding: var(--embed-padding); } mjx-container { text-align: left !important; } .math-block { font-size: 1.3em; } .theme-light :not(pre)>code, .theme-light pre { background: var(--background-primary); box-shadow: inset 0 0 0 1px var(--background-primary-alt); border-radius: 4px; } .markdown-preview-section > div h1, .markdown-preview-section > div h2, .markdown-preview-section > div h3, .markdown-preview-section > div h4, .markdown-preview-section > div h5, .markdown-preview-section > div h6 { margin-top: 40px; } .mod-header + div h1, .mod-header + div h2, .mod-header + div h3, .mod-header + div h4, .mod-header + div h5, .mod-header + div h6 { margin-top: 30px; } .cm-sizer > .inline-title { margin-bottom: 20px; } /* Miscellaneous */ .theme-dark .dropdown:hover { background-color: var(--background-modifier-form-field); } .tooltip { color: var(--text-muted); } .nav-file, .nav-folder { padding: 1px 2px; } body:not(.is-grabbing) .nav-file-title.is-being-dragged, body:not(.is-grabbing) .nav-folder-title.is-being-dragged, .nav-file-title.is-being-dragged, .nav-folder-title.is-being-dragged { background-color: var(--background-primary-alt); color: var(--nav-item-color); } .view-header-title { text-decoration: underline; text-decoration-color: var(--text-muted); text-underline-offset: 1.5px; } .status-bar { border-color: var(--panel-border-color); border-width: 1px; padding: 4px 8px; } .theme-dark button.mod-warning { --background-modifier-error: #d42020; --background-modifier-error-hover: #b01515; } .theme-light button.mod-warning { --background-modifier-error: #f23f3f; --background-modifier-error-hover: #d72020; } /* Code syntax highlighting */ code[class*='language-'], pre[class*='language-'] { text-align: left !important; white-space: pre !important; word-spacing: normal !important; word-break: normal !important; word-wrap: normal !important; line-height: 1.5 !important; tab-size: 4 !important; hyphens: none !important; } pre[class*='language-'] { padding: 1em !important; margin: .5em 0 !important; overflow: auto !important; } :not(pre)>code[class*='language-'] { padding: .1em !important; border-radius: .3em !important; white-space: normal !important; } .token.comment, .token.prolog, .token.doctype, .token.cdata, .HyperMD-codeblock .cm-comment { color: var(--gray-1) !important; } .token.punctuation, .HyperMD-codeblock .cm-hmd-codeblock, .HyperMD-codeblock .cm-bracket { color: var(--gray-2) !important; } .token.selector, .token.tag, .HyperMD-codeblock .cm-tag, .HyperMD-codeblock .cm-property, .HyperMD-codeblock .cm-meta, .HyperMD-codeblock .cm-qualifier, .HyperMD-codeblock .cm-header, .HyperMD-codeblock .cm-quote, .HyperMD-codeblock .cm-hr, .HyperMD-codeblock .cm-link { color: var(--red) !important; } .token.property, .token.boolean, .token.number, .token.constant, .token.symbol, .token.attr-name, .token.deleted, .HyperMD-codeblock .cm-number, .HyperMD-codeblock .cm-atom, .HyperMD-codeblock .cm-attribute { color: var(--orange) !important; } .token.string, .token.char, .token.attr-value, .token.builtin, .token.inserted, .HyperMD-codeblock .cm-string, .HyperMD-codeblock .cm-builtin { color: var(--green) !important; } .token.operator, .token.entity, .token.url, .language-css .token.string, .style .token.string, .HyperMD-codeblock .cm-string-2, .HyperMD-codeblock .cm-operator { color: var(--aqua) !important; } .token.atrule, .token.keyword, .HyperMD-codeblock .cm-keyword { color: var(--purple) !important; } .token.function, .token.macro.property, .HyperMD-codeblock .cm-def, .HyperMD-codeblock .cm-variable { color: var(--blue) !important; } .token.class-name, .HyperMD-codeblock .cm-variable-2, .HyperMD-codeblock .cm-variable-3 { color: var(--yellow) !important; } .token.regex, .token.important, .token.variable { color: var(--purple) !important; } .token.important, .token.bold { font-weight: bold !important; } .token.italic { font-style: italic !important; } .token.entity { cursor: help !important; }