/* @settings
name: Dedication Theme Settings
id: dedication-theme
settings:
-
id: theme-presets
title: Theme Presets
type: heading
level: 1
collapsed: false
-
id: theme-preset
title: Theme Preset
type: class-select
allowEmpty: false
default: custom
options:
-
label: Custom
value: custom
-
label: Dark Modern
value: theme-preset-dark-modern
-
label: Dracula
value: theme-preset-dracula
-
label: Nord
value: theme-preset-nord
-
label: Gruvbox
value: theme-preset-gruvbox
-
label: Monokai
value: theme-preset-monokai
-
id: colors
title: Colors
type: heading
level: 1
collapsed: true
-
id: dark-colors
title: Dark Theme Colors
type: heading
level: 2
collapsed: true
-
id: dark-bg-primary
title: Primary Background
type: variable-color
default: '#060335'
format: hex
-
id: dark-bg-secondary
title: Secondary Background
type: variable-color
default: '#191919'
format: hex
-
id: dark-bg-primary-alt
title: Primary Alt Background
type: variable-color
default: '#242424'
format: hex
-
id: dark-bg-secondary-alt
title: Secondary Alt Background
type: variable-color
default: '#3D3D3D'
format: hex
-
id: dark-text-normal
title: Text Color
type: variable-color
default: '#faf2d6'
format: hex
-
id: dark-text-faint
title: Faint Text Color
type: variable-color
default: '#c0b0a0'
format: hex
-
id: light-colors
title: Light Theme Colors
type: heading
level: 2
collapsed: true
-
id: light-bg-primary
title: Primary Background
type: variable-color
default: '#EDEDED'
format: hex
-
id: light-bg-secondary
title: Secondary Background
type: variable-color
default: '#C4C4C4'
format: hex
-
id: light-bg-primary-alt
title: Primary Alt Background
type: variable-color
default: '#d4d4d4'
format: hex
-
id: light-bg-secondary-alt
title: Secondary Alt Background
type: variable-color
default: '#707070'
format: hex
-
id: light-text-normal
title: Text Color
type: variable-color
default: '#1A2023'
format: hex
-
id: light-text-faint
title: Faint Text Color
type: variable-color
default: '#999999'
format: hex
-
id: accent-colors
title: Accent Colors
type: heading
level: 2
collapsed: true
-
id: color-accent
title: Accent Color
type: variable-color
default: '#0066cc'
format: hex
-
id: color-accent-hover
title: Accent Hover Color
type: variable-color
default: '#004499'
format: hex
-
id: color-border
title: Border Color
type: variable-color
default: '#00ffff'
format: hex
-
id: adaptive-accent
title: Adaptive Accent
description: Dynamically adapt accent color for better contrast
type: class-toggle
default: false
-
id: heading-colors
title: Heading Colors
type: heading
level: 1
collapsed: true
-
id: h1-color
title: H1 Color
type: variable-color
default: '#cc00c4'
format: hex
-
id: h2-color
title: H2 Color
type: variable-color
default: '#00b7eb'
format: hex
-
id: h3-color
title: H3 Color
type: variable-color
default: '#ff8c00'
format: hex
-
id: h4-color
title: H4 Color
type: variable-color
default: '#0000cc'
format: hex
-
id: h5-color
title: H5 Color
type: variable-color
default: '#cc0000'
format: hex
-
id: h6-color
title: H6 Color
type: variable-color
default: '#cccc00'
format: hex
-
id: typography
title: Typography
type: heading
level: 1
collapsed: true
-
id: font-family
title: Font Family
type: variable-select
default: system-ui
options:
-
label: System UI
value: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif
-
label: Roboto
value: "Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif"
-
label: Inter
value: "Inter, system-ui, sans-serif"
-
label: Georgia Serif
value: "Georgia, 'Times New Roman', Times, serif"
-
label: Monospace
value: "'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace"
-
label: Custom
value: var(--custom-font-family)
-
id: custom-font-family
title: Custom Font Family
type: variable-text
default: "Arial, sans-serif"
-
id: base-font-size
title: Base Font Size
type: variable-number
default: 16
format: px
-
id: line-height
title: Line Height
type: variable-number
default: 1.6
-
id: layout
title: Layout
type: heading
level: 1
collapsed: true
-
id: sidebar-width
title: Sidebar Width
type: variable-number
default: 300
format: px
-
id: content-max-width
title: Content Max Width
type: variable-text
default: '100%'
-
id: file-explorer
title: File Explorer
type: heading
level: 1
collapsed: true
-
id: rainbow-folders
title: Rainbow Folders
type: class-toggle
default: true
-
id: folder-indentation
title: Folder Indentation
type: variable-number
default: 12
format: px
-
id: nav-item-padding
title: Item Vertical Padding
type: variable-number
default: 4
format: px
*/
:root {
/* Colors */
--color-accent: #0066cc;
--color-accent-hover: #004499;
--color-border: #00ffff;
/* Dark Theme Colors */
--dark-bg-primary: #060335;
--dark-bg-secondary: #191919;
--dark-bg-primary-alt: #242424;
--dark-bg-secondary-alt: #3D3D3D;
--dark-text: #faf2d6;
--dark-text-faint: #c0b0a0;
/* Light Theme Colors */
--light-bg-primary: #EDEDED;
--light-bg-secondary: #C4C4C4;
--light-bg-primary-alt: #d4d4d4;
--light-bg-secondary-alt: #707070;
--light-text: #1A2023;
--light-text-faint: #999999;
/* Heading Colors */
--h1-color: #cc00c4;
--h2-color: #00b7eb;
--h3-color: #ff8c00;
--h4-color: #0000cc;
--h5-color: #cc0000;
--h6-color: #cccc00;
/* Typography */
--font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
--custom-font-family: Arial, sans-serif;
--base-font-size: 16px;
--line-height: 1.6;
/* Layout */
--sidebar-width: 300px;
--content-max-width: 100%;
/* Border Radius */
--border-radius-small: 4px;
--border-radius-medium: 6px;
--border-radius-large: 8px;
/* Feature Toggles */
--rainbow-folders-enabled: 1;
}
/* Theme Presets */
body.theme-preset-dark-modern {
--dark-bg-primary: #0f0f23;
--dark-bg-secondary: #1a1a2e;
--dark-text: #e6e6e6;
--h1-color: #ff6bcb;
--h2-color: #6bcaff;
--h3-color: #6bffb8;
--color-accent: #6bffb8;
--color-border: #6bcaff;
}
body.theme-preset-dracula {
--dark-bg-primary: #282a36;
--dark-bg-secondary: #44475a;
--dark-text: #f8f8f2;
--h1-color: #ff79c6;
--h2-color: #bd93f9;
--h3-color: #50fa7b;
--h4-color: #f1fa8c;
--h5-color: #8be9fd;
--h6-color: #ffb86c;
--color-accent: #bd93f9;
--color-border: #ff79c6;
}
body.theme-preset-nord {
--dark-bg-primary: #2e3440;
--dark-bg-secondary: #3b4252;
--dark-text: #d8dee9;
--h1-color: #88c0d0;
--h2-color: #81a1c1;
--h3-color: #5e81ac;
--h4-color: #bf616a;
--h5-color: #d08770;
--h6-color: #ebcb8b;
--color-accent: #88c0d0;
--color-border: #81a1c1;
}
body.theme-preset-gruvbox {
--dark-bg-primary: #282828;
--dark-bg-secondary: #3c3836;
--dark-text: #ebdbb2;
--h1-color: #fb4934;
--h2-color: #b8bb26;
--h3-color: #fabd2f;
--h4-color: #83a598;
--h5-color: #d3869b;
--h6-color: #8ec07c;
--color-accent: #fb4934;
--color-border: #b8bb26;
}
body.theme-preset-monokai {
--dark-bg-primary: #272822;
--dark-bg-secondary: #3e3d32;
--dark-text: #f8f8f2;
--h1-color: #f92672;
--h2-color: #a6e22e;
--h3-color: #fd971f;
--h4-color: #66d9ef;
--h5-color: #ae81ff;
--h6-color: #f8f8f0;
--color-accent: #a6e22e;
--color-border: #f92672;
}
/* Adaptive Accent */
body.adaptive-accent.theme-dark {
--color-accent: hsl(210, 100%, 70%);
--color-accent-hover: hsl(210, 100%, 60%);
}
body.adaptive-accent.theme-light {
--color-accent: hsl(210, 100%, 30%);
--color-accent-hover: hsl(210, 100%, 20%);
}
/* Font Family Application */
body[data-font-family="system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"] {
--font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
body[data-font-family="Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif"] {
--font-family: Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
body[data-font-family="Inter, system-ui, sans-serif"] {
--font-family: Inter, system-ui, sans-serif;
}
body[data-font-family="Georgia, 'Times New Roman', Times, serif"] {
--font-family: Georgia, 'Times New Roman', Times, serif;
}
body[data-font-family="'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace"] {
--font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
}
body[data-font-family="var(--custom-font-family)"] {
--font-family: var(--custom-font-family);
}
/* Rainbow Folders */
body.rainbow-folders .nav-files-container > div > .nav-folder:nth-child(11n + 2) { --folder-color: rgb(220, 38, 38); }
body.rainbow-folders .nav-files-container > div > .nav-folder:nth-child(11n + 3) { --folder-color: rgb(234, 88, 12); }
body.rainbow-folders .nav-files-container > div > .nav-folder:nth-child(11n + 4) { --folder-color: rgb(245, 158, 11); }
body.rainbow-folders .nav-files-container > div > .nav-folder:nth-child(11n + 5) { --folder-color: rgb(202, 138, 4); }
body.rainbow-folders .nav-files-container > div > .nav-folder:nth-child(11n + 6) { --folder-color: rgb(21, 128, 61); }
body.rainbow-folders .nav-files-container > div > .nav-folder:nth-child(11n + 7) { --folder-color: rgb(13, 148, 136); }
body.rainbow-folders .nav-files-container > div > .nav-folder:nth-child(11n + 8) { --folder-color: rgb(8, 145, 178); }
body.rainbow-folders .nav-files-container > div > .nav-folder:nth-child(11n + 9) { --folder-color: rgb(29, 78, 216); }
body.rainbow-folders .nav-files-container > div > .nav-folder:nth-child(11n + 10) { --folder-color: rgb(124, 58, 237); }
body.rainbow-folders .nav-files-container > div > .nav-folder:nth-child(11n + 11) { --folder-color: rgb(147, 51, 234); }
body.rainbow-folders .nav-files-container > div > .nav-folder:nth-child(11n + 12) { --folder-color: hsl(330, 100%, 45%); }
body:not(.rainbow-folders) .nav-files-container > div > .nav-folder {
--folder-color: var(--text-normal);
}
.nav-folder-children {
margin-left: var(--folder-indentation, 12px);
}
.nav-folder-title, .nav-file-title {
padding-top: var(--nav-item-padding, 4px);
padding-bottom: var(--nav-item-padding, 4px);
}
/* Apply base styles */
body, .cm-scroller, .markdown-preview-view {
font-family: var(--font-family);
font-size: var(--base-font-size);
line-height: var(--line-height);
}
/* Theme Colors Application */
.theme-dark {
--background-primary: var(--dark-bg-primary);
--background-primary-alt: var(--dark-bg-primary-alt);
--background-secondary: var(--dark-bg-secondary);
--background-secondary-alt: var(--dark-bg-secondary-alt);
--text-normal: var(--dark-text);
--text-faint: var(--dark-text-faint);
--code-background: var(--dark-bg-secondary-alt);
--text-title-h1: var(--h1-color);
--text-title-h2: var(--h2-color);
--text-title-h3: var(--h3-color);
--text-title-h4: var(--h4-color);
--text-title-h5: var(--h5-color);
--text-title-h6: var(--h6-color);
--text-highlight-bg: #640211;
--text-link: #83a598;
--text-a-hover: #83a598;
--text-accent-hover: var(--color-accent-hover);
--inline-code: #8b5cf6;
--code-block: #83a598;
--text-a: rgb(248, 197, 55);
--interactive-accent: var(--color-accent);
--text-accent: #00ffff;
--text-on-accent: #fff;
--interactive-accent-rgb: #f8c537;
--vim-cursor: #f8c537;
--pre-code: #1e1e1e;
--interactive-before: #7c6f64;
--background-modifier-border: var(--color-border);
--text-selection: var(--interactive-accent);
}
.theme-light {
--background-primary: var(--light-bg-primary);
--background-secondary: var(--light-bg-secondary);
--background-primary-alt: var(--light-bg-primary-alt);
--background-secondary-alt: var(--light-bg-secondary-alt);
--text-normal: var(--light-text);
--text-faint: var(--light-text-faint);
--code-background: var(--light-bg-secondary-alt);
--text-title-h1: var(--h1-color);
--text-title-h2: var(--h2-color);
--text-title-h3: var(--h3-color);
--text-title-h4: var(--h4-color);
--text-title-h5: var(--h5-color);
--text-title-h6: var(--h6-color);
--text-link: #D49335;
--text-a-hover: #D49335;
--text-accent-hover: var(--color-accent-hover);
--inline-code: #458588;
--pre-code: #bebebe;
--text-highlight-bg: #f0f0f0;
--interactive-before: #a89984;
--background-modifier-border: var(--color-border);
--text-a: #961327;
--interactive-accent: var(--color-accent);
--text-accent: #00ffff;
--interactive-accent-rgb: #961327;
--vim-cursor: #961327;
--text-selection: var(--interactive-accent);
--text-white: #ffffff;
}
/* Layout */
.workspace-leaf-content[data-type="file-explorer"] {
width: var(--sidebar-width);
}
.markdown-preview-view {
max-width: var(--content-max-width);
margin: 0 auto;
}
/* Apply border radius */
.cm-editor .cm-line, .markdown-preview-section div, .modal, .prompt, .suggestion-item {
border-radius: var(--border-radius-medium);
}
button, input, select, textarea {
border-radius: var(--border-radius-small);
}
/* Colors */
.theme-dark .cm-s-obsidian span.obsidian-search-match-highlight {
color: var(--text-normal);
background-color: #483699;
}
.theme-light .cm-s-obsidian span.obsidian-search-match-highlight {
background-color: #808080;
}
/* Font Styling */
:root {
--default-font: var(--font-family);
}
/* Checkbox Styling */
.markdown-source-view.mod-cm6 .HyperMD-task-line[data-task="x"],
.markdown-source-view.mod-cm6 .HyperMD-task-line[data-task="X"],
ul>li.task-list-item[data-task="x"],
ul>li.task-list-item[data-task="X"] {
text-decoration: none;
color: var(--interactive-accent);
}
input[type="checkbox"],
.cm-formatting-task {
-webkit-appearance: none;
appearance: none;
border-radius: 50%;
border: 1px solid var(--text-faint);
padding: 0;
vertical-align: middle;
}
.cm-s-obsidian span.cm-formatting-task {
color: transparent;
width: 1.25em ;
height: 1.25em;
display: inline-block;
}
input[type="checkbox"]:focus {
outline: 0;
}
input[type="checkbox"]:checked,
.cm-formatting-task.cm-property {
background-color: var(--text-accent-hover);
border: 1px solid var(--text-accent-hover);
background-position: center;
background-size: 70%;
background-repeat: no-repeat;
background-image: url('data:image/svg+xml; utf8, ');
}
/*==== Calender ====*/
.container#calendar-container .calendar {
& > thead > tr:first-of-type {
& > th:nth-child(1) {
color: rgb(255, 0, 0);
}
& > th:nth-child(2) {
color: rgb(255, 165, 0);
}
& > th:nth-child(3) {
color: rgb(255, 255, 0);
}
& > th:nth-child(4) {
color: rgb(0, 128, 0);
}
& > th:nth-child(5) {
color: rgb(0, 0, 255);
}
& > th:nth-child(6) {
color: rgb(228, 175, 2);
}
& > th:nth-child(7) {
color: rgb(238, 130, 238);
}
}
}
.view-content:has(#calendar-container) {
padding:0;
}
#calendar-container {
padding:0 8px 8px 8px;
}
#calendar-container .year {
color:var(--text-muted);
}
#calendar-container td,
#calendar-container .day {
border-radius:0 ;
}
#calendar-container .day {
padding-top:0px;
padding-bottom:0;
}
#calendar-container .day.today {
color: var(--text-bold);
font-weight:900;
outline:2px solid var(--color-cyan);;
}
#calendar-container .weekend {
background: var(--background-primary);
}
/*=========================================================================================*/
/*==== Blockquote ====*/
.cm-quote,
.markdown-preview-view blockquote {
color: rgb(33, 33, 33);
font-style: italic;
}
.markdown-preview-view blockquote {
position: relative;
padding: 1rem 2rem 1rem 2.5rem;
margin: 1rem 0;
border-left: 4px solid rgb(8, 145, 178);
border-radius: 5px;
background: linear-gradient(135deg, rgba(245, 247, 250, 0.8), rgba(19, 166, 240, 0.9));
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}
/* Quote icon */
.markdown-preview-view blockquote::before {
content: "\201C"; /* Left double quote */
position: absolute;
top: 0.5rem;
left: 0.5rem;
font-size: 2rem;
font-family: Georgia, serif;
color: rgb(8, 145, 178);
opacity: 0.7;
}
/* Bottom accent line */
.markdown-preview-view blockquote::after {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: 30%;
height: 2px;
background: rgb(8, 145, 178);
}
/*=========================================================================================*/
/* File Pane */
/* Icons in Pane */
.tree-item-self .tree-item-icon {
height: var(--size-4-4);
--icon-color: currentColor;
}
.tree-item-self .tree-item-icon .svg-icon:not(.right-triangle) {
--icon-size: var(--icon-s);
--icon-stroke: var(--icon-s-stroke-width);
}
/* Hide collapse icon stroke for tags, bookmarks, and file explorer when not hovered */
body:not(.file-icon-remove) .workspace-leaf-content[data-type="tag"] .tree-item:not(:hover) .tree-item-icon.collapse-icon svg.svg-icon,
body:not(.file-icon-remove) .workspace-leaf-content:is([data-type="bookmarks"], [data-type="file-explorer"]) .tree-item-icon.collapse-icon svg.svg-icon {
color: transparent;
}
/* Apply background color to collapse icons */
body:not(.file-icon-remove) .workspace-leaf-content[data-type="tag"] .tree-item:not(:hover) .tree-item-icon.collapse-icon,
body:not(.file-icon-remove) .workspace-leaf-content:is([data-type="bookmarks"], [data-type="file-explorer"]) .tree-item-icon.collapse-icon {
background-color: var(--folder-color, currentColor);
opacity: var(--icon-opacity);
}
/* Add pseudo-element for items without collapse icons */
body:not(.file-icon-remove) .workspace-leaf-content[data-type="tag"] .tree-item-self:not(:has(>.tree-item-icon.collapse-icon))::before,
body:not(.file-icon-remove) .workspace-leaf-content[data-type="file-explorer"] :is(.nav-file-title, .nav-folder.mod-root>.nav-folder-title)::before {
content: " ";
position: absolute;
margin-left: calc(-1 * var(--size-4-5));
width: var(--size-4-4);
height: var(--size-4-4);
display: flex;
align-items: center;
justify-content: center;
opacity: var(--icon-opacity);
background-color: var(--folder-color, currentColor);
flex: 0 0 auto;
}
/* Folder icon for root folder */
body:not(.file-icon-remove) .workspace-leaf-content[data-type="file-explorer"] .nav-folder.mod-root>.nav-folder-title::before {
-webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3e%3cg stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.333'%3e%3cpath d='M14 12.8V3.2c0-.884-.264-1.2-1-1.2H3c-.736 0-1 .316-1 1.2v9.6c0 .884.264 1.2 1 1.2h10c.736 0 1-.316 1-1.2Z'/%3e%3cpath d='M9.978 7.04a2 2 0 1 1-3.956.587 2 2 0 0 1 3.956-.587ZM8 9.333v2m6-6.666h1m-1 6h1'/%3e%3c/g%3e%3c/svg%3e");
}
/* Folder icon for expanded folders */
body:not(.file-icon-remove) .workspace-leaf-content[data-type="file-explorer"] .tree-item-icon.collapse-icon,
body:not(.file-icon-remove) .workspace-leaf-content[data-type="bookmarks"] .tree-item-icon.collapse-icon {
-webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.333' d='M4 9.333 4.967 7.4a1.333 1.333 0 0 1 1.193-.733h7.173m0 0a1.333 1.333 0 0 1 1.294 1.666l-1.034 4a1.333 1.333 0 0 1-1.293 1H2.667A1.333 1.333 0 0 1 1.333 12V3.333C1.333 2.6 1.933 2 2.667 2h2.62a1.333 1.333 0 0 1 1.106.6l.547.8a1.333 1.333 0 0 0 1.107.6H12a1.333 1.333 0 0 1 1.333 1.333v1.334Z'/%3e%3c/svg%3e");
}
/* Folder icon for collapsed folders */
body:not(.file-icon-remove) .workspace-leaf-content[data-type="file-explorer"] .is-collapsed .tree-item-icon.collapse-icon,
body:not(.file-icon-remove) .workspace-leaf-content[data-type="bookmarks"] .is-collapsed .tree-item-icon.collapse-icon {
-webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.333' d='M2.667 13.333h10.666A1.333 1.333 0 0 0 14.667 12V5.333A1.333 1.333 0 0 0 13.333 4H8.047a1.333 1.333 0 0 1-1.107-.6l-.547-.8A1.333 1.333 0 0 0 5.287 2h-2.62a1.333 1.333 0 0 0-1.334 1.333V12c0 .733.6 1.333 1.334 1.333Z'/%3e%3c/svg%3e");
}
/* File icon for general files */
body:not(.file-icon-remove) .workspace-leaf-content[data-type="file-explorer"] .nav-file-title::before {
-webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3e%3cg stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.333'%3e%3cpath d='M9.667 1.333H4a1.333 1.333 0 0 0-1.333 1.334v10.666A1.333 1.333 0 0 0 4 14.667h8a1.333 1.333 0 0 0 1.333-1.334V5L9.667 1.333Z'/%3e%3cpath d='M9.333 1.333v4h4'/%3e%3c/g%3e%3c/svg%3e");
}
/* Canvas file icon */
body:not(.file-icon-remove) .workspace-leaf-content[data-type="file-explorer"] .nav-file-title[data-path$=".canvas"]::before {
-webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.333' d='M6 2H2.667A.667.667 0 0 0 2 2.667v4.666c0 .369.298.667.667.667H6a.667.667 0 0 0 .667-.667V2.667A.667.667 0 0 0 6 2Zm7.333 0H10a.667.667 0 0 0-.667.667v2c0 .368.299.666.667.666h3.333A.667.667 0 0 0 14 4.667v-2A.667.667 0 0 0 13.333 2Zm0 6H10a.667.667 0 0 0-.667.667v4.666c0 .368.299.667.667.667h3.333a.667.667 0 0 0 .667-.667V8.667A.667.667 0 0 0 13.333 8ZM6 10.667H2.667a.667.667 0 0 0-.667.666v2c0 .368.298.667.667.667H6a.667.667 0 0 0 .667-.667v-2A.667.667 0 0 0 6 10.667Z'/%3e%3c/svg%3e");
}
/* Base file icon */
body:not(.file-icon-remove) .workspace-leaf-content[data-type="file-explorer"] .nav-file-title[data-path$=".base"]::before {
-webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.333' d='M6 2H2.667A.667.667 0 0 0 2 2.667V6c0 .368.298.667.667.667H6A.667.667 0 0 0 6.667 6V2.667A.667.667 0 0 0 6 2Zm0 7.333H2.667A.667.667 0 0 0 2 10v3.333c0 .368.298.667.667.667H6a.667.667 0 0 0 .667-.667V10A.667.667 0 0 0 6 9.333Zm3.333-6.666H14M9.333 6H14m-4.667 4H14m-4.667 3.333H14'/%3e%3c/svg%3e");
}
/* Unsupported file icon */
body:not(.file-icon-remove) .workspace-leaf-content[data-type="file-explorer"] .is-unsupported.nav-file-title::before {
-webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3e%3cg stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.333'%3e%3cpath d='M9.667 1.333H4a1.333 1.333 0 0 0-1.333 1.334v10.666A1.333 1.333 0 0 0 4 14.667h8a1.333 1.333 0 0 0 1.333-1.334V5L9.667 1.333Z'/%3e%3cpath d='M6.667 6.867c.133-.267.333-.534.6-.667A1.4 1.4 0 0 1 9 6.467c.2.266.333.533.333.866C9.333 8.2 8 8.667 8 8.667m0 2.666h.007'/%3e%3c/g%3e%3c/svg%3e");
}
/* ZIP and 7z file icon */
body:not(.file-icon-remove) .workspace-leaf-content[data-type="file-explorer"] .is-unsupported.nav-file-title:is([data-path$=".zip"], [data-path$=".7z"])::before {
-webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3e%3cg stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.333'%3e%3cpath d='M2.667 14.667v-12c0-.334.133-.667.4-.934.266-.266.6-.4.933-.4h5.667L13.333 5v8.333c0 .334-.133.667-.4.934-.266.266-.6.4-.933.4h-1.333'/%3e%3cpath d='M9.333 1.333v4h4m-6.666 9.334a1.333 1.333 0 1 0 0-2.667 1.333 1.333 0 0 0 0 2.667Zm0-10V4m0 4v-.667m0 4.667v-1.333'/%3e%3c/g%3e%3c/svg%3e");
}
/* WebM file icon */
body:not(.file-icon-remove) .workspace-leaf-content[data-type="file-explorer"] .nav-file-title[data-path$=".webm"]::before {
-webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3e%3cg stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.333'%3e%3cpath d='M2.667 14.667H12a1.333 1.333 0 0 0 1.333-1.334V5L9.667 1.333H4a1.333 1.333 0 0 0-1.333 1.334v2'/%3e%3cpath d='M9.333 1.333v4h4M4.667 6.667 2.667 8H1.333v2.667h1.334l2 1.333V6.667Zm2.666.666c.427.534.667 1.247.667 2 0 .754-.24 1.467-.667 2'/%3e%3c/g%3e%3c/svg%3e");
}
/* Image file icon */
body:not(.file-icon-remove) .workspace-leaf-content[data-type="file-explorer"] .nav-file-title:is([data-path$=".svg"], [data-path$=".bmp"], [data-path$=".jpeg"], [data-path$=".jpg"], [data-path$=".png"], [data-path$=".gif"])::before {
-webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3e%3cg stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.333'%3e%3cpath d='M12.667 2H3.333C2.597 2 2 2.597 2 3.333v9.334C2 13.403 2.597 14 3.333 14h9.334c.736 0 1.333-.597 1.333-1.333V3.333C14 2.597 13.403 2 12.667 2Z'/%3e%3cpath d='M6 7.333a1.333 1.333 0 1 0 0-2.666 1.333 1.333 0 0 0 0 2.666ZM14 10l-2.057-2.057a1.333 1.333 0 0 0-1.886 0L4 14'/%3e%3c/g%3e%3c/svg%3e");
}
/* PDF file icon */
body:not(.file-icon-remove) .workspace-leaf-content[data-type="file-explorer"] .nav-file-title[data-path$=".pdf"]::before {
-webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3e%3cg stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.333'%3e%3cpath d='M9.667 1.333H4a1.333 1.333 0 0 0-1.333 1.334v10.666A1.333 1.333 0 0 0 4 14.667h8a1.333 1.333 0 0 0 1.333-1.334V5L9.667 1.333Z'/%3e%3cpath d='M9.333 1.333v4h4m-2.666 3.334H5.333m5.334 2.666H5.333M6.667 6H5.333'/%3e%3c/g%3e%3c/svg%3e");
}
/* Excalidraw file icon */
body:not(.file-icon-remove) .workspace-leaf-content[data-type="file-explorer"] .nav-file-title[data-path$=".excalidraw.md"]::before {
-webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3e%3cg stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.333' clip-path='url(%23a)'%3e%3cpath d='M8 12.667 12.667 8l2 2L10 14.667l-2-2Z'/%3e%3cpath d='m12 8.667-1-5-9.667-2.334L3.667 11l5 1L12 8.667ZM1.333 1.333l5.058 5.058'/%3e%3cpath d='M7.333 8.667a1.333 1.333 0 1 0 0-2.667 1.333 1.333 0 0 0 0 2.667Z'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='a'%3e%3cpath fill='white' d='M0 0h16v16H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e");
}
/* Tag icon */
body:not(.file-icon-remove) .workspace-leaf-content[data-type="tag"] .tree-item:not(:hover) .tree-item-icon.collapse-icon {
-webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3e%3cg stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.333'%3e%3cpath d='M6 3.333H1.333V8l4.194 4.193a1.617 1.617 0 0 0 2.28 0l2.386-2.386a1.617 1.617 0 0 0 0-2.28L6 3.333ZM4 6.007V6'/%3e%3cpath d='m10 3.333 4.2 4.2a1.6 1.6 0 0 1 0 2.267l-2.867 2.867'/%3e%3c/g%3e%3c/svg%3e");
}
/* Tag item icon */
body:not(.file-icon-remove) .workspace-leaf-content[data-type="tag"] .tree-item-self:not(:has(>.tree-item-icon.collapse-icon))::before {
-webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3e%3cg clip-path='url(%23a)'%3e%3cpath stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.333' d='M8 1.333H1.333V8l6.194 6.193a1.617 1.617 0 0 0 2.28 0l4.386-4.386a1.617 1.617 0 0 0 0-2.28L8 1.333ZM4.667 4.667h.006'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='a'%3e%3cpath fill='white' d='M0 0h16v16H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e");
}
/* Bookmark folder icon */
body:not(.file-icon-remove) .workspace-leaf-content[data-type="bookmarks"] svg.lucide-folder {
background-color: var(--folder-color, currentColor);
-webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3e%3cg stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.333'%3e%3cpath d='M1.333 6V3.333C1.333 2.6 1.933 2 2.667 2h2.62a1.333 1.333 0 0 1 1.106.6l.547.8a1.333 1.333 0 0 0 1.107.6h5.286a1.333 1.333 0 0 1 1.334 1.333V12a1.333 1.333 0 0 1-1.334 1.333h-12'/%3e%3cpath d='m5.333 10.667 2-2-2-2'/%3e%3cpath d='M1.333 10.667V10a1.333 1.333 0 0 1 1.334-1.333h4'/%3e%3c/g%3e%3c/svg%3e");
}
/* Colorful Folders (consolidated from previous snippet) */
.nav-files-container > div > .nav-folder {
--nav-item-color: var(--folder-color);
}
.nav-files-container > div > .nav-folder:nth-child(11n + 2) {
--folder-color: rgb(220, 38, 38); /* Red */
}
.nav-files-container > div > .nav-folder:nth-child(11n + 3) {
--folder-color: rgb(234, 88, 12); /* Orange */
}
.nav-files-container > div > .nav-folder:nth-child(11n + 4) {
--folder-color: rgb(245, 158, 11); /* Amber */
}
.nav-files-container > div > .nav-folder:nth-child(11n + 5) {
--folder-color: rgb(202, 138, 4); /* Yellow */
}
.nav-files-container > div > .nav-folder:nth-child(11n + 6) {
--folder-color: rgb(21, 128, 61); /* Green */
}
.nav-files-container > div > .nav-folder:nth-child(11n + 7) {
--folder-color: rgb(13, 148, 136); /* Teal */
}
.nav-files-container > div > .nav-folder:nth-child(11n + 8) {
--folder-color: rgb(8, 145, 178); /* Cyan */
}
.nav-files-container > div > .nav-folder:nth-child(11n + 9) {
--folder-color: rgb(29, 78, 216); /* Blue */
}
.nav-files-container > div > .nav-folder:nth-child(11n + 10) {
--folder-color: rgb(124, 58, 237); /* Purple */
}
.nav-files-container > div > .nav-folder:nth-child(11n + 11) {
--folder-color: rgb(147, 51, 234); /* Violet */
}
.nav-files-container > div > .nav-folder:nth-child(11n + 12) {
--folder-color: hsl(330, 100%, 45%); /* Pink */
}
/*=========================================================================================*/
/* Header Styling */
/* General header styling for source and preview modes */
.cm-s-obsidian .cm-header,
h1, h2, h3, h4, h5, h6 {
font-weight: 700;
text-align: center;
margin-top: var(--size-4-2); /* ~8px, Obsidian spacing variable */
letter-spacing: 0.5px;
overflow: visible; /* Ensures hover indicators are visible */
}
/* Source mode headers (cm-header) */
.cm-s-obsidian .HyperMD-header {
text-align: center;
}
/* Theme-specific header styling */
.cm-header-1:not(.cm-formatting),
.markdown-preview-view h1 {
color: var(--text-title-h1);
border-bottom: 1px dotted var(--text-title-h1); /* Dotted border matches color */
padding-bottom: 4px; /* Slightly increased for balance */
}
.cm-header-2:not(.cm-formatting),
.markdown-preview-view h2 {
color: var(--text-title-h2);
border-bottom: 1px dotted var(--text-title-h2);
padding-bottom: 4px;
}
.cm-header-3:not(.cm-formatting),
.markdown-preview-view h3 {
color: var(--text-title-h3);
border-bottom: 1px dotted var(--text-title-h3);
padding-bottom: 4px;
}
.cm-header-4:not(.cm-formatting),
.markdown-preview-view h4 {
color: var(--text-title-h4);
border-bottom: 1px dotted var(--text-title-h4);
padding-bottom: 4px;
}
.cm-header-5:not(.cm-formatting),
.markdown-preview-view h5 {
color: var(--text-title-h5);
border-bottom: 1px dotted var(--text-title-h5);
padding-bottom: 4px;
}
.cm-header-6:not(.cm-formatting),
.markdown-preview-view h6 {
color: var(--text-title-h6);
border-bottom: 1px dotted var(--text-title-h6);
padding-bottom: 4px;
}
/* Hover indicators for preview mode */
.theme-dark .markdown-preview-view h1:hover::before,
.theme-dark .markdown-preview-view h2:hover::before,
.theme-dark .markdown-preview-view h3:hover::before,
.theme-dark .markdown-preview-view h4:hover::before,
.theme-dark .markdown-preview-view h5:hover::before,
.theme-dark .markdown-preview-view h6:hover::before {
background: var(--background-secondary); /* Matches dark theme secondary background */
color: var(--text-normal); /* High contrast text */
border: 1px solid var(--background-modifier-border); /* Theme-specific border */
}
.theme-light .markdown-preview-view h1:hover::before,
.theme-light .markdown-preview-view h2:hover::before,
.theme-light .markdown-preview-view h3:hover::before,
.theme-light .markdown-preview-view h4:hover::before,
.theme-light .markdown-preview-view h5:hover::before,
.theme-light .markdown-preview-view h6:hover::before {
background: var(--background-secondary); /* Matches light theme secondary background */
color: var(--text-normal); /* High contrast text */
border: 1px solid var(--background-modifier-border); /* Theme-specific border */
}
.markdown-preview-view h1:hover::before {
content: 'H1';
position: absolute;
font-size: 0.5rem;
width: auto;
margin-left: -24px;
padding: 0 2px;
border-radius: var(--radius-xs); /* Obsidian variable, ~2px */
top: 25px;
}
.markdown-preview-view h2:hover::before {
content: 'H2';
position: absolute;
font-size: 0.5rem;
margin-left: -25px;
padding: 0 2px;
border-radius: var(--radius-xs);
top: 23px;
}
.markdown-preview-view h3:hover::before {
content: 'H3';
position: absolute;
font-size: 0.45rem;
margin-left: -25px;
padding: 0 2px;
border-radius: var(--radius-xs);
top: 22px;
}
.markdown-preview-view h4:hover::before {
content: 'H4';
position: absolute;
font-size: 0.4rem;
margin-left: -25px;
padding: 0 2px;
border-radius: var(--radius-xs);
top: 22px;
}
.markdown-preview-view h5:hover::before {
content: 'H5';
position: absolute;
font-size: 0.4rem;
margin-left: -25px;
padding: 0 2px;
border-radius: var(--radius-xs);
top: 22px;
}
.markdown-preview-view h6:hover::before {
content: 'H6';
position: absolute;
font-size: 0.4rem;
margin-left: -25px;
padding: 0 2px;
border-radius: var(--radius-xs);
top: 22px;
}
/*=========================================================================================*/
/* Setting modal */
/* Settings headings*/
.setting-item-heading .setting-item-name,
.vertical-tab-header-group-title {
text-transform: uppercase;
}
/* Body boarder */
body {
--modal-border-color: var(--background-modifier-border);
}
/* Settings Icons */
/* Options Icon */
body:not(.setting-item-title-icon-remove):not(.is-phone) .vertical-tab-header-group .vertical-tab-header-group-title {
display: flex;
align-items: center;
color: #0066cc;
}
body:not(.setting-item-title-icon-remove):not(.is-phone) .vertical-tab-header-group:nth-last-of-type(3) .vertical-tab-header-group-title::before {
content: " ";
width: 16px;
height: 16px;
background-color: #0066cc;
margin-right: 4px;
-webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3e%3cg clip-path='url(%23a)'%3e%3cpath fill='black' d='m14.476 6.987-1.49-.445a5.177 5.177 0 0 0-.422-1.035l.73-1.365a.27.27 0 0 0-.05-.32l-1.062-1.066a.271.271 0 0 0-.32-.05l-1.355.725a5.165 5.165 0 0 0-1.05-.444l-.444-1.471a.271.271 0 0 0-.262-.183H7.25a.271.271 0 0 0-.258.191l-.444 1.467a5.169 5.169 0 0 0-1.058.445l-1.333-.72a.271.271 0 0 0-.32.048l-1.08 1.054a.271.271 0 0 0-.05.32l.72 1.333a5.169 5.169 0 0 0-.444 1.053l-1.47.445a.271.271 0 0 0-.192.258v1.502a.271.271 0 0 0 .191.258l1.48.444c.11.36.26.708.445 1.036l-.73 1.395a.271.271 0 0 0 .05.32l1.062 1.062a.271.271 0 0 0 .32.05l1.373-.734a5.25 5.25 0 0 0 1.022.418l.445 1.498a.27.27 0 0 0 .258.19h1.502a.271.271 0 0 0 .258-.19l.444-1.503a5.17 5.17 0 0 0 1.013-.417l1.383.737a.27.27 0 0 0 .32-.049l1.062-1.062a.27.27 0 0 0 .049-.32l-.738-1.378a5.17 5.17 0 0 0 .422-1.017l1.498-.445a.271.271 0 0 0 .191-.258V7.25a.271.271 0 0 0-.164-.262ZM8 10.444a2.444 2.444 0 1 1 0-4.888 2.444 2.444 0 0 1 0 4.888Z'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='a'%3e%3cpath fill='white' d='M0 0h16v16H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e");
}
/* Core Plugins Icon Icon */
body:not(.setting-item-title-icon-remove):not(.is-phone) .vertical-tab-header-group:nth-last-of-type(2) .vertical-tab-header-group-title::before {
content: " ";
width: 16px;
height: 16px;
background-color: currentColor;
margin-right: 4px;
-webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3e%3cg clip-path='url(%23a)'%3e%3cpath fill='black' d='M13.249 7.111h-.36V3.924A.889.889 0 0 0 12 3.036H9.333A2.284 2.284 0 0 0 7.338.889a2.222 2.222 0 0 0-2.45 2.147h-3.11a.889.889 0 0 0-.89.888v3.632h1.25A1.391 1.391 0 0 1 3.556 8.75a1.333 1.333 0 0 1-.347 1.027 1.334 1.334 0 0 1-.987.444H.89v3.925a.889.889 0 0 0 .889.889H12a.889.889 0 0 0 .889-.89v-2.59h.444a2.223 2.223 0 0 0 2.223-2.45 2.29 2.29 0 0 0-2.307-1.995Z'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='a'%3e%3cpath fill='white' d='M0 0h16v16H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e");
}
/* Community Plugins Icon Icon */
body:not(.setting-item-title-icon-remove):not(.is-phone) .vertical-tab-header-group:nth-last-of-type(1) .vertical-tab-header-group-title::before {
content: " ";
width: 16px;
height: 16px;
background-color: currentColor;
margin-right: 4px;
-webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3e%3cg fill='black' clip-path='url(%23a)'%3e%3cpath d='M13.249 7.111h-.36v-.267H9.88a1.636 1.636 0 0 1-1.436-2.448l.89-1.467A2.276 2.276 0 0 0 7.337.889a2.222 2.222 0 0 0-2.45 2.147h-3.11a.889.889 0 0 0-.89.888v3.632h1.25A1.391 1.391 0 0 1 3.556 8.75a1.333 1.333 0 0 1-.347 1.027 1.334 1.334 0 0 1-.987.444H.89v3.925a.889.889 0 0 0 .889.889H12a.889.889 0 0 0 .889-.89v-2.59h.444a2.223 2.223 0 0 0 2.223-2.45 2.29 2.29 0 0 0-2.307-1.995Z'/%3e%3cpath d='M11.933.507 9.391 4.889a.569.569 0 0 0 .489.889h5.089a.569.569 0 0 0 .489-.89L12.916.508a.57.57 0 0 0-.983 0Z'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='a'%3e%3cpath fill='white' d='M0 0h16v16H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e");
}
/* buttons*/
button.mod-cta {
background-color: var(--accent);
color: #ffffff;
font-weight: 600;
}
button.mod-cta:hover, button.mod-cta:focus {
background-color: var(--interactive-normal);
color: #000;
font-weight: 600;
}
/* Side Settings Tab*/
.vertical-tab-nav-item.is-active {
font-weight: 600;
}
/* Background colors */
/* Main Settings Area color*/
.horizontal-tab-content,
.vertical-tab-content {
background-color: #05033370;
}
/*=========================================================================================*/
/* ====== status bar====== */
body {
--status-bar-background: transparent;
--status-bar-border-color: transparent;
--status-bar-border-width: 0;
}
.status-bar {
padding: 0 16px 0 0;
width: calc(100% - 44px);
min-height: 16px;
}
.status-bar-item.mod-clickable:hover {
color: var(--status-bar-text-color);
}
.status-bar-item {
height: 24px;
}
/*=========================================================================================*/
/* Table styles */
/* Center table headers */
.markdown-rendered th {
text-align: center;
}
/* Table cells and headers */
.markdown-preview-view th,
.markdown-preview-view td {
/* Use theme-specific accent for subtle glow effect */
box-shadow: 0 0 0.2em var(--accent),
inset 0 0 0.2em var(--accent);
text-align: center;
padding: 8px; /* Added for better spacing */
border: 1px solid var(--background-modifier-border); /* Consistent border */
}
/* Table header background */
.markdown-rendered thead tr {
/* Use theme-specific h1 color with adjusted opacity */
background: hsla(var(--text-title-h1-h), var(--text-title-h1-s), var(--text-title-h1-l), 0.7);
}
/* Full-width tables */
body:not(.table-width-obsidian-default) .markdown-source-view.mod-cm6 .cm-table-widget .table-wrapper,
body:not(.table-width-obsidian-default) :is(.markdown-rendered, .markdown-source-view.mod-cm6.is-live-preview) table {
width: 100% ;
}
/* Define HSL components for text-title-h1 to support dynamic background */
.theme-dark {
--text-title-h1-h: 300; /* Derived from #e600e6 */
--text-title-h1-s: 100%;
--text-title-h1-l: 45%;
}
.theme-light {
--text-title-h1-h: 302; /* Derived from #cc00c4 */
--text-title-h1-s: 100%;
--text-title-h1-l: 40%;
}
/*=========================================================================================*/
/* divider */
body {
--workspace-divider-color: var(--text-accent);
}
/* divider vertical height */
.is-hidden-frameless .workspace-split.mod-vertical>*>.workspace-leaf-resize-handle,
.is-hidden-frameless .workspace-split.mod-left-split>.workspace-leaf-resize-handle,
.is-hidden-frameless .workspace-split.mod-right-split>.workspace-leaf-resize-handle {
height: calc(var(--divider-vertical-height) - var(--header-height) - 2px);
}
/*=========================================================================================*/
/* Pendulum Startup Animation */
body > .progress-bar-container .progress-bar-indicator {
height: 80px;
width: 20px;
color: rgb(8, 145, 178); /* Cyan from rainbow palette for high contrast */
background:
radial-gradient(farthest-side, currentColor 94%, transparent) top / 8px 8px,
linear-gradient(currentColor 0 0) top / 4px 70%,
conic-gradient(from -30deg at bottom, transparent, currentColor 2deg 58deg, transparent 60deg) bottom / 100% 20px,
conic-gradient(from 150deg at top, transparent, currentColor 2deg 58deg, transparent 60deg) bottom 20px left 0 / 100% 20px;
background-repeat: no-repeat;
transform-origin: 50% 4px;
animation: pendulum 2s infinite ease-in-out;
}
body > .progress-bar-container .progress-bar-indicator > * {
display: none;
}
@keyframes pendulum {
0% {
transform: rotate(-15deg);
}
50% {
transform: rotate(15deg);
}
100% {
transform: rotate(-15deg);
}
}
/*=========================================================================================*/
/* Tooltip Styling */
.tooltip {
background-color: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.95); /* Theme-specific accent, high opacity for solidity */
color: var(--text-normal); /* Ensures high contrast text */
word-wrap: break-word; /* Unchanged, allows text wrapping */
padding: var(--size-2-3); /* Consistent padding using theme variable */
font-size: var(--font-ui-small); /* Smaller font for tooltips, matches Obsidian defaults */
border-radius: 4px; /* Subtle rounding for polish */
}
/* Tooltip arrow for right-aligned tooltips */
.tooltip.mod-right .tooltip-arrow {
border-right: 5px solid hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.95);
}
/* Navigation Header Styling */
.nav-header {
padding: var(--size-2-3) var(--size-2-3) var(--size-2-1); /* Unchanged, uses Obsidian spacing variables */
background: var(--background-secondary); /* Theme-specific secondary background */
color: var(--text-normal); /* High contrast text */
font-weight: 600; /* Slightly bolder for hierarchy */
}
/*=========================================================================================*/
/* Title Styling */
/* Inline title (note title in editor) */
.inline-title {
text-align: center; /* Unchanged, centers the title */
color: var(--text-normal); /* #e6e6e6 dark, #1a1a1a light */
font-family: var(--default-font); /* Times New Roman, Times, serif */
font-size: 24px; /* Matches typical h1 size for prominence */
font-weight: 600; /* Bold to align with headers and UI elements */
padding: 8px 0; /* Adds vertical spacing for balance */
margin: 0; /* Removes default margins to prevent layout shifts */
}
/* Ensure title contrast in both themes */
.theme-dark .inline-title {
color: var(--text-normal); /* #e6e6e6 for high contrast */
}
.theme-light .inline-title {
color: var(--text-normal); /* #1a1a1a for high contrast */
}
/*=========================================================================================*/
/* Numbered Lists */
body {
--accent: rgb(8, 145, 178);
}
ol {
list-style: none;
counter-reset: li;
}
ol > li {
counter-increment: li;
transition: color 0.2s ease-in-out;
}
ol > li:hover {
color: rgba(248, 197, 55, 0.8);
}
ol li:not(.task-list-item)::before {
content: counter(li) ".";
color: var(--accent);
display: inline-block;
margin-left: -2.5em;
margin-right: 0.5em;
width: 2em;
text-align: right;
text-shadow: 0 0 0.3em var(--accent); /* Reduced blur for clarity */
}
/*=========================================================================================*/
/* Lists */
body {
--list-indent: 2em;
--list-spacing: 0.075em;
--list-bullet-size: 0.3em;
--list-bullet-size-alt: calc(var(--list-bullet-size) / 2);
--list-marker-color: rgb(8, 145, 178);
}
/* Level 1: Circle */
body:not(.ul-marker-restore) .markdown-rendered .has-list-bullet .list-bullet::after,
body:not(.ul-marker-restore) .markdown-source-view.mod-cm6 .HyperMD-list-line.HyperMD-list-line-1.cm-line div.cm-fold-indicator~span.cm-formatting .list-bullet::after,
body:not(.ul-marker-restore) .markdown-source-view.mod-cm6 .HyperMD-list-line.HyperMD-list-line-1.cm-line>span.cm-formatting:first-of-type .list-bullet::after {
--list-marker-color: rgb(8, 145, 178); /* Cyan from rainbow palette */
--list-bullet-radius: 50%;
}
/* Level 2: Square */
body:not(.ul-marker-restore) .markdown-rendered .has-list-bullet .has-list-bullet .list-bullet::after,
body:not(.ul-marker-restore) .markdown-source-view.mod-cm6 .HyperMD-list-line.HyperMD-list-line-2.cm-line div.cm-fold-indicator~span.cm-formatting .list-bullet::after,
body:not(.ul-marker-restore) .markdown-source-view.mod-cm6 .HyperMD-list-line.HyperMD-list-line-2.cm-line span.cm-hmd-list-indent~span.cm-formatting .list-bullet::after {
--list-marker-color: rgb(124, 58, 237); /* Purple from rainbow palette */
--list-bullet-radius: 0;
}
/* Level 3: Rotated Square */
body:not(.ul-marker-restore) .markdown-rendered .has-list-bullet .has-list-bullet .has-list-bullet .list-bullet::after,
body:not(.ul-marker-restore) .markdown-source-view.mod-cm6 .HyperMD-list-line.HyperMD-list-line-3.cm-line div.cm-fold-indicator~span.cm-formatting .list-bullet::after,
body:not(.ul-marker-restore) .markdown-source-view.mod-cm6 .HyperMD-list-line.HyperMD-list-line-3.cm-line span.cm-hmd-list-indent~span.cm-formatting .list-bullet::after {
--list-marker-color: rgb(220, 38, 38); /* Red from rainbow palette */
--list-bullet-radius: 0;
--list-bullet-transform: rotate(45deg);
}
/*=========================================================================================*/
/* img hover zoom out img*/
img:hover {
transform: scale(1.04);
transition: transform 0.25s ease-in-out 0s;
}
.community-theme img:hover {
transform: none;
}
/*=========================================================================================*/
/* Live Preview Line Numbers */
.theme-dark .markdown-source-view.mod-cm6 .cm-gutters {
color: #00ffff ; /* Matches accent text (#00e6e6) for dark theme */
background: var(--background-primary); /* Matches editor background (#1c1c2e) */
}
.theme-light .markdown-source-view.mod-cm6 .cm-gutters {
color: #00ffff ; /* Matches accent text (#00b7eb) for light theme */
background: var(--background-primary); /* Matches editor background (#f5f5f5) */
}
/*=========================================================================================*/
/* Graph View Styling for Both Themes */
/* Circle and line highlight (selected nodes/lines) */
.graph-view.color-circle,
.graph-view.color-line-highlight {
color: var(--background-secondary-alt);
border: 0;
}
/* Circle when hovered */
.graph-view.color-fill-highlight {
color: var(--background-secondary-alt); /* Matches h3 color (#ff8c00 dark/light) */
}
/* Node text */
.graph-view.color-text {
color: var(--text-normal); /* Matches h6 color (#cccc00 dark/light) */
}
/* Lines connecting nodes */
.graph-view.color-line {
color: var(--text-faint); /* Matches faint text (#8a8a8a dark, #999999 light) */
}
/* Circle when not hovered */
.graph-view.color-fill {
color: var(--text-accent); /* Matches accent text (#00e6e6 dark, #00b7eb light) */
}
/* Arrows */
.graph-view.color-arrow {
color: var(--text-title-h2); /* Matches h5 color (#e60000 dark, #cc0000 light) */
}
/* Tags */
.graph-view.color-fill-tag {
color: var(--text-title-h3); /* Matches h3 color (#ff8c00 dark/light) */
}
/* Attachments */
.graph-view.color-fill-attachment {
color: var(--text-title-h1); /* Matches h1 color (#e600e6 dark, #cc00c4 light) */
}
/* Unresolved links */
.graph-view.color-fill-unresolved {
color: var(--text-faint); /* Matches faint text (#8a8a8a dark, #999999 light) */
opacity: 0.7; /* Unchanged, subtle fade */
}
/* Node hover effects */
.graph-view .node:hover {
transform: scale(1.1);
}
/* Graph view background */
.theme-dark .workspace-leaf-content[data-type=graph] .view-content {
background-color: var(--background-primary); /* Matches dark theme background (#1c1c2e) */
}
.theme-light .workspace-leaf-content[data-type=graph] .view-content {
background-color: var(--background-primary-alt); /* Matches light theme alt background (#e6e6e6) */
}
/*=========================================================================================*/
/* Empty State */
body {
--empty-state-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' viewBox='0 0 20 20'%3e%3cpath fill='black' d='M13.32 7.155a4.375 4.375 0 0 1-5.7 6.517l5.7-6.517ZM10 5.625a4.375 4.375 0 0 0-3.32 7.22l5.704-6.514A4.35 4.35 0 0 0 10 5.625ZM18.125 10A8.125 8.125 0 1 1 10 1.875 8.135 8.135 0 0 1 18.125 10Zm-2.5 0a5.6 5.6 0 0 0-1.476-3.793l.382-.483a.626.626 0 1 0-.937-.823l-.384.483a5.625 5.625 0 0 0-7.36 8.409l-.381.483a.625.625 0 0 0 .937.823l.384-.483A5.621 5.621 0 0 0 15.625 10Z'/%3e%3c/svg%3e");
}
/* Empty State Layout */
.tag-pane-empty,
.bookmarks-pane-empty,
.pane-empty,
.search-empty-state {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
gap: 8px;
}
/* Empty State Icon */
.tag-pane-empty::before,
.bookmarks-pane-empty::before,
.pane-empty::before,
.search-empty-state::before {
content: "";
display: inline-block;
width: 48px;
height: 48px;
background-color: var(--icon-color); /* Cyan from rainbow palette */
-webkit-mask-size: contain;
-webkit-mask-position: center;
-webkit-mask-repeat: no-repeat;
-webkit-mask-image: var(--empty-state-image);
animation: pulse 2s infinite ease-in-out;
}
/* Pulse Animation for Empty State Icon */
@keyframes pulse {
0%, 100% {
transform: scale(1);
opacity: 0.8;
}
50% {
transform: scale(1.1);
opacity: 1;
}
}
/*=========================================================================================*/
/* Editor Styling */
/* Inline title styling */
body:not(.is-phone):not(.inline-title-divider-remove) .inline-title:not(.mk-inline-title) {
border-bottom: 1px solid var(--background-modifier-border); /* Theme-specific border (#4a4a6a dark, #b3b3b3 light) */
padding-bottom: var(--size-4-3); /* ~12px, Obsidian spacing variable */
margin-bottom: var(--size-4-3);
}
/* Heading collapse indicator positioning */
body:not(.heading-indicator-off) .markdown-preview-view .heading-collapse-indicator {
transform: translateX(-16px); /* Unchanged, shifts indicator left */
}
body:not(.heading-indicator-off) .is-live-preview .HyperMD-header .collapse-indicator.collapse-icon {
transform: translateX(-8px); /* Unchanged, shifts indicator in source mode */
}
/* Header text indent for indicators */
body:not(.heading-indicator-off) .markdown-rendered > :is(h1, h2, h3, h4, h5, h6),
body:not(.heading-indicator-off) .markdown-preview-sizer > div > :is(h1, h2, h3, h4, h5, h6) {
text-indent: 9px; /* Unchanged, accommodates indicator */
}
/* Print-specific header styling */
@media print {
:is(h1, h2, h3, h4, h5, h6) {
position: relative; /* Unchanged, ensures positioning context */
}
body:not(.heading-indicator-off) :is(h1, h2, h3, h4, h5, h6) {
text-indent: 9px; /* Unchanged, consistent with editor */
}
}
/* Header-specific styling (h1–h6) */
:is(h1, .markdown-rendered h1, .HyperMD-header-1, .inline-title[data-level='1'], .HyperMD-list-line .cm-header-1) {
text-transform: var(--h1-text-transform, none); /* Fallback to none if undefined */
}
:is(h2, .markdown-rendered h2, .HyperMD-header-2, .inline-title[data-level='2'], .HyperMD-list-line .cm-header-2) {
text-transform: var(--h2-text-transform, none);
}
:is(h3, .markdown-rendered h3, .HyperMD-header-3, .inline-title[data-level='3'], .HyperMD-list-line .cm-header-3) {
text-transform: var(--h3-text-transform, none);
}
:is(h4, .markdown-rendered h4, .HyperMD-header-4, .inline-title[data-level='4'], .HyperMD-list-line .cm-header-4) {
text-transform: var(--h4-text-transform, none);
}
:is(h5, .markdown-rendered h5, .HyperMD-header-5, .inline-title[data-level='5'], .HyperMD-list-line .cm-header-5) {
text-transform: var(--h5-text-transform, none);
}
:is(h6, .markdown-rendered h6, .HyperMD-header-6, .inline-title[data-level='6'], .HyperMD-list-line .cm-header-6) {
text-transform: var(--h6-text-transform, none);
}
/* Designated header colors */
.h1-color-designated { --h1-color: var(--text-title-h1) ; } /* #e600e6 dark, #cc00c4 light */
.h2-color-designated { --h2-color: var(--text-title-h2) ; } /* #00e6e6 dark, #00b7eb light */
.h3-color-designated { --h3-color: var(--text-title-h3) ; } /* #ff8c00 dark/light */
.h4-color-designated { --h4-color: var(--text-title-h4) ; } /* #3333ff dark, #0000cc light */
.h5-color-designated { --h5-color: var(--text-title-h5) ; } /* #e60000 dark, #cc0000 light */
.h6-color-designated { --h6-color: var(--text-title-h6) ; } /* #cccc00 dark/light */
/* Collapse indicator SVGs and colors */
body:not(.collapse-icon-restore) .is-live-preview .HyperMD-header .collapse-indicator.collapse-icon svg,
body:not(.collapse-icon-restore) :is(.markdown-rendered, .markdown-preview-view) :is(h1, h2, h3, h4, h5, h6) .collapse-indicator.collapse-icon svg {
transform: translateX(0px);
background-color: currentColor; /* Inherits header color */
}
/* Theme-specific collapse indicator colors for collapsed state */
.theme-dark body:not(.collapse-icon-restore) .is-live-preview :is(.HyperMD-header-1.is-collapsed, .HyperMD-header-2.is-collapsed, .HyperMD-header-3.is-collapsed, .HyperMD-header-4.is-collapsed, .HyperMD-header-5.is-collapsed, .HyperMD-header-6.is-collapsed) .collapse-indicator.collapse-icon svg,
.theme-dark body:not(.collapse-icon-restore) :is(.markdown-rendered, .markdown-preview-view) .is-collapsed :is(h1, h2, h3, h4, h5, h6) .collapse-indicator.collapse-icon svg {
background-color: var(--text-title-h1); /* Use h1 color (#e600e6) for all collapsed indicators */
color: var(--text-title-h1);
}
.theme-light body:not(.collapse-icon-restore) .is-live-preview :is(.HyperMD-header-1.is-collapsed, .HyperMD-header-2.is-collapsed, .HyperMD-header-3.is-collapsed, .HyperMD-header-4.is-collapsed, .HyperMD-header-5.is-collapsed, .HyperMD-header-6.is-collapsed) .collapse-indicator.collapse-icon svg,
.theme-light body:not(.collapse-icon-restore) :is(.markdown-rendered, .markdown-preview-view) .is-collapsed :is(h1, h2, h3, h4, h5, h6) .collapse-indicator.collapse-icon svg {
background-color: var(--text-title-h1); /* Use h1 color (#cc00c4) for all collapsed indicators */
}
/* SVG icons for collapse indicators (unchanged) */
body:not(.collapse-icon-restore) .is-live-preview .HyperMD-header-1 .collapse-indicator.collapse-icon svg,
body:not(.collapse-icon-restore) :is(.markdown-rendered, .markdown-preview-view) h1 .collapse-indicator.collapse-icon svg {
-webkit-mask-image: url('data:image/svg+xml;utf8,');
}
body:not(.collapse-icon-restore) .is-live-preview .HyperMD-header-2 .collapse-indicator.collapse-icon svg,
body:not(.collapse-icon-restore) :is(.markdown-rendered, .markdown-preview-view) h2 .collapse-indicator.collapse-icon svg {
-webkit-mask-image: url('data:image/svg+xml;utf8,');
}
body:not(.collapse-icon-restore) .is-live-preview .HyperMD-header-3 .collapse-indicator.collapse-icon svg,
body:not(.collapse-icon-restore) :is(.markdown-rendered, .markdown-preview-view) h3 .collapse-indicator.collapse-icon svg {
-webkit-mask-image: url('data:image/svg+xml;utf8,');
}
body:not(.collapse-icon-restore) .is-live-preview .HyperMD-header-4 .collapse-indicator.collapse-icon svg,
body:not(.collapse-icon-restore) :is(.markdown-rendered, .markdown-preview-view) h4 .collapse-indicator.collapse-icon svg {
-webkit-mask-image: url('data:image/svg+xml;utf8,');
}
body:not(.collapse-icon-restore) .is-live-preview .HyperMD-header-5 .collapse-indicator.collapse-icon svg,
body:not(.collapse-icon-restore) :is(.markdown-rendered, .markdown-preview-view) h5 .collapse-indicator.collapse-icon svg {
-webkit-mask-image: url('data:image/svg+xml;utf8,');
}
body:not(.collapse-icon-restore) .is-live-preview .HyperMD-header-6 .collapse-indicator.collapse-icon svg,
body:not(.collapse-icon-restore) :is(.markdown-rendered, .markdown-preview-view) h6 .collapse-indicator.collapse-icon svg {
-webkit-mask-image: url('data:image/svg+xml;utf8,');
}
/* Header indicators (colored bars) */
body:not(.heading-indicator-off) .is-live-preview :is(.HyperMD-header-1, .HyperMD-header-2, .HyperMD-header-3, .HyperMD-header-4, .HyperMD-header-5, .HyperMD-header-6)::before {
margin-right: 6px;
content: " ";
display: inline-block;
width: 3px;
height: calc(1.2em - 8px); /* Unified height for consistency */
border-radius: var(--radius-m); /* ~4px, Obsidian variable */
transform: translateY(4px);
}
body:not(.heading-indicator-off) .markdown-rendered > :is(h1, h2, h3, h4, h5, h6)::before,
body:not(.heading-indicator-off) .markdown-preview-sizer > div > :is(h1, h2, h3, h4, h5, h6)::before {
margin-right: 6px;
content: " ";
display: inline-block;
width: 3px;
height: calc(1.2em - 8px);
border-radius: var(--radius-m);
position: absolute;
top: 4px;
left: 0px;
}
/* Theme-specific indicator colors */
.theme-dark body:not(.heading-indicator-off) .is-live-preview .HyperMD-header-1::before,
.theme-dark body:not(.heading-indicator-off) .markdown-rendered > h1::before,
.theme-dark body:not(.heading-indicator-off) .markdown-preview-sizer > div > h1::before {
background-color: var(--text-title-h1); /* #e600e6 */
}
.theme-dark body:not(.heading-indicator-off) .is-live-preview .HyperMD-header-2::before,
.theme-dark body:not(.heading-indicator-off) .markdown-rendered > h2::before,
.theme-dark body:not(.heading-indicator-off) .markdown-preview-sizer > div > h2::before {
background-color: var(--text-title-h2); /* #00e6e6 */
}
.theme-dark body:not(.heading-indicator-off) .is-live-preview .HyperMD-header-3::before,
.theme-dark body:not(.heading-indicator-off) .markdown-rendered > h3::before,
.theme-dark body:not(.heading-indicator-off) .markdown-preview-sizer > div > h3::before {
background-color: var(--text-title-h3); /* #ff8c00 */
}
.theme-dark body:not(.heading-indicator-off) .is-live-preview .HyperMD-header-4::before,
.theme-dark body:not(.heading-indicator-off) .markdown-rendered > h4::before,
.theme-dark body:not(.heading-indicator-off) .markdown-preview-sizer > div > h4::before {
background-color: var(--text-title-h4); /* #3333ff */
}
.theme-dark body:not(.heading-indicator-off) .is-live-preview .HyperMD-header-5::before,
.theme-dark body:not(.heading-indicator-off) .markdown-rendered > h5::before,
.theme-dark body:not(.heading-indicator-off) .markdown-preview-sizer > div > h5::before {
background-color: var(--text-title-h5); /* #e60000 */
}
.theme-dark body:not(.heading-indicator-off) .is-live-preview .HyperMD-header-6::before,
.theme-dark body:not(.heading-indicator-off) .markdown-rendered > h6::before,
.theme-dark body:not(.heading-indicator-off) .markdown-preview-sizer > div > h6::before {
background-color: var(--text-title-h6); /* #cccc00 */
}
.theme-light body:not(.heading-indicator-off) .is-live-preview .HyperMD-header-1::before,
.theme-light body:not(.heading-indicator-off) .markdown-rendered > h1::before,
.theme-light body:not(.heading-indicator-off) .markdown-preview-sizer > div > h1::before {
background-color: var(--text-title-h1); /* #cc00c4 */
}
.theme-light body:not(.heading-indicator-off) .is-live-preview .HyperMD-header-2::before,
.theme-light body:not(.heading-indicator-off) .markdown-rendered > h2::before,
.theme-light body:not(.heading-indicator-off) .markdown-preview-sizer > div > h2::before {
background-color: var(--text-title-h2); /* #00b7eb */
}
.theme-light body:not(.heading-indicator-off) .is-live-preview .HyperMD-header-3::before,
.theme-light body:not(.heading-indicator-off) .markdown-rendered > h3::before,
.theme-light body:not(.heading-indicator-off) .markdown-preview-sizer > div > h3::before {
background-color: var(--text-title-h3); /* #ff8c00 */
}
.theme-light body:not(.heading-indicator-off) .is-live-preview .HyperMD-header-4::before,
.theme-light body:not(.heading-indicator-off) .markdown-rendered > h4::before,
.theme-light body:not(.heading-indicator-off) .markdown-preview-sizer > div > h4::before {
background-color: var(--text-title-h4); /* #0000cc */
}
.theme-light body:not(.heading-indicator-off) .is-live-preview .HyperMD-header-5::before,
.theme-light body:not(.heading-indicator-off) .markdown-rendered > h5::before,
.theme-light body:not(.heading-indicator-off) .markdown-preview-sizer > div > h5::before {
background-color: var(--text-title-h5); /* #cc0000 */
}
.theme-light body:not(.heading-indicator-off) .is-live-preview .HyperMD-header-6::before,
.theme-light body:not(.heading-indicator-off) .markdown-rendered > h6::before,
.theme-light body:not(.heading-indicator-off) .markdown-preview-sizer > div > h6::before {
background-color: var(--text-title-h6); /* #cccc00 */
}
/* Header dividers */
body:is(.h2-divider-on, .h3-divider-on, .h4-divider-on, .h5-divider-on, .h6-divider-on) :is(.markdown-rendered, .markdown-preview-sizer > div, .is-live-preview) :is(h2, h3, h4, h5, h6)::after {
content: "";
position: absolute;
height: 1px;
width: 100%;
right: 0;
opacity: 0.5;
bottom: 0;
}
/* Theme-specific divider colors */
.theme-dark body.h2-divider-on :is(.markdown-rendered > h2, .markdown-preview-sizer > div > h2, .HyperMD-header-2)::after {
background-image: linear-gradient(to left, var(--text-title-h2) 30%, transparent 70%); /* #00e6e6 */
}
.theme-dark body.h3-divider-on :is(.markdown-rendered > h3, .markdown-preview-sizer > div > h3, .HyperMD-header-3)::after {
background-image: linear-gradient(to left, var(--text-title-h3) 30%, transparent 70%); /* #ff8c00 */
}
.theme-dark body.h4-divider-on :is(.markdown-rendered > h4, .markdown-preview-sizer > div > h4, .HyperMD-header-4)::after {
background-image: linear-gradient(to left, var(--text-title-h4) 30%, transparent 70%); /* #3333ff */
}
.theme-dark body.h5-divider-on :is(.markdown-rendered > h5, .markdown-preview-sizer > div > h5, .HyperMD-header-5)::after {
background-image: linear-gradient(to left, var(--text-title-h5) 30%, transparent 70%); /* #e60000 */
}
.theme-dark body.h6-divider-on :is(.markdown-rendered > h6, .markdown-preview-sizer > div > h6, .HyperMD-header-6)::after {
background-image: linear-gradient(to left, var(--text-title-h6) 30%, transparent 70%); /* #cccc00 */
}
.theme-light body.h2-divider-on :is(.markdown-rendered > h2, .markdown-preview-sizer > div > h2, .HyperMD-header-2)::after {
background-image: linear-gradient(to left, var(--text-title-h2) 30%, transparent 70%); /* #00b7eb */
}
.theme-light body.h3-divider-on :is(.markdown-rendered > h3, .markdown-preview-sizer > div > h3, .HyperMD-header-3)::after {
background-image: linear-gradient(to left, var(--text-title-h3) 30%, transparent 70%); /* #ff8c00 */
}
.theme-light body.h4-divider-on :is(.markdown-rendered > h4, .markdown-preview-sizer > div > h4, .HyperMD-header-4)::after {
background-image: linear-gradient(to left, var(--text-title-h4) 30%, transparent 70%); /* #0000cc */
}
.theme-light body.h5-divider-on :is(.markdown-rendered > h5, .markdown-preview-sizer > div > h5, .HyperMD-header-5)::after {
background-image: linear-gradient(to left, var(--text-title-h5) 30%, transparent 70%); /* #cc0000 */
}
.theme-light body.h6-divider-on :is(.markdown-rendered > h6, .markdown-preview-sizer > div > h6, .HyperMD-header-6)::after {
background-image: linear-gradient(to left, var(--text-title-h6) 30%, transparent 70%); /* #cccc00 */
}
/* Print-specific indicator and divider styling */
@media print {
body:not(.heading-indicator-off) :is(h1, h2, h3, h4, h5, h6)::before {
margin-right: 6px;
content: " ";
display: inline-block;
width: 3px;
height: calc(1.2em - 8px);
border-radius: var(--radius-m);
position: absolute;
top: 4px;
left: 0px;
}
.theme-dark body:not(.heading-indicator-off) h1::before { background-color: var(--text-title-h1); }
.theme-dark body:not(.heading-indicator-off) h2::before { background-color: var(--text-title-h2); }
.theme-dark body:not(.heading-indicator-off) h3::before { background-color: var(--text-title-h3); }
.theme-dark body:not(.heading-indicator-off) h4::before { background-color: var(--text-title-h4); }
.theme-dark body:not(.heading-indicator-off) h5::before { background-color: var(--text-title-h5); }
.theme-dark body:not(.heading-indicator-off) h6::before { background-color: var(--text-title-h6); }
.theme-light body:not(.heading-indicator-off) h1::before { background-color: var(--text-title-h1); }
.theme-light body:not(.heading-indicator-off) h2::before { background-color: var(--text-title-h2); }
.theme-light body:not(.heading-indicator-off) h3::before { background-color: var(--text-title-h3); }
.theme-light body:not(.heading-indicator-off) h4::before { background-color: var(--text-title-h4); }
.theme-light body:not(.heading-indicator-off) h5::before { background-color: var(--text-title-h5); }
.theme-light body:not(.heading-indicator-off) h6::before { background-color: var(--text-title-h6); }
body:is(.h2-divider-on, .h3-divider-on, .h4-divider-on, .h5-divider-on, .h6-divider-on) h2::after,
body:is(.h2-divider-on, .h3-divider-on, .h4-divider-on, .h5-divider-on, .h6-divider-on) h3::after,
body:is(.h2-divider-on, .h3-divider-on, .h4-divider-on, .h5-divider-on, .h6-divider-on) h4::after,
body:is(.h2-divider-on, .h3-divider-on, .h4-divider-on, .h5-divider-on, .h6-divider-on) h5::after,
body:is(.h2-divider-on, .h3-divider-on, .h4-divider-on, .h5-divider-on, .h6-divider-on) h6::after {
content: "";
position: absolute;
height: 1px;
width: 100%;
right: 0;
opacity: 0.5;
bottom: 0;
}
.theme-dark body.h2-divider-on h2::after { background-image: linear-gradient(to left, var(--text-title-h2) 30%, transparent 70%); }
.theme-dark body.h3-divider-on h3::after { background-image: linear-gradient(to left, var(--text-title-h3) 30%, transparent 70%); }
.theme-dark body.h4-divider-on h4::after { background-image: linear-gradient(to left, var(--text-title-h4) 30%, transparent 70%); }
.theme-dark body.h5-divider-on h5::after { background-image: linear-gradient(to left, var(--text-title-h5) 30%, transparent 70%); }
.theme-dark body.h6-divider-on h6::after { background-image: linear-gradient(to left, var(--text-title-h6) 30%, transparent 70%); }
.theme-light body.h2-divider-on h2::after { background-image: linear-gradient(to left, var(--text-title-h2) 30%, transparent 70%); }
.theme-light body.h3-divider-on h3::after { background-image: linear-gradient(to left, var(--text-title-h3) 30%, transparent 70%); }
.theme-light body.h4-divider-on h4::after { background-image: linear-gradient(to left, var(--text-title-h4) 30%, transparent 70%); }
.theme-light body.h5-divider-on h5::after { background-image: linear-gradient(to left, var(--text-title-h5) 30%, transparent 70%); }
.theme-light body.h6-divider-on h6::after { background-image: linear-gradient(to left, var(--text-title-h6) 30%, transparent 70%); }
}
/*=========================================================================================*/
/* Horizontal Rule */
/* Define fleuron SVG globally for both themes */
body {
--fleuron: url('data:image/svg+xml;utf8,');
}
/* Horizontal rule styling for source and preview modes */
.markdown-source-view hr,
.markdown-preview-view hr:not(.footnotes hr) {
--hr-height: calc(1em * var(--line-height-normal)); /* Unchanged, ~1em */
--ornament-size: calc(1em * var(--line-height-normal)); /* Unchanged, ~1em */
--ornament-right: 60px; /* Unchanged, positioning for fleuron */
--ornament-padding: 5px; /* Unchanged, padding around fleuron */
--hr-thickness: 1px; /* Unchanged, line thickness */
border: none; /* Unchanged, removes default border */
height: calc(var(--hr-height) + var(--hr-thickness)); /* Unchanged, total height */
}
/* Theme-specific horizontal rule colors */
.theme-dark .markdown-source-view hr,
.theme-dark .markdown-preview-view hr:not(.footnotes hr) {
background-color: var(--accent); /* Uses dark theme accent (#1e90ff) */
-webkit-mask-image: linear-gradient(to right, transparent, black 100px, black calc(100% - var(--ornament-right) - var(--ornament-padding) - 10px), transparent calc(100% - var(--ornament-right) - var(--ornament-padding)), transparent calc(100% - var(--ornament-right) + var(--ornament-size) + var(--ornament-padding)), black calc(100% - var(--ornament-right) + var(--ornament-size) + var(--ornament-padding) + 10px), black), var(--fleuron);
-webkit-mask-size: 100% var(--hr-thickness), var(--ornament-size);
-webkit-mask-position: center, calc(100% - var(--ornament-right) + var(--ornament-size)) center;
-webkit-mask-repeat: no-repeat;
}
.theme-light .markdown-source-view hr,
.theme-light .markdown-preview-view hr:not(.footnotes hr) {
background-color: var(--accent); /* Uses light theme accent (#0066cc) */
-webkit-mask-image: linear-gradient(to right, transparent, black 100px, black calc(100% - var(--ornament-right) - var(--ornament-padding) - 10px), transparent calc(100% - var(--ornament-right) - var(--ornament-padding)), transparent calc(100% - var(--ornament-right) + var(--ornament-size) + var(--ornament-padding)), black calc(100% - var(--ornament-right) + var(--ornament-size) + var(--ornament-padding) + 10px), black), var(--fleuron);
-webkit-mask-size: 100% var(--hr-thickness), var(--ornament-size);
-webkit-mask-position: center, calc(100% - var(--ornament-right) + var(--ornament-size)) center;
-webkit-mask-repeat: no-repeat;
}
/*=========================================================================================*/
/* Links */
body {
--link-decoration: doodle;
}
@container style(--link-decoration: doodle) {
.cm-hmd-internal-link,
.internal-link:not(:is(.metadata-container .internal-link)) {
position: relative;
}
.cm-hmd-internal-link:hover::after,
.internal-link:not(:is(.metadata-container .internal-link)):hover::after {
content: "";
position: absolute;
transition: bottom 0.3s;
left: 0;
right: 0;
bottom: -0.3em;
height: 0.34em;
background-color: gold; /*var(--link-color-hover);*/
-webkit-mask-image: url("data:image/svg+xml,");
-webkit-mask-size: auto 100%;
-webkit-mask-repeat: repeat no-repeat;
}
}
@container style(--link-external-decoration: doodle) {
.cm-url,
.cm-link,
.external-link:not(:is(.metadata-container .external-link)) {
position: relative;
}
.cm-url:hover::after,
.cm-link:hover::after,
.external-link:not(:is(.metadata-container .external-link)):hover::after {
content: "";
position: absolute;
transition: bottom 0.3s;
left: 0;
right: 0;
bottom: -0.3em;
height: 0.34em;
background-color: var(--link-color-hover);
-webkit-mask-image: url("data:image/svg+xml,");
-webkit-mask-size: auto 100%;
-webkit-mask-repeat: repeat no-repeat;
}
}
body {
--link-decoration-hover: var(--link-decoration);
--link-external-decoration: underline;
--link-external-decoration-hover: var(--link-external-decoration);
--link-decoration-thickness: 2px;
--link-decoration-thickness-hover: 1px;
}
@container not style(--link-decoration: doodle) {
.cm-hmd-internal-link .cm-underline,
.markdown-rendered .internal-link:not(:is(.metadata-container .internal-link)),
.internal-link:not(:is(.metadata-container .internal-link)) {
text-underline-offset: 0.2em;
transition: text-underline-offset 0.3s, opacity 0.15s ease-in-out;
}
.cm-hmd-internal-link .cm-underline:hover,
.markdown-rendered .internal-link:not(:is(.metadata-container .internal-link)):hover,
.internal-link:not(:is(.metadata-container .internal-link)):hover {
text-underline-offset: calc(0.4em + var(--link-decoration-thickness) - var(--link-decoration-thickness-hover));
text-decoration-thickness: var(--link-decoration-thickness-hover);
}
}
@container not style(--link-external-decoration: none) {
.cm-url .cm-underline,
.cm-link .cm-underline,
.external-link:not(:is(.metadata-container .external-link)) {
text-underline-offset: 0.2em;
transition: text-underline-offset 0.3s, opacity 0.15s ease-in-out;
}
.cm-url .cm-underline:hover,
.cm-link .cm-underline:hover,
.external-link:not(:is(.metadata-container .external-link)):hover {
text-underline-offset: calc(0.4em + var(--link-decoration-thickness) - var(--link-decoration-thickness-hover));
text-decoration-thickness: var(--link-decoration-thickness-hover);
}
}
.cm-s-obsidian span.cm-url, .cm-s-obsidian span.cm-url:hover,
.cm-s-obsidian span.cm-link,
.cm-s-obsidian span.cm-link:hover,
.cm-s-obsidian span.cm-hmd-internal-link,
.cm-s-obsidian span.cm-hmd-internal-link:hover {
text-decoration-line: none;
}
.external-link {
background-position: top right;
background-size: 10px;
padding-inline-end: 13px;
}
.markdown-source-view.mod-cm6 .is-unresolved .cm-underline,
.markdown-source-view.mod-cm6 .cm-underline.is-unresolved,
.markdown-source-view.mod-cm6 .cm-underline {
text-decoration-line: underline;
text-decoration-thickness: 2px;
color: var(--text-normal);
text-decoration-color: var(--color-accent);
text-decoration-skip-ink: none;
font-weight: 600;
}
.markdown-rendered .internal-link {
text-decoration-line: underline;
text-decoration-thickness: 2px;
color: var(--text-normal);
text-decoration-color: var(--color-accent);
text-decoration-skip-ink: none;
font-weight: 600;
}
.markdown-rendered .internal-link:hover {
text-decoration: none;
color: var(--text-accent);
font-weight: 600;
}
.external-link {
text-decoration-line: underline;
text-decoration-thickness: 2px;
color: var(--text-normal);
text-decoration-color: var(--color-accent);
text-decoration-skip-ink: none;
font-weight: 600;
}
.external-link:hover {
text-decoration: none;
color: var(--text-accent);
font-weight: 600;
}
/*=========================================================================================*/
/* Text Emphasis */
/* Italic emphasis (, .cm-em) */
.theme-dark .cm-s-obsidian .cm-em,
.theme-dark .markdown-preview-view em {
color: var(--text-title-h6); /* Matches h6 color (#cccc00) for dark theme */
font-style: italic;
font-weight: 600;
}
.theme-light .cm-s-obsidian .cm-em,
.theme-light .markdown-preview-view em {
color: var(--text-title-h4); /* Matches h6 color (#cccc00) for light theme */
font-style: italic;
font-weight: 600;
}
/* Bold emphasis (, .cm-strong) */
.theme-dark .cm-s-obsidian .cm-strong,
.theme-dark .markdown-preview-view strong {
color: var(--text-title-h2); /* Matches h2 color (#00e6e6) for dark theme */
font-weight: 700;
}
.theme-light .cm-s-obsidian .cm-strong,
.theme-light .markdown-preview-view strong {
color: var(--text-title-h2); /* Matches h2 color (#00b7eb) for light theme */
font-weight: 700;
}
/* Combined emphasis (, .cm-em.cm-strong) */
.theme-dark .cm-s-obsidian .cm-em.cm-strong,
.theme-dark .markdown-preview-view strong > em,
.theme-dark .markdown-preview-view em > strong {
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
padding: 0;
background-image: linear-gradient(62deg, var(--text-title-h2) 0%, var(--text-title-h6) 100%); /* Gradient from h2 to h6 colors */
}
.theme-light .cm-s-obsidian .cm-em.cm-strong,
.theme-light .markdown-preview-view strong > em,
.theme-light .markdown-preview-view em > strong {
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
padding: 0;
background-image: linear-gradient(62deg, var(--text-title-h2) 0%, var(--text-title-h4) 100%); /* Gradient from h2 to h6 colors */
}
/*=========================================================================================*/
/* Embedded Images */
img {
display: block;
margin: 0 auto;
max-width: 100%; /* Prevent overflow */
border: 1px solid var(--accent); /* Cyan border for contrast */
border-radius: 6px; /* Matches clickable-icon-radius */
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
img:hover {
transform: scale(1.02); /* Slight scale for interactivity */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}
/*=========================================================================================*/
/* Accessibility Focus Styles */
a:focus, button:focus, input:focus, textarea:focus {
outline: 2px solid var(--interactive-accent);
}
/* Print-specific header styling */
@media print {
:is(h1, h2, h3, h4, h5, h6) {
position: relative; /* Unchanged, ensures positioning context */
}
body:not(.heading-indicator-off) :is(h1, h2, h3, h4, h5, h6) {
text-indent: 9px; /* Unchanged, consistent with editor */
}
:is(h1::before, h2::before, h3::before, h4::before, h5::before, h6::before) {
margin-right: 6px;
content: " ";
display: inline-block;
width: 3px;
height: calc(1.2em - 8px);
border-radius: var(--radius-m);
position: absolute;
top: 4px;
left: 0px;
}
h1::before { background-color: var(--h1-color); }
h2::before { background-color: var(--h2-color); }
h3::before { background-color: var(--h3-color); }
h4::before { background-color: var(--h4-color); }
h5::before { background-color: var(--h5-color); }
h6::before { background-color: var(--h6-color); }
body:is(.h2-divider-on, .h3-divider-on, .h4-divider-on, .h5-divider-on, .h6-divider-on) :is(h2, h3, h4, h5, h6)::after {
content: "";
position: absolute;
height: 1px;
width: 100%;
right: 0;
opacity: 0.5;
bottom: 0;
}
body.h2-divider-on h2::after { background-image: linear-gradient(to left, var(--h2-color) 30%, transparent 70%); }
body.h3-divider-on h3::after { background-image: linear-gradient(to left, var(--h3-color) 30%, transparent 70%); }
body.h4-divider-on h4::after { background-image: linear-gradient(to left, var(--h4-color) 30%, transparent 70%); }
body.h5-divider-on h5::after { background-image: linear-gradient(to left, var(--h5-color) 30%, transparent 70%); }
body.h6-divider-on h6::after { background-image: linear-gradient(to left, var(--h6-color) 30%, transparent 70%); }
}
body {
/* Callouts */
--callout-border-width: 1px;
--callout-border-opacity: 1;
--callout-padding: 16px 24px 0 24px;
}