/*----------------------------------------------------------------
DISCORDIAN THEME version 0.8.6
small tweaks by caezium
----------------------------------------------------------------*/
:root {
--default-font: Catamaran, Helvetica Neue, Helvetica, Arial, sans-serif;
--font-editor: Catamaran SSm, Helvetica Neue, Helvetica, Arial, sans-serif;
--font-monospace: Consolas, Andale Mono, Lucida Console, Source Code Pro, iA Writer Mono S, Jetbrains Mono, Menlo, SFMono-Regular, Lucida Sans Typewriter, DejaVu Sans Mono, Bitstream Vera Sans Mono, Liberation Mono, Nimbus Mono L, Monaco, Courier New, Courier, monospace;
/* discord palette */
--discord-green: hsla(153, 46%, 49%, 1);
--discord-yellow: hsla(38, 96%, 54%, 1);
--discord-yellow-alt: hsla(37, 65%, 63%, 1);
--discord-yellow-light: hsla(50, 42%, 48%, 1);
--discord-yellow-bg: hsla(38, 96%, 54%, 0.1);
--discord-orange: hsla(20, 84%, 52%, 1);
--discord-orange-light: hsla(24, 90%, 61%, 1);
--discord-red: hsla(0, 85%, 61%, 1);
--discord-red-hover: hsla(0, 66%, 55%, 1);
--discord-blue: hsla(227, 58%, 65%, 1);
--discord-blue-hover: hsla(227, 44%, 59%, 1);
--discord-grey: hsla(214, 10%, 50%, 1);
--discord-grey-hover: hsla(214, 10%, 45%, 1);
--discord-grey-toggle: hsla(218, 5%, 47%, 1);
--discord-dark: hsla(216, 7%, 14%, 1);
--discord-dark-hover: hsla(216, 7%, 14%, 0.7);
--elevation-stroke: 0 1px 0 1px hsla(240, 11%, 2%, 0.1);
--elevation-low: 0 1px 0 hsla(240, 11%, 2%, 0.2), 0 1.5px 0 hsla(240, 8%, 3%, 0.05), 0 2px 0 hsla(240, 11%, 2%, 0.05);
--elevation-medium: 0 4px 4px hsla(0, 0%, 0%, 0.16);
--elevation-high: 0 8px 16px hsla(0, 0%, 0%, 0.24);
--readable-line-length: 45rem;
--font-size-notes: 1rem;
--font-size-file-explorer: 0.875rem;
--letter-spacing-notes: -0.2px;
}
.theme-dark {
--background-primary: #2E3035;
--background-primary-alt: hsla(232, 14%, 31%, 1);
--background-secondary: #2B2D31;
--background-secondary-alt: hsla(216, 7%, 14%, 1);
--background-tertiary: #1E1F22;
--background-accent: hsla(217, 8%, 34%, 1);
--background-code: hsla(204, 6%, 17%, 1);
--background-code-preview: hsla(204, 6%, 17%, 1);
--background-code-border: hsla(0, 0%, 16%, 1);
--background-modifier-cover: hsla(220, 8%, 23%, 1);
--background-modifier-hover: hsla(217, 8%, 34%, 0.16);
--background-modifier-active: hsla(217, 8%, 34%, 0.24);
--background-modifier-selected: hsla(217, 8%, 34%, 0.32);
--background-modifier-accent: hsla(0, 0%, 100%, 0.06);
--background-modifier-error: var(--discord-red);
--background-modifier-error-hover: var(--discord-red-hover);
--background-modifier-form-field: hsla(0, 0%, 0%, 0.2);
--background-modifier-form-field-highlighted: hsla(0, 0%, 0%, 0.2);
--background-modifier-border: var(--background-secondary-alt);
--text-normal: hsla(213, 3%, 82%, 1);
--text-muted: hsla(213, 4%, 57%, 1);
--text-faint: hsla(0, 0%, 61%, 1);
--text-link: hsla(197, 100%, 48%, 1);
--text-accent: hsla(265, 66%, 72%, 1);
--text-on-accent: hsla(210, 3%, 87%, 1);
--text-selection: hsla(212, 34%, 54%, 0.5);
--text-highlight-bg: hsla(212, 34%, 54%, 1);
--text-linenumber: hsla(216, 3%, 32%, 0.85);
--text-linenumber-active: hsla(0, 0%, 61%, 0.85);
--text-strong: var(--discord-yellow-alt);
--text-em: hsla(62, 31%, 61%, 1);
--text-tag: hsla(27, 100%, 63%, 0.73);
--text-mark: hsla(37, 82%, 74%, 1);
--markup-code: hsla(34, 89%, 61%, 1);
--text-header: hsla(233, 45%, 69%, 1);
--text-title-h1: hsla(243, 35%, 65%, 1);
--text-title-h2: var(--text-header);
--text-title-h3: var(--text-header);
--text-title-h4: var(--text-header);
--text-title-h5: var(--text-header);
--text-title-h6: hsla(192, 13%, 53%, 1);
--text-a: hsla(322, 65%, 70%, 1);
--text-a-hover: hsla(327, 100%, 77%, 1);
--blockquote-border: hsla(286, 22%, 66%, 1);
--blockquote-bg: hsla(240, 11%, 2%, 0.07);
--scrollbar-bg: transparent;
--scrollbar-thin-thumb: hsla(216, 7%, 14%, 1);
--scrollbar-thin-track: transparent;
--scrollbar-auto-thumb: hsla(216, 7%, 14%, 1);
--scrollbar-auto-track: hsla(210, 10%, 20%, 1);
--scrollbar-auto-scrollbar-color-thumb: hsla(216, 7%, 14%, 1);
--scrollbar-auto-scrollbar-color-track: hsla(223, 7%, 20%, 1);
--cursor: default;
--opacity-translucency: 1;
--graph-line: hsla(191, 57%, 35%, 1);
--graph-line-highlight: hsla(191, 57%, 59%, 1);
--graph-circle-outline: transparent;
--graph-circle-fill: hsla(59, 99%, 50%, 1);
--graph-circle-fill-highlight: hsla(59, 99%, 50%, 1);
--graph-circle-fill-unresolved: hsla(206, 89%, 71%, 1);
--graph-fill-tag: hsla(250, 100%, 77%, 1);
--graph-fill-attachment: hsla(314, 57%, 63%, 1);
--graph-arrow: hsla(314, 57%, 63%, 1);
}
/*right panel dif color*/
.mod-right-split .view-content, .mod-right-split .workspace-leaf-content {
background-color: #232428;
}
/*codeblocks*/
/*----------------------------------------------------------------
CODEBLOCKS & INLINE CODE
----------------------------------------------------------------*/
code,
.cm-inline-code {
padding: 2px 1px;
}
/*----------------------------------------------------------------
editor */
.cm-s-obsidian span.cm-inline-code:not(.cm-formatting):not(.cm-hmd-indented-code):not(.obsidian-search-match-highlight) {
color: var(--markup-code);
font-size: 95%;
background-color: var(--discord-yellow-bg);
}
.cm-s-obsidian span.cm-inline-code {
color: var(--markup-code);
font-size: 95%;
background-color: var(--discord-yellow-bg);
border-radius: 3px;
padding-top: 4px;
padding-bottom: 1px;
}
.cm-s-obsidian span.cm-inline-code.cm-inline-code {
margin-left: 0;
}
span.cm-inline-code.cm-hmd-indented-code,
.cm-s-obsidian span.cm-inline-code.cm-hmd-indented-code {
background-color: unset !important;
color: var(--text-normal);
padding: 0.2rem 0;
}
.cm-s-obsidian span.cm-formatting-code.cm-inline-code {
border-right-width: 0;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.cm-s-obsidian span.cm-formatting-code.cm-inline-code + span.cm-inline-code {
border-right: none;
border-left: none;
border-radius: 0;
}
.cm-s-obsidian span.cm-formatting-code.cm-inline-code + span.cm-inline-code + span.cm-formatting-code.cm-inline-code {
border-left-width: 0;
border-right-width: 1px;
border-radius: 0 3px 3px 0;
}
.cm-s-obsidian pre.HyperMD-codeblock {
padding: 0 0.5rem;
color: var(--interactive-normal);
font-family: var(--font-monospace);
font-size: 100%;
white-space: pre-wrap;
background-clip: border-box;
}
.cm-s-obsidian div.HyperMD-codeblock-bg {
background-color: var(--background-code-preview);
}
.cm-s-obsidian pre.HyperMD-codeblock.HyperMD-codeblock-begin {
border-top-left-radius: 4px;
border-top-right-radius: 4px;
padding-top: 0.5rem;
}
.cm-s-obsidian pre.HyperMD-codeblock.HyperMD-codeblock-end {
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
}
/*----------------------------------------------------------------
preview */
.theme-dark :not(pre) > code[class*="language-"],
.theme-dark pre[class*="language-"] {
background: var(--background-code-preview);
text-shadow: unset !important;
padding: 6px 10px;
margin: 1.5rem 0;
}
.markdown-preview-view pre {
background-color: var(--background-code-preview);
margin: 2rem 0;
}
.markdown-preview-view code {
text-shadow: unset !important;
color: var(--markup-code) !important;
background-color: var(--discord-yellow-bg);
font-size: 100%;
padding-top: 4px;
padding-bottom: 1px;
}
.markdown-preview-view pre code {
color: var(--text-normal) !important;
background-color: unset !important;
font-size: 100%;
}
pre.frontmatter[class*="language-"] {
background-color: transparent;
text-shadow: unset !important;
color: var(--text-normal) !important;
padding: 0;
margin: 0 0 1.5rem 0;
line-height: 20px;
}
/*----------------------------------------------------------------
frontmatter */
.markdown-preview-view pre code.language-yaml,
.markdown-preview-view pre code.language-yaml span.token {
color: var(--text-muted) !important;
}
.frontmatter-container {
background-color: var(--background-code-preview);
border: 0;
margin: 0 0 1.5rem 0;
}
.frontmatter-container .frontmatter-section {
margin: 0;
}
.frontmatter-container .frontmatter-container-header {
border-bottom: 0;
}
.frontmatter-container .frontmatter-collapse-indicator {
margin-top: -1px;
}
.frontmatter-container .frontmatter-section-label {
text-transform: lowercase;
display: inline-flex;
font-size: 0.8125rem;
}
.frontmatter-container .frontmatter-section-label::after {
content: ':';
display: inline-block;
}
.frontmatter-container .tag,
.frontmatter-container .frontmatter-alias {
background-color: var(--background-code-preview);
border-radius: 3px !important;
margin: 0 4px;
}
.frontmatter-container a.tag {
padding: 0 4px !important;
}
.frontmatter-container .tag:hover {
border: 1px solid transparent;
}
.frontmatter-container .frontmatter-alias {
padding: 1px 4px !important;
}
.cm-s-obsidian .cm-hmd-frontmatter {
font-size: 0.8125rem;
}
/*----------------------------------------------------------------
FOOTNOTES
----------------------------------------------------------------*/
sup {
letter-spacing: 0;
padding-left: 0.2rem;
}
.cm-s-obsidian span.cm-footref,
.cm-s-obsidian span.cm-blockid {
vertical-align: super;
margin-top: 0;
color: var(--text-a) !important;
font-size: small;
}
.cm-s-obsidian pre.HyperMD-footnote {
padding-left: 3rem;
padding-bottom: 0.5rem;
font-size: small;
color: var(--text-a) !important;
}
.footnotes {
font-size: small;
}
.footnote-link {
color: var(--text-a) !important;
}
.footnote-link:hover {
text-decoration: none;
}
.footnote-backref {
color: var(--text-muted);
margin-left: 0.2rem;
}
/*----------------------------------------------------------------
FOUNDATION
----------------------------------------------------------------*/
/* font for everything outside of editor/preview panes */
body,
.app-container {
font-size: 16px;
line-height: 22px !important;
font-family: var(--default-font);
color: var(--text-normal);
word-wrap: break-word;
text-rendering: optimizeLegibility;
vertical-align: baseline;
-webkit-font-feature-settings: "tnum";
-moz-font-feature-settings: "tnum";
font-feature-settings: "tnum";
-webkit-font-variant-numeric: tabular-nums;
-moz-font-variant-numeric: tabular-nums;
font-variant-numeric: tabular-nums;
margin: 0 !important;
}
.cm-s-obsidian .hmd-fold-html-stub,
.cm-s-obsidian .hmd-fold-code-stub,
.cm-s-obsidian.CodeMirror .HyperMD-hover > .HyperMD-hover-content code,
.cm-s-obsidian .cm-formatting-hashtag,
.cm-s-obsidian .cm-inline-code,
.cm-s-obsidian .HyperMD-codeblock,
.cm-s-obsidian .HyperMD-hr,
.cm-s-obsidian .cm-hmd-frontmatter,
.cm-s-obsidian .cm-hmd-orgmode-markup,
.cm-s-obsidian .cm-formatting-code,
.cm-s-obsidian .cm-math,
.cm-s-obsidian span.hmd-fold-math-placeholder,
.cm-s-obsidian .CodeMirror-linewidget kbd,
.cm-s-obsidian .hmd-fold-html kbd {
font-family: var(--font-monospace);
font-weight: normal;
color: var(--text-muted);
font-size: 100%;
letter-spacing: 0;
}
button,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type='search'],
.splash-brand-name,
.dropdown,
.setting-hotkey,
.suggestion-hotkey {
font-family: var(--default-font) !important;
border-color: var(--background-secondary-alt) !important;
letter-spacing: -0.01rem;
}
button {
-webkit-transition: background-color .17s ease, color .17s ease;
transition: background-color .17s ease, color .17s ease;
}
input[type='text'],
input[type='search'],
input[type='email'],
input[type='password'],
input[type='number'] {
font-size: 0.875rem;
color: var(--text-muted);
border-radius: 4px;
background-color: var(--discord-dark) !important;
}
input[type='text']:focus-within,
input[type='search']:focus-within,
input[type='email']:focus-within,
input[type='password']:focus-within,
input[type='number']:focus-within {
color: var(--text-normal);
}
ul li {
margin: 4px 0;
}
p {
margin-block-start: 1.4375rem;
margin-block-end: 1.4375rem;
}
.markdown-preview-pusher + div > p {
margin-block-start: 0;
}
p.mod-warning {
color: var(--discord-red);
}
.search-result-file-match::after {
background-color: var(--background-tertiary);
}
/* Discord-like tooltip */
.tooltip {
font-size: 1rem;
padding: 10px;
}
/* html tags in editor */
.cm-tag,
.cm-attribute { /* .cm-string */
color: var(--text-muted) !important;
}
/* horizontal line in preview */
.markdown-preview-view hr {
background-color: var(--text-muted);
border: none;
height: 1px;
margin: 1.4375rem 0;
}
/* internal embedded link rendering in preview */
.markdown-embed-title {
font-weight: 600;
color: var(--text-link);
}
.markdown-embed {
padding-left: 8px !important;
padding-right: 4px !important;
margin-left: 8px !important;
margin-right: 4px !important;
}
/* NO FILE OPEN page */
.empty-state-title {
color: var(--discord-yellow-alt) !important;
}
.empty-state-action {
color: var(--text-muted) !important;
}
.empty-state-action:hover {
color: var(--text-normal) !important;
}
/*----------------------------------------------------------------
IMAGES */
img {
display: block;
margin: 0 auto;
}
/*----------------------------------------------------------------
Normal text outside of headings and code */
/* preview */
.markdown-preview-view {
font-family: var(--font-editor);
color: var(--text-normal);
font-weight: 400;
font-size: var(--font-size-notes);
letter-spacing: var(--letter-spacing-notes);
line-height: 1.65 !important;
overflow-x: hidden;
}
/* editor */
.cm-s-obsidian {
font-family: var(--font-editor);
color: var(--text-normal);
font-weight: 400;
font-size: var(--font-size-notes);
letter-spacing: var(--letter-spacing-notes);
line-height: 1.65 !important;
/* Editor font: make it thicker so it is like in Preview */
-webkit-font-smoothing: subpixel-antialiased !important;
}
/*----------------------------------------------------------------
Bold */
strong {
color: var(--discord-yellow-alt);
font-weight: 600;
}
.cm-s-obsidian .cm-strong {
color: var(--discord-yellow-alt);
font-weight: 600;
}
/*----------------------------------------------------------------
Italics */
em {
color: var(--text-em);
}
.cm-em {
color: var(--text-em);
}
.cm-formatting-em {
font-style: normal;
}
.cm-em:not(.cm-formatting-em) {
margin-left: -1px;
}
/*----------------------------------------------------------------
Highlights */
.markdown-preview-view mark {
background-color: transparent !important;
-webkit-box-shadow: inset 0 -2px var(--discord-yellow-alt);
box-shadow: inset 0 -2px var(--discord-yellow-alt);
padding-bottom: 4px;
}
.cm-s-obsidian span.cm-formatting-highlight,
.cm-s-obsidian span.cm-highlight {
background: none;
text-decoration: underline !important;
text-decoration-color: var(--discord-yellow-alt) !important;
text-decoration-thickness: 5px;
text-underline-offset: 4px;
}
.cm-s-obsidian span.cm-formatting-highlight {
color: var(--text-muted);
}
mark > strong {
color: var(--discord-yellow-alt) !important;
font-weight: 500;
padding: 0 2px;
}
/*----------------------------------------------------------------
Popup notifications */
.notice {
color: var(--text-on-accent) !important;
background-color: #232428 !important;
}
/*----------------------------------------------------------------
GRAPH
----------------------------------------------------------------*/
.theme-dark .graph-controls {
background-color: var(--background-tertiary);
border: none;
}
.theme-dark .graph-view.color-line {
color: var(--graph-line);
opacity: 0.7;
}
.theme-dark .graph-view.color-line-highlight {
color: var(--graph-line-highlight);
}
.theme-dark .graph-view.color-fill {
color: var(--graph-circle-fill);
opacity: 0.9;
}
.theme-dark .graph-view.color-fill-highlight {
color: var(--graph-circle-fill-highlight);
}
.theme-dark .graph-view.color-circle {
color: var(--graph-circle-outline);
}
/*----------------------------------------------------------------
Graph filters */
.theme-dark .graph-view.color-fill-tag {
color: var(--graph-fill-tag);
}
.theme-dark .graph-view.color-fill-attachment {
color: var(--graph-fill-attachment);
}
.theme-dark .graph-view.color-fill-unresolved {
color: var(--graph-circle-fill-unresolved);
opacity: 1;
}
.theme-dark .graph-view.color-arrow {
color: var(--graph-arrow);
}
/*----------------------------------------------------------------
Graph controls */
.graph-control-search-button {
background-color: transparent !important;
opacity: 0.7;
}
.graph-control-search-button:hover {
opacity: 1;
}
.mod-root .graph-controls {
top: 20px;
left: 30px;
}
.graph-controls .setting-item {
border: 0;
}
.graph-control-section:not(:last-child) .tree-item-children {
border-bottom: thin solid var(--background-modifier-accent);
}
.graph-control-section:not(:last-child) .tree-item-children > .setting-item:last-child {
padding-bottom: 20px;
}
.graph-controls .setting-item.mod-search-setting .setting-item-control .search-input-container {
width: 100%;
}
.graph-controls .clickable-icon[aria-label="Delete group"] > svg {
margin-top: -2px;
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%238D9196' d='M18.4 4L12 10.4L5.6 4L4 5.6L10.4 12L4 18.4L5.6 20L12 13.6L18.4 20L20 18.4L13.6 12L20 5.6L18.4 4Z'%3E%3C/path%3E%3C/svg%3E") !important;
}
.graph-controls .graph-color-button-container {
margin: 15px 0 20px 0;
text-align: center;
}
.graph-controls .graph-color-button-container > button {
padding: 1px 6px;
font-size: 0.75rem;
}
/*----------------------------------------------------------------
HEADINGS
----------------------------------------------------------------*/
/*----------------------------------------------------------------
Preview */
.markdown-preview-view h1,
.markdown-preview-view h2,
.markdown-preview-view h3,
.markdown-preview-view h4,
.markdown-preview-view h5,
.markdown-preview-view h6 {
font-weight: 600;
margin-block-start: 10px;
margin-block-end: 10px;
line-height: 125% !important;
}
.markdown-preview-view h1 {
font-size: 2rem;
color: var(--text-title-h1);
margin-top: 0;
}
.markdown-preview-view h2 {
font-size: 1.625rem;
color: var(--text-title-h2);
}
.markdown-preview-view h3 {
font-size: 1.375rem;
color: var(--text-title-h3);
}
.markdown-preview-view h4 {
font-size: 1.125rem;
color: var(--text-title-h4);
}
.markdown-preview-view h5 {
font-size: 1.125rem;
color: var(--text-title-h5);
}
.markdown-preview-view h6 {
font-size: 1rem;
color: var(--text-title-h6);
}
/*----------------------------------------------------------------
Editor */
.cm-formatting.cm-formatting-header.cm-header {
font-weight: 400;
}
.cm-header-1,
.cm-header-2,
.cm-header-3,
.cm-header-4,
.cm-header-5,
.cm-header-6 {
font-weight: 600;
margin-block-start: 1em;
line-height: 125% !important;
}
.cm-header-1 {
font-size: 2rem;
color: var(--text-title-h1);
margin-block-start: 0;
}
.cm-header-2 {
font-size: 1.625rem;
color: var(--text-title-h2);
}
.cm-header-3 {
font-size: 1.375rem;
color: var(--text-title-h3);
}
.cm-header-4 {
font-size: 1.125rem;
color: var(--text-title-h4);
}
.cm-header-5 {
font-size: 1.125rem;
color: var(--text-title-h5);
}
.cm-header-6 {
font-size: 1rem;
color: var(--text-title-h6);
}
.cm-s-obsidian span.cm-header-1.cm-footref,
.cm-s-obsidian span.cm-header-1.cm-blockid,
.cm-s-obsidian span.cm-header-2.cm-footref,
.cm-s-obsidian span.cm-header-2.cm-blockid,
.cm-s-obsidian span.cm-header-3.cm-footref,
.cm-s-obsidian span.cm-header-3.cm-blockid {
font-size: 1rem;
vertical-align: text-top;
margin-top: -1rem;
}
.cm-s-obsidian span.cm-header-4.cm-footref,
.cm-s-obsidian span.cm-header-4.cm-blockid,
.cm-s-obsidian span.cm-header-5.cm-footref,
.cm-s-obsidian span.cm-header-5.cm-blockid,
.cm-s-obsidian span.cm-header-6.cm-footref,
.cm-s-obsidian span.cm-header-6.cm-blockid {
font-size: 0.75rem;
vertical-align: text-top;
margin-top: -0.75rem;
}
.cm-s-obsidian pre.HyperMD-header {
padding-bottom: 0;
padding-left: 0 !important;
}
.vertical-tab-content h1:first-child,
.vertical-tab-content h2:first-child,
.vertical-tab-content h3:first-child {
margin-block-start: 0;
}
/*----------------------------------------------------------------
Links in headers should be visually the same as normal headers
This is purely for visual aesthetics but makes sense when using
Bryan Jenks (@tallguyjenks) idea of self-correcting titles
*/
/*----------------------------------------------------------------
Preview */
.markdown-preview-view h1 a.internal-link {
color: var(--text-title-h1);
}
.markdown-preview-view h2 a.internal-link {
color: var(--text-title-h2);
}
.markdown-preview-view h3 a.internal-link {
color: var(--text-title-h3);
}
.markdown-preview-view h4 a.internal-link {
color: var(--text-title-h4);
}
.markdown-preview-view h5 a.internal-link {
color: var(--text-title-h5);
}
/*----------------------------------------------------------------
Editor */
.cm-s-obsidian span.cm-formatting-link.cm-header-1,
.cm-s-obsidian span.cm-hmd-internal-link.cm-header-1 {
color: var(--text-title-h1);
}
.cm-s-obsidian span.cm-hmd-internal-link.cm-header-1:hover {
color: var(--text-title-h1);
}
.cm-s-obsidian span.cm-formatting-link.cm-header-2,
.cm-s-obsidian span.cm-hmd-internal-link.cm-header-2 {
color: var(--text-title-h2);
}
.cm-s-obsidian span.cm-hmd-internal-link.cm-header-2:hover {
color: var(--text-title-h2);
}
.cm-s-obsidian span.cm-formatting-link.cm-header-3,
.cm-s-obsidian span.cm-hmd-internal-link.cm-header-3 {
color: var(--text-title-h3);
}
.cm-s-obsidian span.cm-hmd-internal-link.cm-header-3:hover {
color: var(--text-title-h3);
}
.cm-s-obsidian span.cm-formatting-link.cm-header-4,
.cm-s-obsidian span.cm-hmd-internal-link.cm-header-4 {
color: var(--text-title-h4);
}
.cm-s-obsidian span.cm-hmd-internal-link.cm-header-4:hover {
color: var(--text-title-h4);
}
.cm-s-obsidian span.cm-formatting-link.cm-header-5,
.cm-s-obsidian span.cm-hmd-internal-link.cm-header-5 {
color: var(--text-title-h5);
}
.cm-s-obsidian span.cm-hmd-internal-link.cm-header-5:hover {
color: var(--text-title-h5);
}
/*----------------------------------------------------------------
Inline code in headers should respect header size
*/
.cm-s-obsidian span.cm-inline-code.cm-header-1:not(.cm-formatting):not(.cm-hmd-indented-code):not(.obsidian-search-match-highlight),
.cm-s-obsidian span.cm-inline-code.cm-header-1 {
font-size: 2rem;
}
.cm-s-obsidian span.cm-inline-code.cm-header-2:not(.cm-formatting):not(.cm-hmd-indented-code):not(.obsidian-search-match-highlight),
.cm-s-obsidian span.cm-inline-code.cm-header-2 {
font-size: 1.625rem;
}
.cm-s-obsidian span.cm-inline-code.cm-header-3:not(.cm-formatting):not(.cm-hmd-indented-code):not(.obsidian-search-match-highlight),
.cm-s-obsidian span.cm-inline-code.cm-header-3 {
font-size: 1.375rem;
}
.cm-s-obsidian span.cm-inline-code.cm-header-4:not(.cm-formatting):not(.cm-hmd-indented-code):not(.obsidian-search-match-highlight),
.cm-s-obsidian span.cm-inline-code.cm-header-4,
.cm-s-obsidian span.cm-inline-code.cm-header-5:not(.cm-formatting):not(.cm-hmd-indented-code):not(.obsidian-search-match-highlight),
.cm-s-obsidian span.cm-inline-code.cm-header-5 {
font-size: 1.125rem;
}
.cm-s-obsidian span.cm-inline-code.cm-header-6:not(.cm-formatting):not(.cm-hmd-indented-code):not(.obsidian-search-match-highlight),
.cm-s-obsidian span.cm-inline-code.cm-header-6 {
font-size: 1rem;
}
.cm-s-obsidian span.cm-inline-code {
padding-bottom: 0;
}
/*link styling*/
.markdown-preview-view .external-link {
text-transform: uppercase;
font-weight: bold;
font-size: 80%;
}
a.external-link,
.markdown-source-view.mod-cm6
:is(.cm-link, .cm-url, .cm-link .cm-underline, .cm-link .cm-underline:hover,
.cm-url .cm-underline, .cm-url .cm-underline:hover) {
text-transform: uppercase;
font-weight: bold;
font-size: 90% !important;
color: var(--text-link);
}
.theme-light, .theme-dark {
--link-decoration: none;
--link-decoration-hover: underline;
--link-external-decoration: none;
--link-external-decoration-hover: underline;
}
/* Internal links */
.cm-s-obsidian span.cm-hmd-internal-link {
color: #E481C0 !important;
}
.cm-s-obsidian span.cm-link,
.cm-s-obsidian span.cm-url {
color: #E481C0 !important;
}
.internal-link {
text-decoration: none !important;
color: #E481C0 !important;
}
.internal-link:hover {
color: #E481C0 !important;
}
.markdown-source-view.mod-cm6 .cm-underline {
text-decoration: none;
color: #E481C0;
}
/*----------------------------------------------------------------
PRESENTATION MODE
----------------------------------------------------------------*/
.reveal h1 {
color: var(--text-title-h1);
}
.reveal h2 {
color: var(--text-title-h2);
}
.reveal h3 {
color: var(--text-title-h3);
}
.reveal h4 {
color: var(--text-title-h4);
}
.reveal h5 {
color: var(--text-title-h5);
}
.reveal h6 {
color: var(--text-title-h6);
}
/*----------------------------------------------------------------
TABLES
----------------------------------------------------------------*/
th {
font-weight: 800;
}
thead {
border-top: 2px solid var(--discord-yellow-alt);
}
table {
border-collapse: collapse;
}
/*----------------------------------------------------------------
Preview Mode */
.markdown-preview-view table {
margin: 2rem 0;
}
.markdown-preview-view td,
.markdown-preview-view th {
border: none;
}
.markdown-preview-view th {
font-family: var(--default-font);
font-weight: bold;
}
.markdown-preview-view thead > tr {
border-top: 0 !important;
}
.markdown-preview-view tr {
border-top: 1px solid var(--background-accent);
}
.markdown-preview-view td,
.markdown-preview-view tr > th {
border-left: 1px solid var(--background-accent);
}
.markdown-preview-view tr > td:first-of-type,
tr > th:first-of-type {
border-left: 0;
}
/*----------------------------------------------------------------
Editor Mode */
.CodeMirror pre.HyperMD-table-row {
font-family: var(--font-monospace);
font-size: 100%;
letter-spacing: 0;
}
.CodeMirror pre.HyperMD-table-row span.cm-formatting-link {
padding: 0;
}
.cm-s-obsidian pre.HyperMD-table-row.HyperMD-table-row-0 {
margin-top: 0.15rem;
}
/*----------------------------------------------------------------
TASK LISTS
----------------------------------------------------------------*/
input[type=checkbox] {
-webkit-appearance: none;
appearance: none;
padding: 0;
cursor: pointer;
background-color: var(--background-primary);
border: 1px solid var(--text-faint);
border-radius: 3px;
}
input[type=checkbox]:focus,
input[type=checkbox]:hover {
outline: 0;
border-color: var(--text-faint);
}
input[type=checkbox]:checked {
background-color: var(--discord-blue) !important;
border: 1px solid var(--discord-blue);
background-position: center;
background-size: 70%;
background-repeat: no-repeat;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' aria-hidden='true' focusable='false' width='1em' height='1em' style='-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);' preserveAspectRatio='xMidYMid meet' viewBox='0 0 20 20'%3E%3Cpath d='M0 11l2-2l5 5L18 3l2 2L7 18z' fill='%23fff'/%3E%3C/svg%3E");
}
/*----------------------------------------------------------------
Preview Mode */
.markdown-preview-view .task-list-item-checkbox {
top: 8px;
width: calc(var(--font-size-notes) + 0.375rem);
height: calc(var(--font-size-notes) + 0.375rem);
margin-left: -0.2rem;
margin-right: 0.5rem;
filter: none;
}
ul.contains-task-list li > div.list-collapse-indicator {
margin-top: 0.5rem;
padding: 0;
}
ul.contains-task-list li {
margin: 0;
}
/*----------------------------------------------------------------
Smart Visual Task Lists ALSO in Editor Mode ! (HACKISH)
This works properly only with "Smart Indent List" setting enabled
as it produces checkboxes automatically when entering next line.
Best combined with "Toggle checklist status" command shortcut.
FOR DEFAULT BEHAVIOUR PLEASE REMOVE THIS WHOLE SECTION TILL END */
.discordian-pretty-tasks-editor .cm-s-obsidian span.cm-formatting-list {
margin: 0;
}
.discordian-pretty-tasks-editor .cm-s-obsidian pre.HyperMD-list-line {
padding-top: 0;
}
.discordian-pretty-tasks-editor .cm-s-obsidian span.cm-formatting-task {
white-space: pre;
text-align: center;
color: transparent;
font-size: calc(0.7 * calc(var(--font-size-notes) + 0.125rem));
line-height: 2rem;
background-color: var(--background-primary);
font-family: var(--default-font);
margin-left: -0.8rem;
padding-bottom: 0.1rem;
}
.discordian-pretty-tasks-editor .cm-formatting-task {
border: 1px solid var(--text-faint);
border-radius: 3px;
padding: 0;
}
/* HACK: makes unchecked task same size as checked one */
.discordian-pretty-tasks-editor .cm-s-obsidian span.cm-formatting-task::after {
content: '\0020\0020\0020\0020';
color: transparent;
}
.discordian-pretty-tasks-editor input[type=checkbox]:checked,
.discordian-pretty-tasks-editor .cm-formatting-task.cm-property {
background-color: var(--discord-blue) !important;
border: 1px solid var(--discord-blue);
}
.discordian-pretty-tasks-editor .cm-formatting-task.cm-property::after {
content: '\0020\0020\0020' !important;
color: transparent !important;
}
.discordian-pretty-tasks-editor .cm-formatting-task + span {
padding-left: 0.3rem;
vertical-align: sub;
}
.discordian-pretty-tasks-editor .cm-formatting-task ~ span {
vertical-align: sub !important;
}
/*----------------------------------------------------------------
Adjust nested level task lists when collapsed
Order matters here - from top level supported (7) down to first */
.discordian-pretty-tasks-editor pre.HyperMD-list-line-7 {
padding-left: calc(12.25 * calc(var(--font-size-notes) + 0.125rem)) !important;
}
.discordian-pretty-tasks-editor pre.HyperMD-list-line-6 {
padding-left: calc(10.5 * calc(var(--font-size-notes) + 0.125rem)) !important;
}
.discordian-pretty-tasks-editor pre.HyperMD-list-line-5 {
padding-left: calc(8.75 * calc(var(--font-size-notes) + 0.125rem)) !important;
}
.discordian-pretty-tasks-editor pre.HyperMD-list-line-4 {
padding-left: calc(7 * calc(var(--font-size-notes) + 0.125rem)) !important;
}
.discordian-pretty-tasks-editor pre.HyperMD-list-line-3 {
padding-left: calc(5.25 * calc(var(--font-size-notes) + 0.125rem)) !important;
}
.discordian-pretty-tasks-editor pre.HyperMD-list-line-2:not(.HyperMD-list-line-1) {
padding-left: calc(3.5 * calc(var(--font-size-notes) + 0.125rem)) !important;
}
/*----------------------------------------------------------------
WORKSPACE
----------------------------------------------------------------*/
.app-container {
border-top: 1px solid var(--background-tertiary) !important;
}
.view-content {
height: calc(100% - 32px);
}
.titlebar-button-container {
top: 0;
}
.nav-action-button.is-active {
background-color: var(--interactive-accent-alt);
color: var(--text-on-accent);
}
/* straight corners */
.workspace-split.mod-left-split .workspace-tabs .workspace-leaf,
.workspace-split.mod-right-split .workspace-tabs .workspace-leaf,
.workspace-leaf-content {
border-top-left-radius: 0 !important;
border-top-right-radius: 0 !important;
}
/*----------------------------------------------------------------
Collapsed Ribbons */
.workspace-ribbon.is-collapsed {
background-color: var(--background-secondary-alt) !important;
}
.workspace-ribbon.mod-right.is-collapsed {
background-color: var(--background-secondary-alt) !important;
}
.workspace-ribbon.mod-left.is-collapsed {
background-color: var(--background-secondary-alt) !important;
}
/*----------------------------------------------------------------
Tabs */
.workspace-tabs {
background-color: var(--background-secondary);
overflow: hidden;
padding: 0 0 1rem 0;
position: relative;
}
.workspace-tab-header {
color: var(--text-muted) !important;
text-decoration: none !important;
}
.workspace-tab-header:hover {
color: var(--text-normal) !important;
}
.workspace-tags,
.tag-container {
padding: 0;
}
/*----------------------------------------------------------------
Resize Handlers */
body.is-translucent {
background-color: var(--background-primary);
}
.workspace-leaf-resize-handle,
.is-translucent .workspace-leaf-resize-handle {
background-color: var(--background-secondary); /*--background-secondary-alt*/
margin: 0;
}
.workspace-leaf-resize-handle:hover,
.is-translucent .workspace-leaf-resize-handle:hover {
background-color: var(--interactive-accent-light);
}
/*----------------------------------------------------------------
Split Mode */
.workspace-split.mod-vertical > * > .workspace-leaf-resize-handle,
.workspace-split.mod-left-split > .workspace-leaf-resize-handle,
.workspace-split.mod-right-split > .workspace-leaf-resize-handle {
width: 2px !important;
}
.workspace-split.mod-horizontal > * > .workspace-leaf-resize-handle {
height: 2px;
}
.workspace-split.mod-root > .workspace-leaf:first-of-type .workspace-leaf-content {
padding-right: 0;
}
.workspace-split.mod-vertical > .workspace-leaf {
padding-right: 0;
}
.workspace-split.mod-root {
background-color: transparent !important;
}
/* no animation for panels - feels more snappier */
.workspace-split.mod-left-split,
.workspace-split.mod-right-split {
transition: none;
}
.workspace-split.mod-root > .workspace-leaf:first-of-type .workspace-leaf-content .view-content {
padding-right: 0;
}
/*----------------------------------------------------------------
Side Dock */
.side-dock-ribbon-action {
color: var(--text-muted) !important;
}
.side-dock-ribbon-action:hover {
color: var(--text-normal) !important;
}
.side-dock-ribbon-tab.is-active {
color: var(--interactive-accent) !important;
}
.side-dock-ribbon-tab.is-active .side-dock-ribbon-tab-inner:hover {
color: #6272a4 !important;
background-color: var(--background-secondary);
}
.side-dock-panels-container {
font-size: 13px !important;
background-color: var(--background-secondary-alt) !important;
color: var(--background-secondary-alt);
}
/* side dock titles at top */
.side-dock-title {
font-size: 20px !important;
font-weight: 800 !important;
}
.side-dock-collapsible-section-header {
font-size: 14px;
}
/* hover actions on side dock navigation */
.side-dock-ribbon-tab:hover,
.side-dock-ribbon-tab-inner:hover,
.side-dock-ribbon-action:hover,
.side-dock-ribbon-action.is-active:hover,
.nav-action-button:hover,
.side-dock-collapse-btn:hover {
color: var(--text-normal);
}
/*----------------------------------------------------------------
Navigation & File Explorer */
.nav-action-button {
margin-bottom: 5px;
}
.nav-action-button svg {
width: 15px;
}
.nav-header {
padding: 8px 20px 4px 20px;
}
.nav-file-title,
.nav-folder-title {
cursor: var(--cursor);
align-items: baseline;
width: 100%;
vertical-align: middle;
line-height: 1.25;
border: 1px solid var(--background-secondary);
}
.nav-file-title {
padding: 8px 10px 6px 10px;
margin-left: 10px;
margin-right: 10px;
font-family: var(--font-editor);
font-variant-numeric: tabular-nums !important;
font-size: var(--font-size-file-explorer);
border-radius: 4px;
color: var(--text-muted) !important;
background-color: var(--background-secondary);
display: inline-flex;
-webkit-font-feature-settings: "tnum" !important;
-moz-font-feature-settings: "tnum" !important;
font-feature-settings: "tnum" !important;
-webkit-font-variant-numeric: tabular-nums !important;
-moz-font-variant-numeric: tabular-nums !important;
}
.nav-file-title:hover,
.nav-folder-title:hover {
color: var(--text-normal) !important;
}
.nav-folder-title {
font-size: calc(var(--font-size-file-explorer) + 0.125rem);
color: var(--interactive-active) !important;
background-color: var(--background-secondary);
padding: 2px 10px 2px 22px;
}
/*----------------------------------------------------------------
Condense line spacing on file explorer title list.
Avoid character-level word breaks */
.nav-file-title-content,
.search-result-file-title {
padding-top: 0 !important;
padding-bottom: 0 !important;
line-height: normal !important;
word-break: keep-all;
}
.nav-file-title-content,
.nav-folder-title-content {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
display: block;
}
.nav-folder-title-content {
padding: 1px 4px;
}
.nav-file-title-content {
width: 100%;
}
.nav-files-container {
overflow-x: hidden !important;
padding-bottom: 25px;
}
/* smaller & bold vault title */
.nav-folder.mod-root > .nav-folder-title {
padding-left: 6px;
font-size: 14px;
font-weight: 600;
top: 0;
text-transform: uppercase;
letter-spacing: 1px;
cursor: default;
color: var(--text-accent) !important;
}
.nav-file {
margin-right: 10px;
}
.nav-folder-children .nav-folder-children > .nav-file > .nav-file-title {
padding: 6px 10px 6px 10px;
margin-left: 0 !important;
margin-right: 10px;
}
.nav-folder-children .nav-folder-children > .nav-file > .nav-file-title > .nav-file-title-content {
padding: 2px 0;
}
/*----------------------------------------------------------------
Files & folders: active & hover */
.nav-file.is-active .nav-file-tag {
color: var(--text-normal);
}
.nav-folder-children .nav-folder-children > .nav-file > .nav-file-title.is-active::before {
content: none;
}
.nav-file-title.is-active,
.nav-folder-title.is-active,
body:not(.is-grabbing) .nav-file-title:hover,
body:not(.is-grabbing) .nav-folder-title:hover {
border-radius: 4px;
}
body:not(.is-grabbing) .nav-folder-title:hover {
color: var(--interactive-active) !important;
}
.nav-folder.mod-root > .nav-folder-title:hover {
color: var(--text-accent) !important;
}
.nav-file-title.is-active,
.nav-folder-title.is-active {
background-color: var(--background-primary);
}
body:not(.is-grabbing) .nav-file-title:hover,
body:not(.is-grabbing) .nav-folder-title:hover {
background-color: var(--background-modifier-hover);
}
body:not(.is-grabbing) .nav-file-title.is-active,
body:not(.is-grabbing) .nav-file-title.is-active:hover {
background-color: #404249 !important;
color: var(--text-normal) !important;
}
.nav-folder-collapse-indicator {
background-color: transparent !important;
}
.collapse-icon svg {
height: 12px;
}
.nav-file-tag {
background-color: var(--background-secondary-alt);
top: -1px;
margin-left: 0;
}
.nav-file-tag + .nav-file-title-content {
margin-left: 4px;
}
/*----------------------------------------------------------------
Search */
.search-result {
margin-bottom: 0;
}
.search-result-file-title {
color: var(--text-a) !important;
background-color: var(--background-secondary);
font-weight: 400;
}
.search-result-file-title:hover {
background-color: var(--background-secondary);
}
.search-result-file-matches {
font-size: 13px;
line-height: 16px;
margin-right: 5px;
border-bottom: 0;
}
.search-result-file-match::before {
display: none;
}
.search-result-file-match:not(:first-child) {
margin-top: 0;
}
.search-result-file-match {
line-height: normal !important;
word-break: keep-all;
left: 0;
width: 100%;
padding-top: 4px !important;
padding-bottom: 4px !important;
}
.search-result-file-match:hover {
background-color: var(--background-tertiary);
}
.search-result-file-matched-text {
background-color: var(--text-selection);
}
.search-result-collapse-indicator {
top: -5px !important;
}
.search-result-file-match-replace-button {
color: var(--text-on-accent);
top: 3px;
right: 8px;
opacity: 0.8;
font-size: .625rem;
text-transform: uppercase;
background-color: var(--interactive-accent) !important;
height: .9375rem;
padding: 0 .275rem;
margin-top: .075em;
border-radius: .1875rem;
letter-spacing: 1px;
}
.tree-item-self .collapse-icon {
margin-top: -1px;
}
.tree-item-flair {
background-color: unset;
}
.tree-item-self .tree-item-flair {
font-family: var(--font-editor);
font-size: 0.6875rem;
}
.tree-item-self:hover .tree-item-flair {
background-color: unset;
color: var(--text-a);
}
.backlink-pane .tree-item-inner {
font-size: 0.875rem;
}
.backlink-pane > .tree-item-self:hover .tree-item-flair {
color: var(--text-normal);
}
.tag-container .tree-item-self:hover .tree-item-flair {
color: var(--text-normal);
}
.tree-item-children {
margin-left: 15px;
}
/* search count boxes */
.search-result-count {
font-family: var(--font-monospace);
letter-spacing: 0;
}
.search-result-file-title .pane-list-item-ending-flair {
position: absolute;
top: 1px;
font-size: 12px;
background-color: var(--background-secondary-alt);
line-height: 12px;
border-radius: 3px;
}
/* clean up side bar empty state (e.g. unlinked mentions) */
.search-empty-state {
width: auto;
padding-left: 15px;
padding-right: 15px;
line-height: normal;
font-size: 0.875rem;
color: var(--discord-red-hover);
}
/*----------------------------------------------------------------
Header */
.workspace-split.mod-root > .workspace-leaf:first-of-type:last-of-type .view-header {
border-bottom: 0;
background-color: var(--background-primary);
}
.view-header {
height: 30px;
border-top: 0;
border-bottom: 0;
background-color: var(--background-primary);
}
.view-header::before {
content: "";
position: absolute;
display: block;
left: 0;
right: 0;
top: 28px;
height: 1px;
-webkit-box-shadow: var(--elevation-low) !important;
box-shadow: var(--elevation-low) !important;
z-index: 1;
pointer-events: none;
}
.view-header-title {
font-size: 13px;
line-height: 32px;
font-family: var(--font-editor) !important;
}
.view-header-title-container {
position: relative;
}
.workspace-leaf.mod-active .view-header {
background-color: var(--background-primary);
}
/* fix the long-title-obscuring shadows */
.workspace-leaf.mod-active .view-header-title-container::after,
.view-header-title-container::after {
content: ' ';
position: absolute;
top: 0;
right: 0;
height: 28px;
background: linear-gradient(to right, transparent, var(--background-primary)) !important; /* rgb(51,53,59) */
}
.view-header-title-container::after {
background: linear-gradient(to right, transparent, var(--background-primary)) !important;
}
/* Change color of note title active pane */
.workspace-leaf.mod-active .view-header-title {
color: var(--text-normal);
}
.workspace-leaf-content .view-content,
.workspace-leaf-content[data-type='tag'] {
padding: 10px;
}
.item-list {
overflow-x: hidden;
}
.view-header-icon {
top: 0 !important;
}
/*----------------------------------------------------------------
WYSIWYG
This make switching between Editor and Preview seamless
but mostly in terms of size / width / margins and visual shifts
----------------------------------------------------------------*/
.CodeMirror-lines {
padding: 0 0 20px 0;
}
.CodeMirror pre.CodeMirror-line,
.CodeMirror pre.CodeMirror-line-like {
padding: 0;
}
.cm-s-obsidian .CodeMirror-code {
padding-right: 0;
}
.markdown-source-view,
.markdown-preview-view,
.markdown-source-view.mod-cm5 {
padding: 1.5rem 1.5rem 0 1.5rem;
}
.CodeMirror,
.markdown-source-view.is-readable-line-width .CodeMirror,
.markdown-preview-section {
padding-left: 0;
padding-right: 0;
margin: 0 auto;
}
/*----------------------------------------------------------------
Editor */
/* to be concise between Editor and Preview we need to account for scrollbar */
.markdown-source-view.is-readable-line-width .CodeMirror,
.CodeMirror {
max-width: 100%;
}
.markdown-source-view.is-readable-line-width .CodeMirror {
width: calc(var(--readable-line-length) + 16px);
}
.discordian-writer-mode .markdown-source-view.is-readable-line-width .CodeMirror {
width: calc(var(--readable-line-length) + 0px);
}
.CodeMirror-scroll {
padding-left: 4rem;
padding-right: 3rem;
margin-right: 0;
margin-bottom: 0;
}
.CodeMirror-sizer {
margin-left: 0 !important;
border-right: 0 !important;
}
/*----------------------------------------------------------------
Preview */
.markdown-preview-view.is-readable-line-width .markdown-preview-sizer {
max-width: 100%;
}
.markdown-preview-section > div {
padding-left: 4rem;
padding-right: 2rem;
margin: 0 auto 0 auto;
max-width: 100%;
}
.markdown-preview-view.is-readable-line-width .markdown-preview-section {
max-width: 100%;
width: var(--readable-line-length);
}
.markdown-preview-view.is-readable-line-width .markdown-preview-section > div {
width: var(--readable-line-length);
}
/*embeds dkwhat stuff it styles check LATER*/
/*----------------------------------------------------------------
EMBEDS
----------------------------------------------------------------*/
/*----------------------------------------------------------------
Seamless notes transclusions */
.markdown-preview-view .markdown-embed {
margin: 2rem 0 0 0 !important;
padding: 0 !important;
border-top: 0 !important;
border-bottom: 0 !important;
}
.markdown-preview-view .markdown-embed-content {
max-height: none !important;
}
.markdown-embed-content .markdown-preview-section {
min-height: unset !important;
}
.markdown-embed-content .markdown-preview-section > div {
padding-left: 0;
padding-right: 0;
}
/* Hide frontmatters in embeds */
.markdown-preview-view .markdown-embed-content .frontmatter {
display: none;
}
.markdown-embed-title,
.internal-embed .markdown-preview-section {
max-width: 100%;
}
.markdown-embed-title {
display: none !important;
}
.markdown-preview-view .markdown-embed-content > .markdown-preview-view {
max-height: none !important;
}
.markdown-embed .markdown-preview-view {
padding: 0 !important;
}
.file-embed-link svg,
.markdown-embed-link svg {
width: 16px;
opacity: 0;
}
.markdown-embed:hover .file-embed-link svg,
.markdown-embed:hover .markdown-embed-link svg {
opacity: 1;
}
/*----------------------------------------------------------------
Audio embed */
audio,
.theme-dark audio {
filter: unset !important;
}
.theme-dark audio::-webkit-media-controls-enclosure {
filter: sepia(10%) contrast(90%) invert(90%) !important;
opacity: 0.8;
border-radius: 6px;
height: 20px;
}
audio::-webkit-media-controls-enclosure {
filter: sepia(10%) contrast(90%) invert(90%) !important;
opacity: 0.8;
border-radius: 6px;
height: 20px;
}
.markdown-preview-view img:not([width]),
.markdown-preview-view audio,
.markdown-preview-view video {
margin: 0 auto;
}
/*----------------------------------------------------------------
Internal Queries */
.markdown-preview-view .internal-query.is-embed {
border-top: 0;
border-bottom: 0;
background-color: var(--background-code-preview);
border-radius: 4px;
cursor: default !important;
}
.markdown-preview-view .internal-query.is-embed .internal-query-header-title::before,
.markdown-preview-view .internal-query.is-embed .internal-query-header-title::after {
content: "";
}
/* Seamless internal queries - no scrollbar */
.markdown-preview-view .internal-query.is-embed .search-results-children {
max-height: none !important;
padding: 0;
}
.internal-query .search-result-file-matches {
margin-top: 10px;
margin-bottom: 0;
padding-bottom: 0;
}
.internal-query .search-result-file-title {
background-color: transparent;
opacity: 1;
}
.internal-query .search-result-file-title:hover {
color: var(--text-a-hover) !important;
opacity: 1;
}
.internal-query .tree-item-self.is-clickable:hover {
background-color: transparent;
}
.internal-query .tree-item.search-result {
padding: 10px;
}
.internal-query .tree-item.search-result.is-collapsed:hover {
background-color: var(--background-modifier-border);
cursor: pointer;
}
.internal-query .search-result-file-matched-text {
padding: 2px;
border-radius: 2px;
}
.internal-query .search-result-file-match {
opacity: 1;
padding: 6px 0 6px 10px !important;
}
.internal-query .search-result-file-match:hover {
background-color: var(--background-modifier-cover);
}
.internal-query .search-result-file-match::after {
background-color: transparent;
}
/*folding DK what changed*/
/*----------------------------------------------------------------
FOLDING (credits to @mgmeyers for svg icons)
----------------------------------------------------------------*/
.markdown-preview-view .collapse-indicator {
position: relative;
cursor: pointer;
margin: 0;
float: none;
padding-left: 0;
display: inline-block;
line-height: inherit;
font-size: unset;
width: 0;
height: 0.5em;
}
.markdown-preview-view .collapse-indicator > svg {
display: none;
}
.markdown-preview-view .collapse-indicator::before {
position: absolute;
left: -2.5rem;
top: calc(-0.5em - 3px);
}
.markdown-preview-view .heading-collapse-indicator {
margin-left: -2px;
padding: 0;
}
.markdown-preview-view .heading-collapse-indicator::before {
left: -2rem;
}
.markdown-preview-view .frontmatter-collapse-indicator::before {
left: -2.9rem;
}
.markdown-preview-view .collapse-indicator::before,
.CodeMirror-foldgutter-open::after {
display: block;
width: 18px;
opacity: 0.3;
content: url('data:image/svg+xml; utf8, ');
}
.theme-dark .markdown-preview-view .collapse-indicator::before,
.theme-dark .CodeMirror-foldgutter-open::after {
content: url('data:image/svg+xml; utf8, ');
}
.theme-dark .markdown-preview-view .collapse-indicator::before {
margin-left: 2px;
}
.theme-dark .markdown-preview-view ul li .collapse-indicator::before {
margin-left: calc(1rem - var(--font-size-notes) + 0.125rem);
margin-top: 2px;
}
.theme-dark .markdown-preview-view ol li .collapse-indicator::before {
margin-left: calc(1rem - var(--font-size-notes));
margin-top: 2px;
}
.theme-dark .markdown-preview-view ul.contains-task-list li .collapse-indicator::before {
margin-left: 18px;
margin-top: 0;
}
.markdown-preview-view .is-collapsed .collapse-indicator::before,
.CodeMirror-foldgutter-folded::after {
display: block;
width: 18px;
/*height: 18px;*/
opacity: 0.3;
content: url('data:image/svg+xml; utf8, ');
}
.theme-dark .markdown-preview-view .is-collapsed .collapse-indicator::before,
.theme-dark .CodeMirror-foldgutter-folded::after {
content: url('data:image/svg+xml; utf8, ');
}
.CodeMirror-gutter-wrapper {
padding: 0;
width: 18px;
left: -2rem !important;
display: flex;
}
.CodeMirror-gutter-elt {
width: unset !important;
position: static;
height: 100%;
}
.CodeMirror-foldgutter-open,
.CodeMirror-foldgutter-folded {
color: var(--text-faint);
display: flex;
height: 100%;
align-items: center;
transition: color 100ms ease;
}
.cm-s-obsidian .CodeMirror-gutters {
width: 18px;
left: 8px !important;
padding-right: 0;
transform: translateX(2rem);
}
.CodeMirror-foldgutter {
width: 18px;
}
/*----------------------------------------------------------------
line numbers */
.CodeMirror-linenumbers {
margin-left: -26px;
}
.cm-s-obsidian .CodeMirror-linenumber {
width: 18px !important;
min-width: 18px !important;
position: absolute;
padding: 0;
display: flex;
justify-content: flex-end;
font-feature-settings: normal;
font-size: 0.75rem;
font-weight: 500;
color: var(--text-linenumber);
margin-left: -1.5rem;
left: 0 !important;
}
.cm-s-obsidian .CodeMirror-activeline-gutter > .CodeMirror-linenumber {
color: var(--text-linenumber-active);
}
/*foundation*/
/*----------------------------------------------------------------
Dropdown */
.dropdown {
background-color: rgba(0, 0, 0, 0.1);
border: 1px solid rgba(32, 34, 37, 0.5) !important;
border-radius: 6px;
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' height='20' width='20' viewBox='0 0 20 20' focusable='false' stroke-width='px' fill='%23B9BBBE' class='dropdown-svg'%3E%3Cpath d='M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z'%3E%3C/path%3E%3C/svg%3E");
background-repeat: no-repeat, repeat;
background-position: right 0.7em top 50%, 0 0;
background-size: 1.2em auto, 100%;
-webkit-transition: background-color .17s ease, color .17s ease;
transition: background-color .17s ease, color .17s ease;
outline: 0 !important;
cursor: pointer;
}
.dropdown:hover {
background-color: var(--background-modifier-form-field);
}
.dropdown:focus {
background-color: var(--background-modifier-form-field-highlighted);
}
/*----------------------------------------------------------------
Selections */
.markdown-preview-view .mod-highlighted {
background-color: var(--text-selection);
color: inherit;
}
/* flashing and selections when searching */
.is-flashing {
background-color: var(--text-highlight-bg);
transition: all 0.7s ease-in !important;
}
/*----------------------------------------------------------------
POPOVERS
----------------------------------------------------------------*/
.menu,
div.popover.hover-popover,
.suggestion-container {
background-color: var(--background-secondary);
border-radius: 4px;
border: none !important;
min-width: 15rem;
font-family: var(--font-editor);
font-size: 15px !important;
-webkit-box-shadow: var(--elevation-stroke), var(--elevation-high);
box-shadow: var(--elevation-stroke), var(--elevation-high);
}
/* Bigger popovers */
div.popover.hover-popover {
width: 35rem;
max-height: 25rem;
}
div.popover.hover-popover .markdown-preview-view {
font-size: 13px !important;
}
div.popover.hover-popover .markdown-embed-content .markdown-preview-section {
padding: 1.5rem;
}
.popover.hover-popover .markdown-embed {
height: 25rem;
}
div.popover.hover-popover .markdown-preview-view h1 {
font-size: 1.375rem;
}
div.popover.hover-popover .markdown-preview-view h2 {
font-size: 1.25rem;
}
div.popover.hover-popover .markdown-preview-view h3 {
font-size: 1.125rem;
}
div.popover.hover-popover .markdown-preview-view h4 {
font-size: 1rem;
}
div.popover.hover-popover .markdown-preview-view h5,
div.popover.hover-popover .markdown-preview-view h6 {
font-size: 0.875rem;
}
/*----------------------------------------------------------------
SUGGESTIONS
----------------------------------------------------------------*/
.suggestion-item,
.suggestion-empty {
font-size: 15px;
}
.suggestion .suggestion-item.is-selected {
background-color: var(--background-modifier-form-field-highlighted);
color: var(--text-on-accent);
}
.suggestion-highlight {
color: var(--interactive-accent) !important;
}
/*----------------------------------------------------------------
View Actions */
.view-action {
top: 0;
color: var(--text-muted) !important;
text-decoration: none !important;
}
.view-action:hover,
.view-action.is-active {
color: var(--text-normal) !important;
}
.view-actions {
padding: 5px 10px;
margin-left: auto;
}
.view-action.mod-close-leaf > svg {
margin-top: 1px;
}
.view-action.mod-pin-leaf > svg {
height: 15px;
}
/* icons at top of panes */
.file-view-actions a {
color: var(--text-muted) !important;
}
.file-view-actions a:hover {
color: var(--text-muted) !important;
}
/* Fading Status Bar and Note Controls (from MAGMA theme) */
.status-bar:hover .status-bar-item {
opacity: 1;
transition: opacity .1s ease-in-out;
}
.status-bar:not(:hover) .status-bar-item {
opacity: 0.25;
transition: opacity .25s ease-in-out;
}
.view-header:hover .view-actions {
opacity: 1;
transition: opacity .1s ease-in-out;
}
.view-header:not(:hover) .view-actions {
opacity: 0.25;
transition: opacity .25s ease-in-out;
}
/*file explorer folder icons */
.nav-folder-collapse-indicator {
display: none;
}
.nav-folder:not(.mod-root) .nav-folder-title-content::before {
display: inline-block;
content: "";
margin-right: 5px;
vertical-align: middle;
height: 16px;
width: 16px;
background-color: currentColor;
}
.nav-folder:not(.mod-root):not(.is-collapsed) .nav-folder-title-content::before {
-webkit-mask: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='lucide lucide-folder-open'%3E%3Cpath d='m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2'%3E%3C/path%3E%3C/svg%3E") no-repeat;
mask-size: 16px 16px;
width: 16px;
height: 16px;
}
.nav-folder:not(.mod-root).is-collapsed .nav-folder-title-content::before {
-webkit-mask: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='lucide lucide-folder'%3E%3Cpath d='M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z'%3E%3C/path%3E%3C/svg%3E") no-repeat;
mask-size: 16px 16px;
width: 16px;
height: 16px;
}
/*accented settings side headings*/
.vertical-tab-header-group-title {
color: var(--color-accent);
}
/*command palette styling*/
.suggestion-item.is-selected {
background-color: hsla(var(--interactive-accent-hsl), 0.8);
border-radius: 6px;
}
.prompt {
border-radius: 8px;
}
.suggestion-highlight {
color: var(--text-accent);
}
.suggestion-item.is-selected .suggestion-highlight {
color: white !important;
}
input.prompt-input {
box-shadow: rgba(0, 0, 0, 0.2) 0px 60px 40px -7px !important;
}
/*unorder + nested list styling*/
:is(.cm-formatting-list-ul, .markdown-rendered ul > li) > .list-bullet::after {
border: 1px solid var(--list-marker-color);
}
:is(
ul:not(li > ul) > li > ul > li,
ul:not(li > ul) > li > ul > li > ul > li > ul > li,
ul:not(li > ul) > li > ul > li > ul > li > ul > li > ul > li > ul > li,
ul:not(li > ul)
> li
> ul
> li
> ul
> li
> ul
> li
> ul
> li
> ul
> li
ul
> li
> ul
> li
)
> .list-bullet::after,
:is(
.HyperMD-list-line-2,
.HyperMD-list-line-4,
.HyperMD-list-line-6,
.HyperMD-list-line-8
)
.cm-formatting-list-ul
> .list-bullet::after {
background-color: transparent;
}