diff --git a/Justfile b/Justfile index 22c6982f..e8e6f4c3 100644 --- a/Justfile +++ b/Justfile @@ -1,5 +1,9 @@ set quiet := true +personal_settings := "true" + +#─────────────────────────────────────────────────────────────────────────────── + # INFO uses personal vaults saved in `~/.config/perma-repos.csv` build_and_push_to_local_vaults: #!/usr/bin/env zsh @@ -11,12 +15,17 @@ build_and_push_to_local_vaults: > /tmp/theme.css # PUSH TO LOCAL VAULTS - cut -d, -f2 "$HOME/.config/perma-repos.csv" | - sed "s|^~|$HOME|" | - xargs -I {} find {} -maxdepth 1 -name ".obsidian" | # only vaults - xargs dirname | # vault root - xargs -I {} cp -f "/tmp/theme.css" "{}/.obsidian/themes/Shimmering Focus/theme.css" - rm -f /tmp/theme.css + if [[ "{{ personal_settings }}" == "true" ]]; then + cut -d, -f2 "$HOME/.config/perma-repos.csv" | + sed "s|^~|$HOME|" | + xargs -I {} find {} -maxdepth 1 -name ".obsidian" | # only vaults + xargs dirname | # vault root + xargs -I {} cp -f "/tmp/theme.css" "{}/.obsidian/themes/Shimmering Focus/theme.css" + rm -f /tmp/theme.css + open -a "Obsidian" # macOS specific opener + fi - # OPEN OBSIDIAN - open -a "Obsidian" # macOS specific opener +format_and_check: + #!/usr/bin/env zsh + [[ "{{ personal_settings }}" != "true" ]] && return 0 + $HOME/.local/share/nvim/mason/bin/biome check --write --error-on-warnings --log-kind="compact" diff --git a/biome.jsonc b/biome.jsonc index 0967ef42..720fee4d 100644 --- a/biome.jsonc +++ b/biome.jsonc @@ -1 +1,18 @@ -{} +{ + "formatter": { + "useEditorconfig": true, + "lineWidth": 100, // FIX value from editorconfig not correctly applied + "formatWithErrors": true + }, + + "files": { + "ignore": ["./theme.css"] + }, + "vcs": { + "enabled": true, + "clientKind": "git", + "useIgnoreFile": true + }, + + "$schema": "/Users/chrisgrieser/.local/share/nvim/mason/packages/biome/node_modules/@biomejs/biome/configuration_schema.json" +} diff --git a/snippets/annotation-tags.css b/snippets/annotation-tags.css index 794ab0ac..0e80b46d 100644 --- a/snippets/annotation-tags.css +++ b/snippets/annotation-tags.css @@ -9,16 +9,52 @@ REQUIRED Obsidian installer version 1.5.3 or higher */ /* ──────────────────────────────────────────────────────────────────── */ -.tag:is([href="#agree"], [href="#critique"], [href="#data"], [href="#definition"], - [href="#disagree"], [href="#epistemic-break"], [href="#example"], [href="#gap"], - [href="#goal"], [href="#hypothesis"], [href="#idea"], [href="#important"], - [href="#litreview"], [href="#main"], [href="#method"], [href="#question"], - [href="#quote"], [href="#sidenote"], [href="#summary"], [href="#todo"]), -.cm-s-obsidian .cm-line span:is(.cm-tag-agree, .cm-tag-critique, .cm-tag-data, .cm-tag-definition, - .cm-tag-disagree, .cm-tag-epistemic-break, .cm-tag-example, .cm-tag-gap, - .cm-tag-goal, .cm-tag-hypothesis, .cm-tag-idea, .cm-tag-important, - .cm-tag-litreview, .cm-tag-main, .cm-tag-method, .cm-tag-question, - .cm-tag-quote, .cm-tag-sidenote, .cm-tag-summary, .cm-tag-todo) { +.tag:is( + [href="#agree"], + [href="#critique"], + [href="#data"], + [href="#definition"], + [href="#disagree"], + [href="#epistemic-break"], + [href="#example"], + [href="#gap"], + [href="#goal"], + [href="#hypothesis"], + [href="#idea"], + [href="#important"], + [href="#litreview"], + [href="#main"], + [href="#method"], + [href="#question"], + [href="#quote"], + [href="#sidenote"], + [href="#summary"], + [href="#todo"] + ), +.cm-s-obsidian + .cm-line + span:is( + .cm-tag-agree, + .cm-tag-critique, + .cm-tag-data, + .cm-tag-definition, + .cm-tag-disagree, + .cm-tag-epistemic-break, + .cm-tag-example, + .cm-tag-gap, + .cm-tag-goal, + .cm-tag-hypothesis, + .cm-tag-idea, + .cm-tag-important, + .cm-tag-litreview, + .cm-tag-main, + .cm-tag-method, + .cm-tag-question, + .cm-tag-quote, + .cm-tag-sidenote, + .cm-tag-summary, + .cm-tag-todo + ) { /* stylelint-disable-next-line no-unknown-custom-properties */ border-radius: var(--tag-radius); color: hsl(0 0% 100%); diff --git a/snippets/collapse-external-links.css b/snippets/collapse-external-links.css index 2957c7e6..cab3514d 100644 --- a/snippets/collapse-external-links.css +++ b/snippets/collapse-external-links.css @@ -1,11 +1,15 @@ /* Original idea by @deathau */ /* Hides external links in source mode */ -.cm-s-obsidian:not(.is-live-preview) .cm-line:not(.cm-active) .cm-string.cm-url:not(.cm-formatting) { +.cm-s-obsidian:not(.is-live-preview) + .cm-line:not(.cm-active) + .cm-string.cm-url:not(.cm-formatting) { font-size: 0; } -.cm-s-obsidian:not(.is-live-preview) .cm-line:not(.cm-active) .cm-string.cm-url:not(.cm-formatting)::after { +.cm-s-obsidian:not(.is-live-preview) + .cm-line:not(.cm-active) + .cm-string.cm-url:not(.cm-formatting)::after { content: "🔗"; font-size: calc(var(--font-text-size) * 0.9); position: relative; diff --git a/snippets/hidden-tab-bar-when-one-tab.css b/snippets/hidden-tab-bar-when-one-tab.css index 69eb884c..448cea25 100644 --- a/snippets/hidden-tab-bar-when-one-tab.css +++ b/snippets/hidden-tab-bar-when-one-tab.css @@ -1,11 +1,17 @@ /* ⚠️ Requires Obsidian installer version 1.1.8 or later. */ /* ───────────────────────────────────────────────────── */ /* hide tab bar when only one tab */ -body:not(.is-mobile) .mod-root .workspace-tab-header-container:not(:has(.workspace-tab-header + .workspace-tab-header)) { +body:not(.is-mobile) + .mod-root + .workspace-tab-header-container:not(:has(.workspace-tab-header + .workspace-tab-header)) { display: none; } /* hide inline title only when one more than tab */ -body:not(.is-mobile) .mod-root .workspace-tab-header-container:has(.workspace-tab-header + .workspace-tab-header) + .workspace-tab-container .inline-title { +body:not(.is-mobile) + .mod-root + .workspace-tab-header-container:has(.workspace-tab-header + .workspace-tab-header) + + .workspace-tab-container + .inline-title { display: none; } diff --git a/snippets/image-caption.css b/snippets/image-caption.css index 608c23da..620eecb0 100644 --- a/snippets/image-caption.css +++ b/snippets/image-caption.css @@ -1,8 +1,8 @@ /* add alt-text of images as caption */ .image-embed[alt]:not([alt$=".png"], [alt$=".jpg"], [alt$=".jpeg"], [alt$=".tiff"])::after { - content: attr(alt); - font-style: italic; - color: var(--text-muted); + content: attr(alt); + font-style: italic; + color: var(--text-muted); } /* centers image caption */ diff --git a/snippets/no-readable-line-length-on-tables.css b/snippets/no-readable-line-length-on-tables.css index 550aee98..a964a3aa 100644 --- a/snippets/no-readable-line-length-on-tables.css +++ b/snippets/no-readable-line-length-on-tables.css @@ -6,5 +6,3 @@ body:not(.is-mobile) .markdown-source-view:has(.HyperMD-table-2), body:not(.is-mobile) .markdown-preview-view:has(table) { --file-line-width: 100%; } - - diff --git a/snippets/private-mode.css b/snippets/private-mode.css deleted file mode 100644 index 2a9f8ae8..00000000 --- a/snippets/private-mode.css +++ /dev/null @@ -1,16 +0,0 @@ -.private-mode .data-link-text[data-link-cssclass*="private"], /* needs *= to catch "," in the yaml */ -.private-mode .private.private * { - font-family: "Flow Circular"; -} - -/* @settings -name: Private Mode -id: private-mode -settings: - - - id: private-mode - title: Private Mode - description: When enabled, all notes with the cssclass 'private' will be garbled. This setting is meant to be enabled temporarily during screen sharing. Install Supercharged Links and add 'cssclass' as a target attribute to also garble any links and occurences in the File Explorer and Quick Switcher. Note that note contents can still show up in views and sidebars created from plugins. - type: class-toggle - default: false -*/ diff --git a/snippets/relative-line-numbers.css b/snippets/relative-line-numbers.css index 93480e75..5c4779fe 100644 --- a/snippets/relative-line-numbers.css +++ b/snippets/relative-line-numbers.css @@ -15,39 +15,39 @@ body:not(.is-mobile) .cm-lineNumbers *:has(+ .cm-active)::before { content: "1"; } -body:not(.is-mobile) .cm-lineNumbers *:has(+*+ .cm-active)::before { +body:not(.is-mobile) .cm-lineNumbers *:has(+ * + .cm-active)::before { content: "2"; } -body:not(.is-mobile) .cm-lineNumbers *:has(+*+*+ .cm-active)::before { +body:not(.is-mobile) .cm-lineNumbers *:has(+ * + * + .cm-active)::before { content: "3"; } -body:not(.is-mobile) .cm-lineNumbers *:has(+*+*+*+ .cm-active)::before { +body:not(.is-mobile) .cm-lineNumbers *:has(+ * + * + * + .cm-active)::before { content: "4"; } -body:not(.is-mobile) .cm-lineNumbers *:has(+*+*+*+*+ .cm-active)::before { +body:not(.is-mobile) .cm-lineNumbers *:has(+ * + * + * + * + .cm-active)::before { content: "5"; } -body:not(.is-mobile) .cm-lineNumbers *:has(+*+*+*+*+*+ .cm-active)::before { +body:not(.is-mobile) .cm-lineNumbers *:has(+ * + * + * + * + * + .cm-active)::before { content: "6"; } -body:not(.is-mobile) .cm-lineNumbers *:has(+*+*+*+*+*+*+ .cm-active)::before { +body:not(.is-mobile) .cm-lineNumbers *:has(+ * + * + * + * + * + * + .cm-active)::before { content: "7"; } -body:not(.is-mobile) .cm-lineNumbers *:has(+*+*+*+*+*+*+*+ .cm-active)::before { +body:not(.is-mobile) .cm-lineNumbers *:has(+ * + * + * + * + * + * + * + .cm-active)::before { content: "8"; } -body:not(.is-mobile) .cm-lineNumbers *:has(+*+*+*+*+*+*+*+*+ .cm-active)::before { +body:not(.is-mobile) .cm-lineNumbers *:has(+ * + * + * + * + * + * + * + * + .cm-active)::before { content: "9"; } - /* numbers after */ +/* numbers after */ body:not(.is-mobile) .cm-lineNumbers .cm-active + *::before { content: "1"; } diff --git a/snippets/shortened-wordcount-statusbar.css b/snippets/shortened-wordcount-statusbar.css index 5220ad87..5e9055be 100644 --- a/snippets/shortened-wordcount-statusbar.css +++ b/snippets/shortened-wordcount-statusbar.css @@ -2,23 +2,23 @@ /* ────────────────────────────────────────────────────────────────────────── */ /* CONFIG values potentially need to be adjusted depending on the font */ body { - --cut-off-for-word: -2rem; - --cut-off-for-character: -4.94rem; + --cut-off-for-word: -2rem; + --cut-off-for-character: -4.94rem; } /* ────────────────────────────────────────────────────────────────────────── */ .plugin-word-count > .status-bar-item-segment { - &:first-child { - margin-right: var(--cut-off-for-word); - } + &:first-child { + margin-right: var(--cut-off-for-word); + } - &:nth-child(2) { - margin-right: var(--cut-off-for-character); - } + &:nth-child(2) { + margin-right: var(--cut-off-for-character); + } } .plugin-word-count > .status-bar-item-segment:nth-child(2), .plugin-word-count ~ .status-bar-item { - background-color: var(--status-bar-background); - padding-left: 0.5rem; + background-color: var(--status-bar-background); + padding-left: 0.5rem; } diff --git a/source/03 images tables embeds.css b/source/03 images tables embeds.css index 3f1ec373..d3b877a3 100644 --- a/source/03 images tables embeds.css +++ b/source/03 images tables embeds.css @@ -39,10 +39,7 @@ body .markdown-rendered tbody tr:nth-child(odd):hover { /* automatically turn off readable line length when there is a table */ .unrestricted-line-length-tables:not(.is-mobile) - :is(.markdown-source-view, .markdown-preview-view):has( - table, - .HyperMD-table-2 - ) { + :is(.markdown-source-view, .markdown-preview-view):has(table, .HyperMD-table-2) { --file-line-width: 100%; } @@ -64,9 +61,7 @@ body .markdown-rendered tbody tr:nth-child(odd):hover { body:not(.is-mobile, .max-image-size-toggle) .workspace-leaf-content:not([data-type="image"]) img:not(:active), -body:not(.is-mobile, .max-image-size-toggle) - .oz-image-widget-cm6 - > img:not(:active) { +body:not(.is-mobile, .max-image-size-toggle) .oz-image-widget-cm6 > img:not(:active) { max-width: calc(var(--image-size) * 1%); cursor: zoom-in; } @@ -143,9 +138,7 @@ body:not(.no-image-alttext-caption) .image-embed::after { } /* fix placement of link icon */ -body:not(.no-heading-background) - .markdown-embed[data-type="heading"] - .markdown-embed-link { +body:not(.no-heading-background) .markdown-embed[data-type="heading"] .markdown-embed-link { top: 9px; right: 14px; } diff --git a/source/03 markdown.css b/source/03 markdown.css index f735b34d..a486b5a8 100644 --- a/source/03 markdown.css +++ b/source/03 markdown.css @@ -59,8 +59,7 @@ u, } .cm-hmd-internal-link .cm-underline.cm-underline, -.markdown-preview-view - .internal-link:not(.multi-select-pill, .metadata-link-inner) { +.markdown-preview-view .internal-link:not(.multi-select-pill, .metadata-link-inner) { text-decoration: underline double 1.2px; } @@ -79,9 +78,7 @@ body:not(.show-urls) .cm-line:not(.cm-active) .cm-string.cm-url, } /* FIX link color on hover for in some cases not applied correctly */ -.markdown-source-view.mod-cm6 - :is(.cm-link-alias, .cm-hmd-internal-link) - .cm-underline:hover { +.markdown-source-view.mod-cm6 :is(.cm-link-alias, .cm-hmd-internal-link) .cm-underline:hover { color: var(--link-external-color-hover); } @@ -201,8 +198,7 @@ body .markdown-preview-view *:not(pre) > code, /** Code Blocks ──────────────────────────────────────────────────── */ /* Code blocks in Edit Mode */ -:is(.HyperMD-codeblock-end, .HyperMD-codeblock-begin) - .cm-formatting-code-block { +:is(.HyperMD-codeblock-end, .HyperMD-codeblock-begin) .cm-formatting-code-block { color: var(--text-muted); } @@ -303,18 +299,12 @@ body:not(.no-codeblock-line-numbers) .HyperMD-codeblock-begin { } body:not(.no-codeblock-line-numbers) - .HyperMD-codeblock.cm-line:not( - .HyperMD-codeblock-begin, - .HyperMD-codeblock-end - ) { + .HyperMD-codeblock.cm-line:not(.HyperMD-codeblock-begin, .HyperMD-codeblock-end) { padding-left: 2.8em; } body:not(.no-codeblock-line-numbers) - .HyperMD-codeblock:not( - .HyperMD-codeblock-begin, - .HyperMD-codeblock-end - )::before { + .HyperMD-codeblock:not(.HyperMD-codeblock-begin, .HyperMD-codeblock-end)::before { position: absolute; left: 0; width: 1.7em; @@ -332,9 +322,7 @@ body:not(.no-codeblock-line-numbers) } /* code block end */ -body:not(.no-codeblock-line-numbers) - .HyperMD-codeblock-end - .cm-formatting-code-block { +body:not(.no-codeblock-line-numbers) .HyperMD-codeblock-end .cm-formatting-code-block { padding: 2px 3.5px; margin-left: -4px; border-bottom-left-radius: var(--codeblock-roundness); @@ -351,9 +339,7 @@ body:not(.no-codeblock-line-numbers) border-bottom-left-radius: var(--radius-s); } -body:not(.no-codeblock-line-numbers) - .HyperMD-codeblock-end - .cm-formatting-code-block:first-child { +body:not(.no-codeblock-line-numbers) .HyperMD-codeblock-end .cm-formatting-code-block:first-child { /* "first-child" ensures that indented code blocks (e.g. in lists) do not look off */ background-color: var(--bg2); } @@ -364,9 +350,7 @@ body:not(.no-codeblock-line-numbers) white-space: pre; } -.markdown-reading-view - .markdown-preview-view - pre:not(.frontmatter, [class*="language-"]) { +.markdown-reading-view .markdown-preview-view pre:not(.frontmatter, [class*="language-"]) { overflow-x: scroll; } @@ -392,8 +376,7 @@ body.theme-light { padding-inline-start: 1.9em; } -.markdown-rendered - ul:not(.contains-task-list, .dataview-result-list-ul, .has-list-bullet) { +.markdown-rendered ul:not(.contains-task-list, .dataview-result-list-ul, .has-list-bullet) { padding-inline-start: 1em; } @@ -494,19 +477,14 @@ body:not(.no-lp-heading-level-indicator) content: "H6"; } -body:not(.no-lp-heading-level-indicator) - .is-live-preview - .cm-header - ~ .cm-header::before { +body:not(.no-lp-heading-level-indicator) .is-live-preview .cm-header ~ .cm-header::before { /* FIX only first header element gets the prefix */ display: none; } /* Headers with background colors */ body:not(.no-heading-background) .markdown-source-view .cm-line.HyperMD-header, -body:not(.no-heading-background) - .markdown-preview-view - :is(h1, h2, h3, h4, h5, h6) { +body:not(.no-heading-background) .markdown-preview-view :is(h1, h2, h3, h4, h5, h6) { background-color: var(--bg4); border: var(--thin-border); border-radius: var(--radius-s); @@ -528,10 +506,8 @@ body:not(.no-heading-background) /** Blockquotes ──────────────────────────────────────────────────── */ -.markdown-source-view:not(.is-live-preview) - .cm-line.HyperMD-quote.HyperMD-quote.HyperMD-quote { - border-left: var(--blockquote-border-thickness) solid - var(--blockquote-border-color); +.markdown-source-view:not(.is-live-preview) .cm-line.HyperMD-quote.HyperMD-quote.HyperMD-quote { + border-left: var(--blockquote-border-thickness) solid var(--blockquote-border-color); } .cm-hmd-indent-in-quote, @@ -566,8 +542,7 @@ body:not(.no-heading-background) } /* less padding between quote blocks */ -.HyperMD-quote:not(.HyperMD-callout) - + .HyperMD-quote.HyperMD-quote.HyperMD-quote { +.HyperMD-quote:not(.HyperMD-callout) + .HyperMD-quote.HyperMD-quote.HyperMD-quote { padding-top: 0; } @@ -591,10 +566,7 @@ body:not(.no-heading-background) } /* HACK live-preview: prevent rounded corners with consecutive block quotes */ -body:not(.angular-shapes) - .is-live-preview - .HyperMD-quote - + .HyperMD-quote::before { +body:not(.angular-shapes) .is-live-preview .HyperMD-quote + .HyperMD-quote::before { margin-top: -0.5em; border-bottom-left-radius: var(--radius-s); } @@ -633,8 +605,7 @@ body:not(.angular-shapes) } /* Reading Mode */ -:is(.markdown-preview-view, .community-modal-readme, .is-live-preview) - blockquote { +:is(.markdown-preview-view, .community-modal-readme, .is-live-preview) blockquote { padding: 4px 12px; border-radius: var(--radius-s); } @@ -878,11 +849,7 @@ body:not(.hide-trailing-whitespace) > .cm-contentContainer > .cm-content > .cm-line - > :is( - .cm-trailing-space-a, - .cm-trailing-space-b, - .cm-trailing-space-new-line - )::after { + > :is(.cm-trailing-space-a, .cm-trailing-space-b, .cm-trailing-space-new-line)::after { font-size: 1em; font-weight: 600; color: var(--text-faint); diff --git a/source/04 search-container deletion-prompt.css b/source/04 search-container deletion-prompt.css index 7f25eb35..ce0602c9 100644 --- a/source/04 search-container deletion-prompt.css +++ b/source/04 search-container deletion-prompt.css @@ -21,9 +21,6 @@ body:not(.show-close-buttons, .is-mobile) .document-search-close-button { body:not(.full-info-on-deletion-prompt) .modal-container.mod-confirmation.mod-dim > .modal - :is( - .modal-content > p:not(.mod-warning), - .modal-button-container > .mod-checkbox - ) { + :is(.modal-content > p:not(.mod-warning), .modal-button-container > .mod-checkbox) { display: none; } diff --git a/source/04 settings plugin-theme-browser.css b/source/04 settings plugin-theme-browser.css index a0c97299..5ca739c3 100644 --- a/source/04 settings plugin-theme-browser.css +++ b/source/04 settings plugin-theme-browser.css @@ -76,9 +76,7 @@ body:not(.show-close-buttons, .is-mobile) .modal-close-button { /* ───────────────────────────────────────────────── */ /** Individual Setting Pages ──────────────────────────────────────────────────── */ -.installed-plugins-container - .setting-item-description - div:nth-child(2)::first-letter { +.installed-plugins-container .setting-item-description div:nth-child(2)::first-letter { text-transform: lowercase; } @@ -155,8 +153,7 @@ body .vertical-tab-content { border-radius: var(--radius-s) var(--radius-s) 0 0; } -.setting-item-heading:not(:first-child, .style-settings-heading) - .setting-item-name { +.setting-item-heading:not(:first-child, .style-settings-heading) .setting-item-name { margin-top: 12px; } @@ -177,8 +174,7 @@ body .vertical-tab-content { margin-bottom: 24px; } -.modal.mod-settings - :is(h3, h4, h5, h6, h1:not(:first-child), h2:not(:first-child)) { +.modal.mod-settings :is(h3, h4, h5, h6, h1:not(:first-child), h2:not(:first-child)) { margin-top: 12px; margin-bottom: 4px; letter-spacing: calc(var(--heading-letter-spacing) * 0.5); @@ -288,9 +284,7 @@ body .vertical-tab-content { padding: 0; } -:is(.mod-community-theme, .mod-community-plugin) - .modal-setting-nav-bar - .clickable-icon { +:is(.mod-community-theme, .mod-community-plugin) .modal-setting-nav-bar .clickable-icon { position: sticky; height: 30px; } diff --git a/source/06 notice dropdown input sliders context-menu.css b/source/06 notice dropdown input sliders context-menu.css index a4125ac3..641f5cda 100644 --- a/source/06 notice dropdown input sliders context-menu.css +++ b/source/06 notice dropdown input sliders context-menu.css @@ -95,7 +95,6 @@ body:not(.show-close-buttons, .is-mobile) .search-input-clear-button { display: none; } - /* ───────────────────────────────────────────────── */ /** Context Menu (Right-click) ──────────────────────────────────────────────────── */ diff --git a/source/06 progress-bars.css b/source/06 progress-bars.css index 2c3c3b0c..204de112 100644 --- a/source/06 progress-bars.css +++ b/source/06 progress-bars.css @@ -1,4 +1,3 @@ - /* ───────────────────────────────────────────────── */ /** Progress Bars ──────────────────────────────────────────────────── */ diff --git a/source/07 frontmatter and metadata.css b/source/07 frontmatter and metadata.css index a2959049..853d1671 100644 --- a/source/07 frontmatter and metadata.css +++ b/source/07 frontmatter and metadata.css @@ -22,13 +22,7 @@ - second child = colon between key and value in unordered list - third child = colon between key and value - last child = bracket to close of array brackets, see #194 */ -.cm-line - .cm-hmd-frontmatter.cm-meta:is( - :first-child, - :nth-child(2), - :nth-child(3), - :last-child - ), +.cm-line .cm-hmd-frontmatter.cm-meta:is(:first-child, :nth-child(2), :nth-child(3), :last-child), .frontmatter.language-yaml .punctuation { font-weight: 600; color: var(--bold-color); diff --git a/source/08 statusbar.css b/source/08 statusbar.css index ea43a24e..34d3841f 100644 --- a/source/08 statusbar.css +++ b/source/08 statusbar.css @@ -1,11 +1,8 @@ -.hide-pandoc-reference-list-status-bar - .status-bar-item.plugin-obsidian-pandoc-reference-list, +.hide-pandoc-reference-list-status-bar .status-bar-item.plugin-obsidian-pandoc-reference-list, .hide-longform-status-bar .status-bar-item.plugin-longform, -.hide-languagetool-status-bar - .status-bar-item.plugin-obsidian-languagetool-plugin, +.hide-languagetool-status-bar .status-bar-item.plugin-obsidian-languagetool-plugin, .hide-pane-relief-focus-lock-status-bar .status-bar-item.plugin-pane-relief, -.hide-electron-window-tweaker-status-bar - .status-bar-item.plugin-obsidian-electron-window-tweaker, +.hide-electron-window-tweaker-status-bar .status-bar-item.plugin-obsidian-electron-window-tweaker, .hide-properties-in-statusbar .status-bar-item.plugin-properties, .hide-backlinks-status-bar .status-bar-item.plugin-backlink { display: none; diff --git a/source/09 header tabs.css b/source/09 header tabs.css index 2976c029..7394f4e9 100644 --- a/source/09 header tabs.css +++ b/source/09 header tabs.css @@ -33,9 +33,7 @@ body:not(.normal-header-bar, .is-mobile) .workspace-leaf-content .view-header { } /* Note Path Breadcrumbs */ -body:not(.normal-header-bar, .is-mobile) - .workspace-leaf-content - .view-header-title-container { +body:not(.normal-header-bar, .is-mobile) .workspace-leaf-content .view-header-title-container { position: absolute; top: 35px; right: 1.1rem; @@ -67,10 +65,7 @@ body:not(.normal-header-bar, .is-mobile) .view-header-breadcrumb { } /* remaining buttons (by default only the "more options" button) */ -body:not(.normal-header-bar, .is-mobile) - .workspace-leaf-content - .view-header - .view-actions { +body:not(.normal-header-bar, .is-mobile) .workspace-leaf-content .view-header .view-actions { position: absolute; top: 4px; right: 2px; @@ -147,9 +142,7 @@ body:not(.show-tab-list-button) .workspace-tab-header-tab-list { body:not(.normal-tab-bar, .is-mobile) .mod-root - .workspace-tab-header-container:not( - :has(.workspace-tab-header + .workspace-tab-header) - ) { + .workspace-tab-header-container:not(:has(.workspace-tab-header + .workspace-tab-header)) { display: none; } @@ -171,9 +164,7 @@ body.mod-windows:not(.normal-tab-bar, .show-sidebar-header-buttons) /* hide inline title when *more* than one tab */ body:not(.is-mobile).hide-inline-title-when-more-than-one-tab .mod-root - .workspace-tab-header-container:has( - .workspace-tab-header + .workspace-tab-header - ) + .workspace-tab-header-container:has(.workspace-tab-header + .workspace-tab-header) + .workspace-tab-container .inline-title { display: none; @@ -193,13 +184,11 @@ body:not(.is-mobile).hide-inline-title-when-more-than-one-tab height: 0; } -.workspace-tab-header-inner.workspace-tab-header-inner:hover.workspace-tab-header-inner:hover - * { +.workspace-tab-header-inner.workspace-tab-header-inner:hover.workspace-tab-header-inner:hover * { color: var(--hover-accent); } -.workspace-tab-header-inner.workspace-tab-header-inner:hover.workspace-tab-header-inner:active - * { +.workspace-tab-header-inner.workspace-tab-header-inner:hover.workspace-tab-header-inner:active * { color: var(--color-accent); } @@ -283,13 +272,11 @@ body .workspace .mod-root .workspace-tab-header { ──────────────────────────────────────────────────── */ /* add favicon */ -.workspace-tab-header[data-type="release-notes"] - .workspace-tab-header-inner-icon { +.workspace-tab-header[data-type="release-notes"] .workspace-tab-header-inner-icon { display: none; } -.workspace-tab-header[data-type="release-notes"] - .workspace-tab-header-inner-title::before { +.workspace-tab-header[data-type="release-notes"] .workspace-tab-header-inner-title::before { position: relative; top: 2px; padding-right: 2px; diff --git a/source/10 sidebars.css b/source/10 sidebars.css index 943e5d9f..180f1797 100644 --- a/source/10 sidebars.css +++ b/source/10 sidebars.css @@ -26,11 +26,7 @@ body.mod-windows:not(.show-sidebar-header-buttons) .titlebar { height: 35px; } -.is-hidden-frameless.mod-windows:not( - .is-grabbing, - .is-fullscreen, - .show-sidebar-header-buttons - ) +.is-hidden-frameless.mod-windows:not(.is-grabbing, .is-fullscreen, .show-sidebar-header-buttons) .mod-top .workspace-tab-header-container { -webkit-app-region: no-drag; @@ -109,9 +105,7 @@ body.mod-macos.is-hidden-frameless:not(.is-popout-window) border-radius: 0; } -:is(.mod-left-split, .mod-right-split) - .mod-top - .workspace-tab-header-container-inner { +:is(.mod-left-split, .mod-right-split) .mod-top .workspace-tab-header-container-inner { padding-bottom: 4px; margin-top: 4px; } diff --git a/source/12 folds search-matches.css b/source/12 folds search-matches.css index 4f6f8582..a6f8e03f 100644 --- a/source/12 folds search-matches.css +++ b/source/12 folds search-matches.css @@ -20,17 +20,14 @@ body .markdown-rendered .search-highlight > div.is-active { /* ────────────────────────────────────────────────────────────────────────── */ /* FOLDS */ -:is(.style-settings-collapse-indicator, .collapse-icon) - > .svg-icon.svg-icon.svg-icon.svg-icon { +:is(.style-settings-collapse-indicator, .collapse-icon) > .svg-icon.svg-icon.svg-icon.svg-icon { width: 0.75em; height: 0.75em; margin-left: -0.35em; stroke-width: 5px; } -:is(.markdown-preview-view, .cm-line:not(.cm-active)) - .collapse-icon - > .svg-icon.svg-icon, +:is(.markdown-preview-view, .cm-line:not(.cm-active)) .collapse-icon > .svg-icon.svg-icon, body .cm-s-obsidian .is-collapsed ~ .cm-formatting-list { color: var(--text-faint); } diff --git a/source/13 vim mode.css b/source/13 vim mode.css index 23137ad1..91b0ab7b 100644 --- a/source/13 vim mode.css +++ b/source/13 vim mode.css @@ -98,9 +98,7 @@ /** Vim: Relative Line Numbers ──────────────────────────────────────────────────── */ -.use-relative-line-numbers:not(.is-mobile) - .cm-lineNumbers - .cm-gutterElement:not(.cm-active) { +.use-relative-line-numbers:not(.is-mobile) .cm-lineNumbers .cm-gutterElement:not(.cm-active) { font-size: 0; } @@ -110,27 +108,19 @@ } /* numbers before */ -.use-relative-line-numbers:not(.is-mobile) - .cm-lineNumbers - *:has(+ .cm-active)::before { +.use-relative-line-numbers:not(.is-mobile) .cm-lineNumbers *:has(+ .cm-active)::before { content: "1"; } -.use-relative-line-numbers:not(.is-mobile) - .cm-lineNumbers - *:has(+ * + .cm-active)::before { +.use-relative-line-numbers:not(.is-mobile) .cm-lineNumbers *:has(+ * + .cm-active)::before { content: "2"; } -.use-relative-line-numbers:not(.is-mobile) - .cm-lineNumbers - *:has(+ * + * + .cm-active)::before { +.use-relative-line-numbers:not(.is-mobile) .cm-lineNumbers *:has(+ * + * + .cm-active)::before { content: "3"; } -.use-relative-line-numbers:not(.is-mobile) - .cm-lineNumbers - *:has(+ * + * + * + .cm-active)::before { +.use-relative-line-numbers:not(.is-mobile) .cm-lineNumbers *:has(+ * + * + * + .cm-active)::before { content: "4"; } @@ -165,48 +155,23 @@ } /* numbers after */ -.use-relative-line-numbers:not(.is-mobile) - .cm-lineNumbers - .cm-active - + *::before { +.use-relative-line-numbers:not(.is-mobile) .cm-lineNumbers .cm-active + *::before { content: "1"; } -.use-relative-line-numbers:not(.is-mobile) - .cm-lineNumbers - .cm-active - + * - + *::before { +.use-relative-line-numbers:not(.is-mobile) .cm-lineNumbers .cm-active + * + *::before { content: "2"; } -.use-relative-line-numbers:not(.is-mobile) - .cm-lineNumbers - .cm-active - + * - + * - + *::before { +.use-relative-line-numbers:not(.is-mobile) .cm-lineNumbers .cm-active + * + * + *::before { content: "3"; } -.use-relative-line-numbers:not(.is-mobile) - .cm-lineNumbers - .cm-active - + * - + * - + * - + *::before { +.use-relative-line-numbers:not(.is-mobile) .cm-lineNumbers .cm-active + * + * + * + *::before { content: "4"; } -.use-relative-line-numbers:not(.is-mobile) - .cm-lineNumbers - .cm-active - + * - + * - + * - + * - + *::before { +.use-relative-line-numbers:not(.is-mobile) .cm-lineNumbers .cm-active + * + * + * + * + *::before { content: "5"; } @@ -274,10 +239,7 @@ /* ignoring tooltips in settings, since they are relevant there, e.g. for sliders */ .no-mouse-hovers div:not(.modal-container) + .tooltip, -.no-mouse-hovers - .is-live-preview - .cm-embed-block:not(.cm-table-widget):hover - .edit-block-button { +.no-mouse-hovers .is-live-preview .cm-embed-block:not(.cm-table-widget):hover .edit-block-button { display: none; } diff --git a/source/14 active note or block.css b/source/14 active note or block.css index 770c1746..2e7e706e 100644 --- a/source/14 active note or block.css +++ b/source/14 active note or block.css @@ -33,19 +33,16 @@ body:not(.no-active-line-highlight, .active-line-background) border-left: 3px solid var(--basic-border-color); } -.active-line-background - .cm-active.cm-line:not(.HyperMD-quote, .HyperMD-codeblock) { +.active-line-background .cm-active.cm-line:not(.HyperMD-quote, .HyperMD-codeblock) { padding-left: 4px; border-radius: var(--radius-s); } -.theme-dark.active-line-background - .cm-active.cm-line:not(.HyperMD-quote, .HyperMD-codeblock) { +.theme-dark.active-line-background .cm-active.cm-line:not(.HyperMD-quote, .HyperMD-codeblock) { background-color: var(--bg4); } -.theme-light.active-line-background - .cm-active.cm-line:not(.HyperMD-quote, .HyperMD-codeblock) { +.theme-light.active-line-background .cm-active.cm-line:not(.HyperMD-quote, .HyperMD-codeblock) { background-color: var(--bg3); } @@ -61,9 +58,6 @@ body:not(.no-active-line-highlight) color: var(--active-line-color); } -body:not(.no-active-line-highlight) - .is-live-preview - .cm-active - .list-bullet::after { +body:not(.no-active-line-highlight) .is-live-preview .cm-active .list-bullet::after { background-color: var(--active-line-color); } diff --git a/source/15 core-plugins.css b/source/15 core-plugins.css index 0619b1af..44a5d45d 100644 --- a/source/15 core-plugins.css +++ b/source/15 core-plugins.css @@ -28,10 +28,7 @@ body:not(.show-bookmark-icons) .bookmark.tree-item-self .tree-item-icon { } /* alternating row colors */ -.workspace-leaf-content[data-type="bookmarks"] - > div - > div - > .tree-item:nth-child(odd) { +.workspace-leaf-content[data-type="bookmarks"] > div > div > .tree-item:nth-child(odd) { background-color: var(--a-row); } @@ -78,9 +75,7 @@ body .canvas-card-menu { ──────────────────────────────────────────────────── */ /* move the case-sentivity button to the side when the close button is hidden */ -body:not(.show-close-buttons, .is-mobile) - .search-input-container - input:not(:placeholder-shown) { +body:not(.show-close-buttons, .is-mobile) .search-input-container input:not(:placeholder-shown) { padding-inline-end: 28px; & ~ .input-right-decorator { @@ -96,11 +91,7 @@ body:not(.show-close-buttons, .is-mobile) padding: 0 0 24px; } -.nav-files-container - > div - > .nav-folder - > .nav-folder-title - > .nav-folder-title-content { +.nav-files-container > div > .nav-folder > .nav-folder-title > .nav-folder-title-content { font-weight: 600; } @@ -119,10 +110,7 @@ body:not(.show-file-explorer-navigation) /* optionally hide attachment folders */ .hide-attachment-folders - .nav-folder-title:is( - [data-path$="/attachments" i], - [data-path="attachments" i] - ) { + .nav-folder-title:is([data-path$="/attachments" i], [data-path="attachments" i]) { display: none; } @@ -142,9 +130,7 @@ body .outgoing-link-pane .search-result-container { } /* hide "links" and "unlinked mentions" headings */ -body:not(.normal-out-back-links) - :is(.backlink-pane, .outgoing-link-pane) - > .tree-item-self { +body:not(.normal-out-back-links) :is(.backlink-pane, .outgoing-link-pane) > .tree-item-self { display: none; } @@ -163,9 +149,7 @@ body:not(.normal-out-back-links) /* ───────────────────────────────────────────────── */ /** Inline Backlinks ──────────────────────────────────────────────────── */ -:is(.markdown-source-view, .markdown-preview-view) - .backlink-pane - > .tree-item-self { +:is(.markdown-source-view, .markdown-preview-view) .backlink-pane > .tree-item-self { background-color: var(--bg2); } @@ -194,16 +178,12 @@ body:not(.classic-inline-backlinks) display: none; } -body:not(.classic-inline-backlinks) - .embedded-backlinks - .search-result-container { +body:not(.classic-inline-backlinks) .embedded-backlinks .search-result-container { padding: 0; margin-left: 0; } -body:not(.classic-inline-backlinks) - .embedded-backlinks - .tree-item-self.tree-item-self { +body:not(.classic-inline-backlinks) .embedded-backlinks .tree-item-self.tree-item-self { padding: 0; font-weight: 500; line-height: var(--line-height-normal); @@ -215,22 +195,15 @@ body:not(.classic-inline-backlinks) .embedded-backlinks .tree-item-inner { text-decoration: underline double 1px; } -body:not(.classic-inline-backlinks) - .embedded-backlinks - .tree-item-self:hover - .tree-item-inner { +body:not(.classic-inline-backlinks) .embedded-backlinks .tree-item-self:hover .tree-item-inner { color: var(--hover-accent); } -body:not(.classic-inline-backlinks) - .embedded-backlinks - .tree-item.search-result { +body:not(.classic-inline-backlinks) .embedded-backlinks .tree-item.search-result { margin: 0; } -body:not(.classic-inline-backlinks) - .embedded-backlinks - .tree-item-self::before { +body:not(.classic-inline-backlinks) .embedded-backlinks .tree-item-self::before { margin-right: 6px; font-weight: 700; color: var(--text-faint); @@ -238,15 +211,11 @@ body:not(.classic-inline-backlinks) } /* fix for writing/longform notes */ -body:not(.classic-inline-backlinks) - :is(.writing, .longform-leaf) - .search-result-file-title { +body:not(.classic-inline-backlinks) :is(.writing, .longform-leaf) .search-result-file-title { font-size: calc(var(--longform-font-size) * 0.9); } -body:not(.classic-inline-backlinks) - :is(.writing, .longform-leaf) - .embedded-backlinks::before { +body:not(.classic-inline-backlinks) :is(.writing, .longform-leaf) .embedded-backlinks::before { font-size: calc(var(--longform-font-size) * 1); } @@ -276,22 +245,13 @@ body:not(.classic-inline-backlinks) } /* less spacing since collapse icon is to the left */ -.workspace-leaf-content[data-type="outline"] - > .view-content - > div - > .tree-item - > .tree-item-self { +.workspace-leaf-content[data-type="outline"] > .view-content > div > .tree-item > .tree-item-self { padding-left: 0.75em; } /* alternating row colors */ -.workspace-leaf-content[data-type="outline"] - > .view-content - > div - > .tree-item:nth-child(odd), -.workspace-leaf-content[data-type="outline"] - .tree-item-children - .tree-item:nth-child(odd) { +.workspace-leaf-content[data-type="outline"] > .view-content > div > .tree-item:nth-child(odd), +.workspace-leaf-content[data-type="outline"] .tree-item-children .tree-item:nth-child(odd) { background-color: var(--a-row); } @@ -304,9 +264,7 @@ body:not(.classic-inline-backlinks) background-color: transparent; } -body:not(.show-outline-buttons) - .workspace-leaf-content[data-type="outline"] - .nav-header { +body:not(.show-outline-buttons) .workspace-leaf-content[data-type="outline"] .nav-header { display: none; } @@ -325,9 +283,7 @@ body:not(.show-outline-buttons) } /* always display search input box */ -.show-outline-buttons - .workspace-leaf-content[data-type="outline"] - .search-input-container { +.show-outline-buttons .workspace-leaf-content[data-type="outline"] .search-input-container { /* stylelint-disable-next-line declaration-no-important */ display: block !important; flex-grow: 1; diff --git a/source/16 community-plugins.css b/source/16 community-plugins.css index 718065c8..4c746790 100644 --- a/source/16 community-plugins.css +++ b/source/16 community-plugins.css @@ -22,10 +22,7 @@ body:not(.normal-header-bar) #cMenuToolbarModalBar.top { } /* adjustments for hidden header bar */ -body:not(.normal-header-bar, .is-mobile) - .projects-container - .container.primary - .right { +body:not(.normal-header-bar, .is-mobile) .projects-container .container.primary .right { margin-right: 30px; } @@ -119,8 +116,7 @@ img.link-favicon.link-favicon { border-radius: unset; } -.theme-light - .link-favicon:is([data-host^="github.com"], [data-host^="raw.github"]) { +.theme-light .link-favicon:is([data-host^="github.com"], [data-host^="raw.github"]) { filter: invert(0.2); } @@ -239,10 +235,7 @@ body .cm-matched-string { padding: 6px 0; } -.dynamic-highlights-settings - .highlighter-container - .highlighter-details - .setting-item-info { +.dynamic-highlights-settings .highlighter-container .highlighter-details .setting-item-info { margin-right: 6px; } @@ -357,20 +350,14 @@ body .another-quick-switcher__status__count-input { } .another-quick-switcher__phantom_item - :is( - .another-quick-switcher__item__icon, - .another-quick-switcher__item__directory - ), + :is(.another-quick-switcher__item__icon, .another-quick-switcher__item__directory), .suggestion-item:hover .another-quick-switcher__phantom_item { filter: saturate(60%); } .suggestion-item:hover .another-quick-switcher__phantom_item - :is( - .another-quick-switcher__item__icon, - .another-quick-switcher__item__directory - ), + :is(.another-quick-switcher__item__icon, .another-quick-switcher__item__directory), .suggestion-item:hover .another-quick-switcher__phantom_item { color: var(--hover-accent); filter: saturate(60%); @@ -381,8 +368,7 @@ body .another-quick-switcher__status__count-input { display: none; } -.another-quick-switcher__starred_item - .another-quick-switcher__item__entry::before { +.another-quick-switcher__starred_item .another-quick-switcher__item__entry::before { padding-right: 5px; content: "★"; } @@ -496,8 +482,7 @@ body .another-quick-switcher__item__description { content: "In: "; } -body - .another-quick-switcher__grep__path-input.another-quick-switcher__grep__path-input { +body .another-quick-switcher__grep__path-input.another-quick-switcher__grep__path-input { margin-left: 0; background-color: transparent; border: none; @@ -529,8 +514,7 @@ body ──────────────────────────────────────────────────── */ /* inherits alternate row colors from file explorer */ -.workspace-leaf-content[data-type="recent-files"] - .nav-file-title.nav-file-title.nav-file-title { +.workspace-leaf-content[data-type="recent-files"] .nav-file-title.nav-file-title.nav-file-title { padding-right: 0; padding-left: 6px; } @@ -619,8 +603,7 @@ body /* Styling from the "Tables" Section mostly applies */ /* less indentation to save space */ -:is(.block-language-dataview, .block-language-dataviewjs) - ul.contains-task-list { +:is(.block-language-dataview, .block-language-dataviewjs) ul.contains-task-list { --list-indent: 0.3em; padding-inline-start: 0; } @@ -669,9 +652,7 @@ body .dataview:not(.task-list-item-checkbox):hover { font-size: 70%; } -.is-live-preview - .block-language-dataviewjs - :is(h1, h2, h3, h4, h5, h6):first-child { +.is-live-preview .block-language-dataviewjs :is(h1, h2, h3, h4, h5, h6):first-child { margin-top: 4px; } diff --git a/source/17 style settings plugin.css b/source/17 style settings plugin.css index 05d1e5b2..c211661b 100644 --- a/source/17 style settings plugin.css +++ b/source/17 style settings plugin.css @@ -104,9 +104,7 @@ body /** Style Settings: As Tab ──────────────────────────────────────────────────── */ -.workspace-leaf-content[data-type="style-settings"] - .view-content - .setting-item:first-child { +.workspace-leaf-content[data-type="style-settings"] .view-content .setting-item:first-child { /* avoid collision with three dots button */ padding-top: 12px; } @@ -116,10 +114,7 @@ body } /* FIX for https://github.com/mgmeyers/obsidian-style-settings/issues/104 */ -body - .view-content - .style-settings-container - .setting-item:not(.setting-item-heading) { +body .view-content .style-settings-container .setting-item:not(.setting-item-heading) { flex-direction: row; } @@ -146,8 +141,7 @@ body display: none; } -body - .setting-item.setting-item.setting-item.setting-item[data-id="author-info"] { +body .setting-item.setting-item.setting-item.setting-item[data-id="author-info"] { margin-top: 40px; } @@ -219,11 +213,7 @@ body } .style-settings-container - .setting-item:is( - [data-id="highlight-hue-1"], - [data-id^="bg-hue"], - [data-id^="longform-bg-hue"] - ) + .setting-item:is([data-id="highlight-hue-1"], [data-id^="bg-hue"], [data-id^="longform-bg-hue"]) input.slider { height: 0.8em; background: var(--hue-scale); @@ -231,28 +221,16 @@ body } .style-settings-container - .setting-item:is( - [data-id="highlight-hue-1"], - [data-id^="bg-hue"], - [data-id^="longform-bg-hue"] - ) + .setting-item:is([data-id="highlight-hue-1"], [data-id^="bg-hue"], [data-id^="longform-bg-hue"]) input.slider::after, .style-settings-container - .setting-item:is( - [data-id="highlight-hue-1"], - [data-id^="bg-hue"], - [data-id^="longform-bg-hue"] - ) + .setting-item:is([data-id="highlight-hue-1"], [data-id^="bg-hue"], [data-id^="longform-bg-hue"]) input.slider::before { display: none; } .style-settings-container - .setting-item:is( - [data-id="highlight-hue-1"], - [data-id^="bg-hue"], - [data-id^="longform-bg-hue"] - ) + .setting-item:is([data-id="highlight-hue-1"], [data-id^="bg-hue"], [data-id^="longform-bg-hue"]) input.slider::-webkit-slider-thumb { position: relative; top: -0.7em; @@ -263,9 +241,7 @@ body } /* DEMO COLOR BOX */ -.style-settings-container - .setting-item[data-id="highlight-hue-1"] - .setting-item-control::before { +.style-settings-container .setting-item[data-id="highlight-hue-1"] .setting-item-control::before { content: " "; position: relative; left: -3em; diff --git a/source/18 longform plugin.css b/source/18 longform plugin.css index 3b63b0cb..3b4f5cbf 100644 --- a/source/18 longform plugin.css +++ b/source/18 longform plugin.css @@ -17,8 +17,7 @@ this to the active tab would require nested `:has()` which isn't supported */ /** Longform Sidebar ─────────────────────────────────────────────────── */ -.workspace-leaf-content[data-type="VIEW_TYPE_LONGFORM_EXPLORER"] - .tab-panel-container { +.workspace-leaf-content[data-type="VIEW_TYPE_LONGFORM_EXPLORER"] .tab-panel-container { padding-right: 0; padding-left: 0; } @@ -122,22 +121,16 @@ div#select-projects select { background-color: var(--nav-item-background-hover); } -#scene-list - .scene-container:hover - .longform-scene-number.longform-scene-number { +#scene-list .scene-container:hover .longform-scene-number.longform-scene-number { color: var(--hover-accent); } /* Scene Number */ -#scene-list - .scene-container[data-scene-indent="0"] - .longform-scene-number::after { +#scene-list .scene-container[data-scene-indent="0"] .longform-scene-number::after { content: "."; } -#scene-list - .scene-container:not([data-scene-indent="0"]) - .longform-scene-number::after { +#scene-list .scene-container:not([data-scene-indent="0"]) .longform-scene-number::after { display: none; } @@ -206,9 +199,7 @@ button.longform-remove-step-button.longform-remove-step-button.longform-remove-s box-shadow: none; } -body - .longform-compile-container.longform-compile-container - .longform-workflow-picker-container { +body .longform-compile-container.longform-compile-container .longform-workflow-picker-container { margin-bottom: 8px; border-bottom-width: 2px; } @@ -260,17 +251,14 @@ button.longform-remove-step-button.longform-remove-step-button.longform-remove-s content: "home"; } -.workspace-leaf-content[data-type="VIEW_TYPE_LONGFORM_EXPLORER"] - .tabs - .tab-list { +.workspace-leaf-content[data-type="VIEW_TYPE_LONGFORM_EXPLORER"] .tabs .tab-list { padding: 4px 4px 2px 6px; margin: 0; border-bottom: var(--basic-border); } .current-draft-path::before, -.workspace-leaf-content[data-type="VIEW_TYPE_LONGFORM_EXPLORER"] - button::before { +.workspace-leaf-content[data-type="VIEW_TYPE_LONGFORM_EXPLORER"] button::before { font-family: var(--icon-font); font-size: calc(1.2 * var(--font-text-size)); } @@ -309,17 +297,14 @@ button.longform-remove-step-button.longform-remove-step-button.longform-remove-s } /* selected */ -.workspace-leaf-content[data-type="VIEW_TYPE_LONGFORM_EXPLORER"] - button.selected.selected.selected { +.workspace-leaf-content[data-type="VIEW_TYPE_LONGFORM_EXPLORER"] button.selected.selected.selected { color: var(--text-normal); background-color: var(--nav-item-background-hover); } /* hovered */ .current-draft-path.current-draft-path.current-draft-path.current-draft-path:hover, -.workspace-leaf-content[data-type="VIEW_TYPE_LONGFORM_EXPLORER"] - .tab-list.tab-list - button:hover { +.workspace-leaf-content[data-type="VIEW_TYPE_LONGFORM_EXPLORER"] .tab-list.tab-list button:hover { color: var(--icon-color-hover); background-color: var(--nav-item-background-active); } @@ -328,8 +313,7 @@ button.longform-remove-step-button.longform-remove-step-button.longform-remove-s /** Longform Unknown Files Wizard ─────────────────────────────────────────────────── */ -.tab-panel-container.tab-panel-container.tab-panel-container - #longform-unknown-files-wizard { +.tab-panel-container.tab-panel-container.tab-panel-container #longform-unknown-files-wizard { padding: 0; margin-top: 3px; border-top: var(--basic-border); @@ -370,8 +354,7 @@ button.longform-remove-step-button.longform-remove-step-button.longform-remove-s line-height: 1.25; } -.longform-unknown-file.longform-unknown-file.longform-unknown-file.longform-unknown-file - button { +.longform-unknown-file.longform-unknown-file.longform-unknown-file.longform-unknown-file button { padding: 1px 3px 3px; margin-right: 5px; font-size: 0.7em; @@ -413,8 +396,7 @@ button.longform-remove-step-button.longform-remove-step-button.longform-remove-s /* font family and size */ .writing.markdown-preview-view, -:is(.writing, .longform-leaf) - :is(.markdown-preview-view, .cm-contentContainer) { +:is(.writing, .longform-leaf) :is(.markdown-preview-view, .cm-contentContainer) { /* for table cells */ --font-text: var(--longform-font-text-theme); font-family: var(--longform-font-text-theme); diff --git a/types/obsidian-variables.css b/types/obsidian-variables.css index 8fd3c651..2f0baca5 100644 --- a/types/obsidian-variables.css +++ b/types/obsidian-variables.css @@ -95,9 +95,10 @@ like a `d.ts` file in typescript. --text-on-accent: hsl(0 0% 100%); /* shadows */ - --input-shadow: inset 0 0 0 1px rgb(0 0 0 / 12%), 0 2px 3px 0 rgb(0 0 0 / 5%), + --input-shadow: + inset 0 0 0 1px rgb(0 0 0 / 12%), 0 2px 3px 0 rgb(0 0 0 / 5%), 0 1px 1.5px 0 rgb(0 0 0 / 3%), 0 1px 2px 0 rgb(0 0 0 / 4%), 0 0 0 0 transparent; - --shadow-s: 0px 1px 2px rgb(0 0 0 / 2.8%), 0px 3.4px 6.7px rgb(0 0 0 / 4.2%), - 0px 15px 30px rgb(0 0 0 / 7%); + --shadow-s: 0px 1px 2px rgb(0 0 0 / 2.8%), 0px 3.4px 6.7px rgb(0 0 0 / 4.2%), 0px 15px 30px + rgb(0 0 0 / 7%); }