vault backup: 2025-03-07 11:27:41
Affected files: .obsidian/plugins/codeblock-customizer/data.json .obsidian/plugins/codeblock-customizer/main.js .obsidian/plugins/codeblock-customizer/manifest.json .obsidian/plugins/codeblock-customizer/styles.css .obsidian/plugins/dataview/main.js .obsidian/plugins/dataview/manifest.json .obsidian/plugins/obsidian-columns/main.js .obsidian/plugins/obsidian-columns/manifest.json .obsidian/plugins/obsidian-columns/styles.css .obsidian/plugins/obsidian-git/data.json .obsidian/plugins/obsidian-quiet-outline/main.js .obsidian/plugins/obsidian-quiet-outline/manifest.json .obsidian/plugins/obsidian-quiet-outline/styles.css .obsidian/plugins/obsidian-tasks-plugin/main.js .obsidian/plugins/obsidian-tasks-plugin/manifest.json .obsidian/plugins/obsidian-tasks-plugin/styles.css .obsidian/plugins/obsidian-tracker/main.js .obsidian/plugins/obsidian-tracker/manifest.json .obsidian/plugins/table-editor-obsidian/main.js .obsidian/plugins/table-editor-obsidian/manifest.json .obsidian/types.json
This commit is contained in:
129
.obsidian/plugins/codeblock-customizer/data.json
vendored
129
.obsidian/plugins/codeblock-customizer/data.json
vendored
@@ -1,18 +1,35 @@
|
||||
{
|
||||
"Themes": {
|
||||
"Obsidian": {
|
||||
"baseTheme": "Obsidian",
|
||||
"settings": {
|
||||
"codeblock": {
|
||||
"enableLineNumbers": true,
|
||||
"enableActiveLineHighlight": true,
|
||||
"enableDeleteCodeButton": false,
|
||||
"codeBlockBorderStylingPosition": "disable",
|
||||
"showIndentationLines": false,
|
||||
"enableCopyCodeButton": false,
|
||||
"enableLinks": false,
|
||||
"enableLinkUpdate": false,
|
||||
"enableBracketHighlight": true,
|
||||
"highlightNonMatchingBrackets": true,
|
||||
"inverseFold": false,
|
||||
"enableSelectionMatching": false,
|
||||
"unwrapcode": false,
|
||||
"buttons": {
|
||||
"alwaysShowButtons": false,
|
||||
"alwaysShowCopyCodeButton": false,
|
||||
"enableSelectCodeButton": false,
|
||||
"enableDeleteCodeButton": false,
|
||||
"enableWrapCodeButton": false
|
||||
},
|
||||
"enableDeleteCodeButton": false,
|
||||
"enableCopyCodeButton": false,
|
||||
"textHighlight": true
|
||||
},
|
||||
"textHighlight": {
|
||||
"lineSeparator": "",
|
||||
"textSeparator": ""
|
||||
},
|
||||
"semiFold": {
|
||||
"enableSemiFold": false,
|
||||
"visibleLines": 5,
|
||||
@@ -28,7 +45,8 @@
|
||||
"alwaysDisplayCodeblockLang": false,
|
||||
"alwaysDisplayCodeblockIcon": false,
|
||||
"displayCodeBlockLanguage": true,
|
||||
"displayCodeBlockIcon": false
|
||||
"displayCodeBlockIcon": false,
|
||||
"disableFoldUnlessSpecified": false
|
||||
},
|
||||
"gutter": {
|
||||
"highlightActiveLineNr": true,
|
||||
@@ -39,7 +57,8 @@
|
||||
},
|
||||
"printing": {
|
||||
"enablePrintToPDFStyling": false,
|
||||
"forceCurrentColorUse": false
|
||||
"forceCurrentColorUse": false,
|
||||
"uncollapseDuringPrint": true
|
||||
},
|
||||
"common": {
|
||||
"enableInSourceMode": false
|
||||
@@ -53,7 +72,13 @@
|
||||
"backgroundColor": "--code-background",
|
||||
"highlightColor": "--text-highlight-bg",
|
||||
"alternateHighlightColors": {},
|
||||
"languageBorderColors": {}
|
||||
"languageBorderColors": {},
|
||||
"textColor": "#A30505",
|
||||
"bracketHighlightColorMatch": "#f33bff",
|
||||
"bracketHighlightColorNoMatch": "#FF0000",
|
||||
"bracketHighlightBackgroundColorMatch": "--color-base-30",
|
||||
"bracketHighlightBackgroundColorNoMatch": "--color-base-30",
|
||||
"selectionMatchHighlightColor": "#99ff7780"
|
||||
},
|
||||
"header": {
|
||||
"backgroundColor": "--code-background",
|
||||
@@ -80,7 +105,13 @@
|
||||
"backgroundColor": "--code-background",
|
||||
"highlightColor": "--text-highlight-bg",
|
||||
"alternateHighlightColors": {},
|
||||
"languageBorderColors": {}
|
||||
"languageBorderColors": {},
|
||||
"textColor": "#A30505",
|
||||
"bracketHighlightColorMatch": "#f33bff",
|
||||
"bracketHighlightColorNoMatch": "#FF0000",
|
||||
"bracketHighlightBackgroundColorMatch": "--color-base-30",
|
||||
"bracketHighlightBackgroundColorNoMatch": "--color-base-30",
|
||||
"selectionMatchHighlightColor": "#99ff7780"
|
||||
},
|
||||
"header": {
|
||||
"backgroundColor": "--code-background",
|
||||
@@ -104,18 +135,35 @@
|
||||
}
|
||||
},
|
||||
"Solarized": {
|
||||
"baseTheme": "Solarized",
|
||||
"settings": {
|
||||
"codeblock": {
|
||||
"enableLineNumbers": true,
|
||||
"enableActiveLineHighlight": true,
|
||||
"enableDeleteCodeButton": false,
|
||||
"codeBlockBorderStylingPosition": "disable",
|
||||
"showIndentationLines": false,
|
||||
"enableCopyCodeButton": false,
|
||||
"enableLinks": false,
|
||||
"enableLinkUpdate": false,
|
||||
"enableBracketHighlight": true,
|
||||
"highlightNonMatchingBrackets": true,
|
||||
"inverseFold": false,
|
||||
"enableSelectionMatching": false,
|
||||
"unwrapcode": false,
|
||||
"buttons": {
|
||||
"alwaysShowButtons": false,
|
||||
"alwaysShowCopyCodeButton": false,
|
||||
"enableSelectCodeButton": false,
|
||||
"enableDeleteCodeButton": false,
|
||||
"enableWrapCodeButton": false
|
||||
},
|
||||
"enableDeleteCodeButton": false,
|
||||
"enableCopyCodeButton": false,
|
||||
"textHighlight": true
|
||||
},
|
||||
"textHighlight": {
|
||||
"lineSeparator": "",
|
||||
"textSeparator": ""
|
||||
},
|
||||
"semiFold": {
|
||||
"enableSemiFold": false,
|
||||
"visibleLines": 5,
|
||||
@@ -131,7 +179,8 @@
|
||||
"alwaysDisplayCodeblockLang": false,
|
||||
"alwaysDisplayCodeblockIcon": false,
|
||||
"displayCodeBlockLanguage": true,
|
||||
"displayCodeBlockIcon": false
|
||||
"displayCodeBlockIcon": false,
|
||||
"disableFoldUnlessSpecified": false
|
||||
},
|
||||
"gutter": {
|
||||
"highlightActiveLineNr": false,
|
||||
@@ -142,7 +191,8 @@
|
||||
},
|
||||
"printing": {
|
||||
"enablePrintToPDFStyling": false,
|
||||
"forceCurrentColorUse": false
|
||||
"forceCurrentColorUse": false,
|
||||
"uncollapseDuringPrint": true
|
||||
},
|
||||
"common": {
|
||||
"enableInSourceMode": false
|
||||
@@ -156,7 +206,13 @@
|
||||
"backgroundColor": "#002B36",
|
||||
"highlightColor": "#054b5c",
|
||||
"alternateHighlightColors": {},
|
||||
"languageBorderColors": {}
|
||||
"languageBorderColors": {},
|
||||
"textColor": "#A30505",
|
||||
"bracketHighlightColorMatch": "#36e920",
|
||||
"bracketHighlightColorNoMatch": "#FF0000",
|
||||
"bracketHighlightBackgroundColorMatch": "#073642",
|
||||
"bracketHighlightBackgroundColorNoMatch": "#073642",
|
||||
"selectionMatchHighlightColor": "#99ff7780"
|
||||
},
|
||||
"header": {
|
||||
"backgroundColor": "#0a4554",
|
||||
@@ -183,7 +239,13 @@
|
||||
"backgroundColor": "#FCF6E4",
|
||||
"highlightColor": "#E9DFBA",
|
||||
"alternateHighlightColors": {},
|
||||
"languageBorderColors": {}
|
||||
"languageBorderColors": {},
|
||||
"textColor": "#A30505",
|
||||
"bracketHighlightColorMatch": "#ff01f7",
|
||||
"bracketHighlightColorNoMatch": "#FF0000",
|
||||
"bracketHighlightBackgroundColorMatch": "#EDE8D6",
|
||||
"bracketHighlightBackgroundColorNoMatch": "#EDE8D6",
|
||||
"selectionMatchHighlightColor": "#99ff7780"
|
||||
},
|
||||
"header": {
|
||||
"backgroundColor": "#D5CCB4",
|
||||
@@ -209,18 +271,35 @@
|
||||
},
|
||||
"ExcludeLangs": "dataview, ad-*",
|
||||
"SelectedTheme": {
|
||||
"baseTheme": "Obsidian",
|
||||
"settings": {
|
||||
"codeblock": {
|
||||
"enableLineNumbers": true,
|
||||
"enableActiveLineHighlight": true,
|
||||
"enableDeleteCodeButton": false,
|
||||
"codeBlockBorderStylingPosition": "disable",
|
||||
"showIndentationLines": false,
|
||||
"enableCopyCodeButton": true,
|
||||
"enableLinks": false,
|
||||
"enableLinkUpdate": false,
|
||||
"enableBracketHighlight": true,
|
||||
"highlightNonMatchingBrackets": true,
|
||||
"inverseFold": false,
|
||||
"enableSelectionMatching": false,
|
||||
"unwrapcode": false,
|
||||
"buttons": {
|
||||
"alwaysShowButtons": false,
|
||||
"alwaysShowCopyCodeButton": false,
|
||||
"enableSelectCodeButton": false,
|
||||
"enableDeleteCodeButton": false,
|
||||
"enableWrapCodeButton": false
|
||||
},
|
||||
"enableDeleteCodeButton": false,
|
||||
"enableCopyCodeButton": true,
|
||||
"textHighlight": true
|
||||
},
|
||||
"textHighlight": {
|
||||
"lineSeparator": "",
|
||||
"textSeparator": ""
|
||||
},
|
||||
"semiFold": {
|
||||
"enableSemiFold": false,
|
||||
"visibleLines": 5,
|
||||
@@ -236,7 +315,8 @@
|
||||
"alwaysDisplayCodeblockLang": false,
|
||||
"alwaysDisplayCodeblockIcon": false,
|
||||
"displayCodeBlockLanguage": true,
|
||||
"displayCodeBlockIcon": false
|
||||
"displayCodeBlockIcon": false,
|
||||
"disableFoldUnlessSpecified": false
|
||||
},
|
||||
"gutter": {
|
||||
"highlightActiveLineNr": true,
|
||||
@@ -247,7 +327,8 @@
|
||||
},
|
||||
"printing": {
|
||||
"enablePrintToPDFStyling": false,
|
||||
"forceCurrentColorUse": false
|
||||
"forceCurrentColorUse": false,
|
||||
"uncollapseDuringPrint": true
|
||||
},
|
||||
"common": {
|
||||
"enableInSourceMode": true
|
||||
@@ -261,7 +342,13 @@
|
||||
"backgroundColor": "--code-background",
|
||||
"highlightColor": "--text-highlight-bg",
|
||||
"alternateHighlightColors": {},
|
||||
"languageBorderColors": {}
|
||||
"languageBorderColors": {},
|
||||
"textColor": "#A30505",
|
||||
"bracketHighlightColorMatch": "#f33bff",
|
||||
"bracketHighlightColorNoMatch": "#FF0000",
|
||||
"bracketHighlightBackgroundColorMatch": "--color-base-30",
|
||||
"bracketHighlightBackgroundColorNoMatch": "--color-base-30",
|
||||
"selectionMatchHighlightColor": "#99ff7780"
|
||||
},
|
||||
"header": {
|
||||
"backgroundColor": "--code-background",
|
||||
@@ -288,7 +375,13 @@
|
||||
"backgroundColor": "--code-background",
|
||||
"highlightColor": "--text-highlight-bg",
|
||||
"alternateHighlightColors": {},
|
||||
"languageBorderColors": {}
|
||||
"languageBorderColors": {},
|
||||
"textColor": "#A30505",
|
||||
"bracketHighlightColorMatch": "#f33bff",
|
||||
"bracketHighlightColorNoMatch": "#FF0000",
|
||||
"bracketHighlightBackgroundColorMatch": "--color-base-30",
|
||||
"bracketHighlightBackgroundColorNoMatch": "--color-base-30",
|
||||
"selectionMatchHighlightColor": "#99ff7780"
|
||||
},
|
||||
"header": {
|
||||
"backgroundColor": "--code-background",
|
||||
|
||||
11330
.obsidian/plugins/codeblock-customizer/main.js
vendored
11330
.obsidian/plugins/codeblock-customizer/main.js
vendored
File diff suppressed because one or more lines are too long
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "codeblock-customizer",
|
||||
"name": "Codeblock Customizer",
|
||||
"version": "1.2.6",
|
||||
"version": "1.2.8",
|
||||
"minAppVersion": "0.15.0",
|
||||
"description": "This Obsidian plugin lets you customize your codeblocks in editing, and reading mode as well.",
|
||||
"author": "mugiwara",
|
||||
|
||||
431
.obsidian/plugins/codeblock-customizer/styles.css
vendored
431
.obsidian/plugins/codeblock-customizer/styles.css
vendored
@@ -1,6 +1,6 @@
|
||||
/* Define CSS variables */
|
||||
:root {
|
||||
--line-number-gutter-width: 32px;
|
||||
--line-number-gutter-width: 38px;
|
||||
--line-number-gutter-padding: 16px;
|
||||
--border-radius: 5px;
|
||||
--code-padding: 8px;
|
||||
@@ -232,14 +232,8 @@
|
||||
}
|
||||
|
||||
/* Highlighting */
|
||||
.codeblock-customizer-line-highlighted {
|
||||
background-color: var(--codeblock-customizer-codeblock-highlight-color) !important;
|
||||
}
|
||||
|
||||
.codeblock-customizer-highlight-text-enabled .codeblock-customizer-highlighted-text {
|
||||
background-color: var(--codeblock-customizer-codeblock-highlight-color) !important;
|
||||
}
|
||||
body:not(.codeblock-customizer-highlight-text-enabled) .codeblock-customizer-highlighted-text-line {
|
||||
.codeblock-customizer-line-highlighted,
|
||||
.codeblock-customizer-highlighted-text {
|
||||
background-color: var(--codeblock-customizer-codeblock-highlight-color) !important;
|
||||
}
|
||||
|
||||
@@ -254,7 +248,7 @@ body:not(.codeblock-customizer-highlight-text-enabled) .codeblock-customizer-hig
|
||||
|
||||
/* Active gutter line number highlight */
|
||||
.codeblock-customizer-gutter-active-line .cm-active [class^='codeblock-customizer-line-number'] {
|
||||
color: var(--gutter-active-linenr-color, var(--codeblock-customizer-gutter-active-linenr-color))
|
||||
color: var(--gutter-active-linenr-color, var(--codeblock-customizer-gutter-active-linenr-color));
|
||||
}
|
||||
|
||||
/* Inline code editor */
|
||||
@@ -295,16 +289,22 @@ body:not(.codeblock-customizer-highlight-text-enabled) .codeblock-customizer-hig
|
||||
}
|
||||
|
||||
/* Codeblock border styling */
|
||||
.codeblock-customizer.codeblock-customizer-style-codeblock-border-left .codeblock-customizer-line[style*="--border-color"] .codeblock-customizer-line-number-first {
|
||||
.codeblock-customizer.codeblock-customizer-style-codeblock-border-left .markdown-rendered .codeblock-customizer-header-container-specific[class*="codeblock-customizer-languageSpecific-"]{
|
||||
border-top-left-radius: 0px;
|
||||
}
|
||||
.codeblock-customizer.codeblock-customizer-style-codeblock-border-right .markdown-rendered .codeblock-customizer-header-container-specific[class*="codeblock-customizer-languageSpecific-"]{
|
||||
border-top-right-radius: 0px;
|
||||
}
|
||||
.codeblock-customizer.codeblock-customizer-style-codeblock-border-left .codeblock-customizer-line[style*="--codeblock-bordercolor"] .codeblock-customizer-line-number-first {
|
||||
border-top-left-radius: 0px !important;
|
||||
}
|
||||
.codeblock-customizer.codeblock-customizer-style-codeblock-border-right .codeblock-customizer-line[style*="--border-color"] .codeblock-customizer-line-number-first {
|
||||
.codeblock-customizer.codeblock-customizer-style-codeblock-border-right .codeblock-customizer-line[style*="--codeblock-bordercolor"] .codeblock-customizer-line-number-first {
|
||||
border-top-right-radius: 0px !important;
|
||||
}
|
||||
.codeblock-customizer.codeblock-customizer-style-codeblock-border-left .codeblock-customizer-line[style*="--border-color"] .codeblock-customizer-line-number-last {
|
||||
.codeblock-customizer.codeblock-customizer-style-codeblock-border-left .codeblock-customizer-line[style*="--codeblock-bordercolor"] .codeblock-customizer-line-number-last {
|
||||
border-bottom-left-radius: 0px !important;
|
||||
}
|
||||
.codeblock-customizer.codeblock-customizer-style-codeblock-border-right .codeblock-customizer-line[style*="--border-color"] .codeblock-customizer-line-number-last {
|
||||
.codeblock-customizer.codeblock-customizer-style-codeblock-border-right .codeblock-customizer-line[style*="--codeblock-bordercolor"] .codeblock-customizer-line-number-last {
|
||||
border-bottom-right-radius: 0px !important;
|
||||
}
|
||||
|
||||
@@ -312,7 +312,7 @@ body:not(.codeblock-customizer-highlight-text-enabled) .codeblock-customizer-hig
|
||||
.codeblock-customizer.codeblock-customizer-style-codeblock-border-left .markdown-source-view .codeblock-customizer-header-container[class*=codeblock-customizer-language-][class*="hasLangBorderColor"],
|
||||
.codeblock-customizer.codeblock-customizer-style-codeblock-border-left .markdown-source-view .codeblock-customizer-header-container-specific[class*=codeblock-customizer-language-][class*="hasLangBorderColor"],
|
||||
.codeblock-customizer.codeblock-customizer-style-codeblock-border-left .markdown-rendered pre.codeblock-customizer-pre[class*=codeblock-customizer-language-][class*="hasLangBorderColor"] {
|
||||
border-left-color: var(--border-color);
|
||||
border-left-color: var(--codeblock-bordercolor);
|
||||
border-left-width: 5px;
|
||||
border-left-style: solid;
|
||||
}
|
||||
@@ -321,10 +321,16 @@ body:not(.codeblock-customizer-highlight-text-enabled) .codeblock-customizer-hig
|
||||
.codeblock-customizer.codeblock-customizer-style-codeblock-border-right .markdown-source-view .codeblock-customizer-header-container[class*=codeblock-customizer-language-][class*="hasLangBorderColor"],
|
||||
.codeblock-customizer.codeblock-customizer-style-codeblock-border-right .markdown-source-view .codeblock-customizer-header-container-specific[class*=codeblock-customizer-language-][class*="hasLangBorderColor"],
|
||||
.codeblock-customizer.codeblock-customizer-style-codeblock-border-right .markdown-rendered pre.codeblock-customizer-pre[class*=codeblock-customizer-language-][class*="hasLangBorderColor"] {
|
||||
border-right-color: var(--border-color);
|
||||
border-right-color: var(--codeblock-bordercolor);
|
||||
border-right-width: 5px;
|
||||
border-right-style: solid;
|
||||
}
|
||||
.codeblock-customizer.codeblock-customizer-style-codeblock-border-left .markdown-source-view .hasLangBorderColor.codeblock-customizer-fade-out-line3 {
|
||||
border-bottom-left-radius: 5px;
|
||||
}
|
||||
.codeblock-customizer.codeblock-customizer-style-codeblock-border-right .markdown-source-view .hasLangBorderColor.codeblock-customizer-fade-out-line3 {
|
||||
border-bottom-right-radius: 5px;
|
||||
}
|
||||
|
||||
.codeblock-customizer-header-container,
|
||||
.codeblock-customizer-header-container-specific {
|
||||
@@ -347,11 +353,11 @@ body.codeblock-customizer-style-codeblock-border-left .codeblock-customizer-head
|
||||
/*.codeblock-customizer-show-langicons-always .codeblock-customizer-header-container ~ .copy-code-button,
|
||||
.codeblock-customizer-show-langnames-always .codeblock-customizer-header-container ~ .copy-code-button,
|
||||
.codeblock-customizer-header-collapse-command .codeblock-customizer-header-container ~ .copy-code-button*/
|
||||
.codeblock-customizer-show-langicons-always .codeblock-customizer-header-container ~ .codeblock-customizer-copy-code-button,
|
||||
.codeblock-customizer-show-langnames-always .codeblock-customizer-header-container ~ .codeblock-customizer-copy-code-button,
|
||||
.codeblock-customizer-header-collapse-command .codeblock-customizer-header-container ~ .codeblock-customizer-copy-code-button {
|
||||
/*.codeblock-customizer-show-langicons-always .codeblock-customizer-header-container:not([class*='codeblock-customizer-language-nolang']) ~ .codeblock-customizer-copy-code-button,
|
||||
.codeblock-customizer-show-langnames-always .codeblock-customizer-header-container:not([class*='codeblock-customizer-language-nolang']) ~ .codeblock-customizer-copy-code-button,
|
||||
.codeblock-customizer-header-collapse-command .codeblock-customizer-header-container:not([class*='codeblock-customizer-language-nolang']) ~ .codeblock-customizer-copy-code-button {
|
||||
margin-top: calc(var(--language-icon-size) + 6px) !important;
|
||||
}
|
||||
}*/
|
||||
/*.codeblock-customizer-header-container-specific ~ .copy-code-button*/
|
||||
.codeblock-customizer-header-container-specific ~ .codeblock-customizer-copy-code-button {
|
||||
margin-top: calc(var(--language-icon-size) + 6px) !important;
|
||||
@@ -367,9 +373,10 @@ body.codeblock-customizer-style-codeblock-border-left .codeblock-customizer-head
|
||||
.markdown-rendered .codeblock-customizer-pre > code > .codeblock-customizer-lines-below-collapsed > .codeblock-customizer-line-number,
|
||||
.markdown-rendered .codeblock-customizer-pre > code > .codeblock-customizer-lines-below-collapsed > .codeblock-customizer-line-number-specific { /* Maintain gutter color when padded */
|
||||
/*box-shadow: 0px calc(-1 * var(--code-padding)) var(--codeblock-customizer-gutter-background-color);*/
|
||||
box-shadow:
|
||||
box-shadow: 0px calc(-1 * var(--code-padding)) var(--gutter-background-color, var(--codeblock-customizer-gutter-background-color));
|
||||
/*box-shadow:
|
||||
0px var(--code-padding) var(--gutter-background-color, var(--codeblock-customizer-gutter-background-color)),
|
||||
0px calc(-1 * var(--code-padding)) var(--gutter-background-color, var(--codeblock-customizer-gutter-background-color));
|
||||
0px calc(-1 * var(--code-padding)) var(--gutter-background-color, var(--codeblock-customizer-gutter-background-color));*/
|
||||
}
|
||||
.markdown-rendered .codeblock-customizer-pre > code > div:last-child > .codeblock-customizer-line-number,
|
||||
.markdown-rendered .codeblock-customizer-pre > code > div:last-child > .codeblock-customizer-line-number-specific,
|
||||
@@ -405,6 +412,7 @@ body.codeblock-customizer-style-codeblock-border-left .codeblock-customizer-head
|
||||
position: absolute;
|
||||
display: inline-block;
|
||||
height: 100%;
|
||||
/*width: var(--gutter-width);*/
|
||||
/*width: var(--line-number-gutter-width);*/
|
||||
/*overflow-x: auto;*/ /* causes problem with shimmering focus and minimal */
|
||||
/*direction: rtl;*/
|
||||
@@ -414,11 +422,14 @@ body.codeblock-customizer-style-codeblock-border-left .codeblock-customizer-head
|
||||
width: var(--line-number-gutter-width);
|
||||
}
|
||||
|
||||
.codeblock-customizer-line-number-first.codeblock-customizer-line-number-specific-number,
|
||||
/*.codeblock-customizer-line-number-first.codeblock-customizer-line-number-specific-number,
|
||||
.codeblock-customizer-line-number-last.codeblock-customizer-line-number-specific-number {
|
||||
width: var(--gutter-width);
|
||||
}
|
||||
}*/
|
||||
|
||||
.codeblock-customizer-line-number-specific {
|
||||
width: var(--gutter-width);
|
||||
}
|
||||
.codeblock-customizer .markdown-source-view .HyperMD-codeblock:has(.codeblock-customizer-line-number-specific-number) {
|
||||
--gutter-width: var(--line-number-gutter-width);
|
||||
padding-left: calc(var(--gutter-width) + var(--line-number-gutter-padding)) !important;
|
||||
@@ -446,6 +457,243 @@ body.codeblock-customizer-style-codeblock-border-left .codeblock-customizer-head
|
||||
padding-left: calc(var(--line-number-gutter-width) + var(--line-number-gutter-padding));
|
||||
}
|
||||
|
||||
/* Bracket highlight */
|
||||
.markdown-source-view [class*="codeblock-customizer-line"] .codeblock-customizer-bracket-highlight-match {
|
||||
color: var(--codeblock-bracket-highlight-color-match, var(--codeblock-customizer-codeblock-bracket-highlight-color-match));
|
||||
background-color: var(--codeblock-bracket-highlight-background-color-match, var(--codeblock-customizer-codeblock-bracket-highlight-background-color-match));
|
||||
}
|
||||
.markdown-source-view [class*="codeblock-customizer-line"] .codeblock-customizer-bracket-highlight-nomatch {
|
||||
color: var(--codeblock-bracket-highlight-color-nomatch, var(--codeblock-customizer-codeblock-bracket-highlight-color-nomatch));
|
||||
background-color: var(--codeblock-bracket-highlight-background-color-nomatch, var(--codeblock-customizer-codeblock-bracket-highlight-background-color-nomatch));
|
||||
}
|
||||
.markdown-source-view .codeblock-customizer-bracket-highlight-match:not([class*="codeblock-customizer-line"] .codeblock-customizer-bracket-highlight-match),
|
||||
.markdown-source-view .codeblock-customizer-bracket-highlight-nomatch:not([class*="codeblock-customizer-line"] .codeblock-customizer-bracket-highlight-nomatch) { /* dont apply to non-codeblock lines */
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/* Selection highlight */
|
||||
.markdown-source-view .codeblock-customizer-line .cm-selectionMatch {
|
||||
background-color: var(--codeblock-selectionmatch-highlight-color, var(--codeblock-customizer-codeblock-selectionmatch-highlight-color));
|
||||
}
|
||||
.markdown-source-view .cm-selectionMatch:not(.codeblock-customizer-line .cm-selectionMatch) { /* dont apply to non-codeblock lines */
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
/* code wrapping */
|
||||
.markdown-rendered .codeblock-customizer-pre > code {
|
||||
white-space: var(--wrap-code) !important;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
/* button container */
|
||||
.codeblock-customizer-button-container,
|
||||
.markdown-source-view .codeblock-customizer-header-button-container {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
right: 6px;
|
||||
display: flex;
|
||||
/*gap: 15px;*/
|
||||
font-family: var(--font-interface);
|
||||
font-size: var(--font-ui-smaller);
|
||||
height: calc(var(--language-icon-size) - 6px);
|
||||
}
|
||||
.codeblock-customizer-button-container {
|
||||
/*display: flex;*/
|
||||
top: 6px;
|
||||
}
|
||||
.markdown-source-view .codeblock-customizer-header-button-container {
|
||||
/*display: none;*/
|
||||
top: 2px;
|
||||
}
|
||||
.markdown-rendered pre:not(:hover) > .codeblock-customizer-button-container {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/*.codeblock-customizer-header-container-specific:hover .codeblock-customizer-header-button-container {*/
|
||||
/*background-color: red;*/
|
||||
/*display: flex;
|
||||
}*/
|
||||
|
||||
/* don't show the header button container when the code block is collapsed */
|
||||
.markdown-source-view .codeblock-customizer-header-container-specific:not(:has(+ .HyperMD-codeblock-begin)) .codeblock-customizer-header-button-container,
|
||||
.codeblock-customizer-header-collapse-command .markdown-source-view .codeblock-customizer-header-container:not(:has(+ .HyperMD-codeblock-begin)) .codeblock-customizer-header-button-container,
|
||||
.markdown-source-view .codeblock-customizer-header-container-specific:has(+ .HyperMD-codeblock-begin.semi-folded) .codeblock-customizer-header-button-container,
|
||||
.codeblock-customizer-header-collapse-command .markdown-source-view .codeblock-customizer-header-container:has(+ .HyperMD-codeblock-begin.semi-folded) .codeblock-customizer-header-button-container {
|
||||
display: none;
|
||||
}
|
||||
/* show header button container on hover */
|
||||
.markdown-source-view .codeblock-customizer-header-container-specific:not(:has(+ .HyperMD-codeblock-begin)):hover .codeblock-customizer-header-button-container,
|
||||
.codeblock-customizer-header-collapse-command .markdown-source-view .codeblock-customizer-header-container:not(:has(+ .HyperMD-codeblock-begin)):hover .codeblock-customizer-header-button-container,
|
||||
.markdown-source-view .codeblock-customizer-header-container-specific:has(+ .HyperMD-codeblock-begin.semi-folded):hover .codeblock-customizer-header-button-container,
|
||||
.codeblock-customizer-header-collapse-command .markdown-source-view .codeblock-customizer-header-container:has(+ .HyperMD-codeblock-begin.semi-folded):hover .codeblock-customizer-header-button-container {
|
||||
display: flex;
|
||||
}
|
||||
/* hide select and delete code buttons for collapsed code blocks */
|
||||
.markdown-source-view .codeblock-customizer-header-container-specific:not(:has(+ .HyperMD-codeblock-begin)):hover .codeblock-customizer-header-button-container .codeblock-customizer-select-code,
|
||||
.codeblock-customizer-header-collapse-command .markdown-source-view .codeblock-customizer-header-container:not(:has(+ .HyperMD-codeblock-begin)):hover .codeblock-customizer-header-button-container .codeblock-customizer-select-code,
|
||||
.markdown-source-view .codeblock-customizer-header-container-specific:not(:has(+ .HyperMD-codeblock-begin)):hover .codeblock-customizer-header-button-container .codeblock-customizer-delete-code,
|
||||
.codeblock-customizer-header-collapse-command .markdown-source-view .codeblock-customizer-header-container:not(:has(+ .HyperMD-codeblock-begin)):hover .codeblock-customizer-header-button-container .codeblock-customizer-delete-code,
|
||||
.markdown-source-view .codeblock-customizer-header-container-specific:has(+ .HyperMD-codeblock-begin.semi-folded):hover .codeblock-customizer-header-button-container .codeblock-customizer-select-code,
|
||||
.codeblock-customizer-header-collapse-command .markdown-source-view .codeblock-customizer-header-container:has(+ .HyperMD-codeblock-begin.semi-folded):hover .codeblock-customizer-header-button-container .codeblock-customizer-select-code,
|
||||
.markdown-source-view .codeblock-customizer-header-container-specific:has(+ .HyperMD-codeblock-begin.semi-folded):hover .codeblock-customizer-header-button-container .codeblock-customizer-delete-code,
|
||||
.codeblock-customizer-header-collapse-command .markdown-source-view .codeblock-customizer-header-container:has(+ .HyperMD-codeblock-begin.semi-folded):hover .codeblock-customizer-header-button-container .codeblock-customizer-delete-code {
|
||||
display: none;
|
||||
}
|
||||
/* show header button container (copy code only) when enabled */
|
||||
.codeblock-customizer-always-show-copy-code-button .markdown-source-view .codeblock-customizer-header-container-specific:not(:has(+ .HyperMD-codeblock-begin)) .codeblock-customizer-header-button-container,
|
||||
.codeblock-customizer-header-collapse-command.codeblock-customizer-always-show-copy-code-button .markdown-source-view .codeblock-customizer-header-container:not(:has(+ .HyperMD-codeblock-begin)) .codeblock-customizer-header-button-container,
|
||||
.codeblock-customizer-always-show-copy-code-button .markdown-source-view .codeblock-customizer-header-container-specific:has(+ .HyperMD-codeblock-begin.semi-folded) .codeblock-customizer-header-button-container,
|
||||
.codeblock-customizer-header-collapse-command.codeblock-customizer-always-show-copy-code-button .markdown-source-view .codeblock-customizer-header-container:has(+ .HyperMD-codeblock-begin.semi-folded) .codeblock-customizer-header-button-container {
|
||||
display: flex;
|
||||
}
|
||||
/* hide select and delete code buttons when show (copy code only) is enabled */
|
||||
.codeblock-customizer-always-show-copy-code-button .markdown-source-view .codeblock-customizer-header-container-specific:not(:has(+ .HyperMD-codeblock-begin)) .codeblock-customizer-header-button-container .codeblock-customizer-select-code,
|
||||
.codeblock-customizer-header-collapse-command.codeblock-customizer-always-show-copy-code-button .markdown-source-view .codeblock-customizer-header-container:not(:has(+ .HyperMD-codeblock-begin)) .codeblock-customizer-header-button-container .codeblock-customizer-select-code,
|
||||
.codeblock-customizer-always-show-copy-code-button .markdown-source-view .codeblock-customizer-header-container-specific:not(:has(+ .HyperMD-codeblock-begin)) .codeblock-customizer-header-button-container .codeblock-customizer-delete-code,
|
||||
.codeblock-customizer-header-collapse-command.codeblock-customizer-always-show-copy-code-button .markdown-source-view .codeblock-customizer-header-container:not(:has(+ .HyperMD-codeblock-begin)) .codeblock-customizer-header-button-container .codeblock-customizer-delete-code,
|
||||
.codeblock-customizer-always-show-copy-code-button .markdown-source-view .codeblock-customizer-header-container-specific:has(+ .HyperMD-codeblock-begin.semi-folded) .codeblock-customizer-header-button-container .codeblock-customizer-select-code,
|
||||
.codeblock-customizer-header-collapse-command.codeblock-customizer-always-show-copy-code-button .markdown-source-view .codeblock-customizer-header-container:has(+ .HyperMD-codeblock-begin.semi-folded) .codeblock-customizer-header-button-container .codeblock-customizer-select-code,
|
||||
.codeblock-customizer-always-show-copy-code-button .markdown-source-view .codeblock-customizer-header-container-specific:has(+ .HyperMD-codeblock-begin.semi-folded) .codeblock-customizer-header-button-container .codeblock-customizer-delete-code,
|
||||
.codeblock-customizer-header-collapse-command.codeblock-customizer-always-show-copy-code-button .markdown-source-view .codeblock-customizer-header-container:has(+ .HyperMD-codeblock-begin.semi-folded) .codeblock-customizer-header-button-container .codeblock-customizer-delete-code {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* don't display the first-line button container, when either header is specified, forced, or collapse command is used */
|
||||
.markdown-source-view .codeblock-customizer-header-container-specific + .HyperMD-codeblock-begin .codeblock-customizer-button-container,
|
||||
.codeblock-customizer-show-langicons-always .markdown-source-view .codeblock-customizer-header-container:not([class*='codeblock-customizer-language-nolang']) + .HyperMD-codeblock-begin .codeblock-customizer-button-container,
|
||||
.codeblock-customizer-show-langnames-always .markdown-source-view .codeblock-customizer-header-container:not([class*='codeblock-customizer-language-nolang']) + .HyperMD-codeblock-begin .codeblock-customizer-button-container,
|
||||
.codeblock-customizer-header-collapse-command .markdown-source-view .codeblock-customizer-header-container + .HyperMD-codeblock-begin .codeblock-customizer-button-container {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* shift button container to the left when collapse icon is displayed on the right side */
|
||||
.codeblock-customizer-collapseIconRight .markdown-source-view .codeblock-customizer-header-container-specific:not(.noCollapseIcon) + .HyperMD-codeblock-begin .codeblock-customizer-button-container,
|
||||
.codeblock-customizer-show-langicons-always.codeblock-customizer-collapseIconRight .markdown-source-view .codeblock-customizer-header-container:not([class*='codeblock-customizer-language-nolang']):not(.noCollapseIcon) + .HyperMD-codeblock-begin .codeblock-customizer-button-container,
|
||||
.codeblock-customizer-show-langnames-always.codeblock-customizer-collapseIconRight .markdown-source-view .codeblock-customizer-header-container:not([class*='codeblock-customizer-language-nolang']):not(.noCollapseIcon) + .HyperMD-codeblock-begin .codeblock-customizer-button-container,
|
||||
.codeblock-customizer-header-collapse-command.codeblock-customizer-collapseIconRight .markdown-source-view .codeblock-customizer-header-container:not(.noCollapseIcon) + .HyperMD-codeblock-begin .codeblock-customizer-button-container,
|
||||
.codeblock-customizer-collapseIconRight .markdown-source-view .codeblock-customizer-header-container-specific:not(.noCollapseIcon) .codeblock-customizer-header-button-container,
|
||||
.codeblock-customizer-collapseIconRight .markdown-source-view .codeblock-customizer-header-container:not(.noCollapseIcon) .codeblock-customizer-header-button-container {
|
||||
right: 38px;
|
||||
}
|
||||
.codeblock-customizer-collapseIconRight .markdown-rendered .codeblock-customizer-pre:has(.codeblock-customizer-header-container-specific:not(.noCollapseIcon)) .codeblock-customizer-button-container,
|
||||
.codeblock-customizer-collapseIconRight.codeblock-customizer-show-langicons-always .markdown-rendered .codeblock-customizer-header-container:not([class*='codeblock-customizer-language-nolang']):not(.noCollapseIcon) ~ .codeblock-customizer-button-container,
|
||||
.codeblock-customizer-collapseIconRight.codeblock-customizer-show-langnames-always .markdown-rendered .codeblock-customizer-header-container:not([class*='codeblock-customizer-language-nolang']):not(.noCollapseIcon) ~ .codeblock-customizer-button-container,
|
||||
.codeblock-customizer-collapseIconRight.codeblock-customizer-header-collapse-command .markdown-rendered .codeblock-customizer-header-container:not(.noCollapseIcon) ~ .codeblock-customizer-button-container {
|
||||
right: 38px;
|
||||
}
|
||||
|
||||
/* hide wrap code button for collapsed code blocks in reading view*/
|
||||
.markdown-rendered .codeblock-customizer-pre.codeblock-customizer-codeblock-collapsed .codeblock-customizer-button-container .codeblock-customizer-wrap-code,
|
||||
.markdown-rendered .codeblock-customizer-pre.codeblock-customizer-codeblock-semi-collapsed .codeblock-customizer-button-container .codeblock-customizer-wrap-code {
|
||||
display: none;
|
||||
}
|
||||
/* show button container (copy code only) when enabled */
|
||||
.codeblock-customizer-always-show-copy-code-button .markdown-rendered .codeblock-customizer-pre.codeblock-customizer-codeblock-collapsed .codeblock-customizer-button-container,
|
||||
.codeblock-customizer-always-show-copy-code-button .markdown-rendered .codeblock-customizer-pre.codeblock-customizer-codeblock-semi-collapsed .codeblock-customizer-button-container,
|
||||
.codeblock-customizer-always-show-copy-code-button .markdown-rendered .codeblock-customizer-pre:has(:not(.codeblock-customizer-codeblock-collapsed)) .codeblock-customizer-button-container,
|
||||
.codeblock-customizer-always-show-copy-code-button .markdown-rendered .codeblock-customizer-pre:has(:not(.codeblock-customizer-codeblock-semi-collapsed)) .codeblock-customizer-button-container {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
/* move button-container to the header */
|
||||
/*.markdown-source-view .codeblock-customizer-header-container-specific + .HyperMD-codeblock-begin .codeblock-customizer-button-container,
|
||||
.codeblock-customizer-header-collapse-command .markdown-source-view .codeblock-customizer-header-container + .HyperMD-codeblock-begin .codeblock-customizer-button-container,
|
||||
.codeblock-customizer-header-collapse-command .markdown-source-view .codeblock-customizer-header-container-specific + .HyperMD-codeblock-begin .codeblock-customizer-button-container,
|
||||
.codeblock-customizer-show-langicons-always .markdown-source-view .codeblock-customizer-header-container:not([class*='codeblock-customizer-language-nolang']) + .HyperMD-codeblock-begin .codeblock-customizer-button-container,
|
||||
.codeblock-customizer-show-langnames-always .markdown-source-view .codeblock-customizer-header-container:not([class*='codeblock-customizer-language-nolang']) + .HyperMD-codeblock-begin .codeblock-customizer-button-container,
|
||||
.codeblock-customizer-header-collapse-command .markdown-source-view .codeblock-customizer-header-container:not([class*='codeblock-customizer-language-nolang']) + .HyperMD-codeblock-begin .codeblock-customizer-button-container {
|
||||
top: -30px;
|
||||
}*/
|
||||
.markdown-rendered .codeblock-customizer-pre:has(.codeblock-customizer-header-container-specific) .codeblock-customizer-button-container,
|
||||
.codeblock-customizer-show-langicons-always .markdown-rendered .codeblock-customizer-pre:has(.codeblock-customizer-header-container:not([class*='codeblock-customizer-language-nolang'])) .codeblock-customizer-button-container,
|
||||
.codeblock-customizer-show-langnames-always .markdown-rendered .codeblock-customizer-pre:has(.codeblock-customizer-header-container:not([class*='codeblock-customizer-language-nolang'])) .codeblock-customizer-button-container,
|
||||
.codeblock-customizer-header-collapse-command .markdown-rendered .codeblock-customizer-pre:has(.codeblock-customizer-header-container:not([class*='codeblock-customizer-language-nolang'])) .codeblock-customizer-button-container,
|
||||
.codeblock-customizer-header-collapse-command .markdown-rendered .codeblock-customizer-pre:has(.codeblock-customizer-header-container-specific) .codeblock-customizer-button-container,
|
||||
.codeblock-customizer-header-collapse-command .markdown-rendered .codeblock-customizer-pre:has(.codeblock-customizer-header-container) .codeblock-customizer-button-container {
|
||||
top: 0;
|
||||
}
|
||||
|
||||
/* select code styling */
|
||||
.markdown-source-view .codeblock-customizer-button-container .codeblock-customizer-select-code,
|
||||
.markdown-source-view .codeblock-customizer-header-button-container .codeblock-customizer-select-code {
|
||||
padding: var(--size-4-1) var(--size-4-2);
|
||||
border-radius: var(--radius-s);
|
||||
color: var(--text-muted);
|
||||
cursor: var(--cursor);
|
||||
}
|
||||
.markdown-source-view .codeblock-customizer-button-container .codeblock-customizer-select-code:hover,
|
||||
.markdown-source-view .codeblock-customizer-header-button-container .codeblock-customizer-select-code:hover {
|
||||
background-color: rgba(var(--mono-rgb-100), 0.075);
|
||||
}
|
||||
|
||||
/* delete code styling */
|
||||
.markdown-source-view .codeblock-customizer-button-container .codeblock-customizer-delete-code,
|
||||
.markdown-source-view .codeblock-customizer-header-button-container .codeblock-customizer-delete-code {
|
||||
padding: var(--size-4-1) var(--size-4-2);
|
||||
border-radius: var(--radius-s);
|
||||
color: var(--text-muted);
|
||||
cursor: var(--cursor);
|
||||
}
|
||||
.markdown-source-view .codeblock-customizer-button-container .codeblock-customizer-delete-code:hover,
|
||||
.markdown-source-view .codeblock-customizer-header-button-container .codeblock-customizer-delete-code:hover {
|
||||
background-color: var(--color-red);
|
||||
color: white;
|
||||
}
|
||||
|
||||
/* wrap code styling */
|
||||
.markdown-rendered .codeblock-customizer-wrap-code {
|
||||
padding: var(--size-4-1) var(--size-4-2);
|
||||
background-color: transparent;
|
||||
box-shadow: none;
|
||||
color: var(--text-muted);
|
||||
font-size: var(--font-ui-smaller);
|
||||
font-family: var(--font-interface);
|
||||
}
|
||||
.markdown-rendered .codeblock-customizer-wrap-code:hover {
|
||||
background-color: rgba(var(--mono-rgb-100), 0.075);
|
||||
}
|
||||
.codeblock-customizer-wrap-code {
|
||||
display: none;
|
||||
}
|
||||
.codeblock-customizer-show-wrap-code-button .codeblock-customizer-wrap-code {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
/* copy code styling (edit mode) */
|
||||
.markdown-source-view .codeblock-customizer-button-container .codeblock-customizer-copy-code,
|
||||
.markdown-source-view .codeblock-customizer-header-button-container .codeblock-customizer-copy-code {
|
||||
padding: var(--size-4-1) var(--size-4-2);
|
||||
border-radius: var(--radius-s);
|
||||
color: var(--text-muted);
|
||||
cursor: var(--cursor);
|
||||
}
|
||||
.markdown-source-view .codeblock-customizer-button-container .codeblock-customizer-copy-code:hover,
|
||||
.markdown-source-view .codeblock-customizer-header-button-container .codeblock-customizer-copy-code:hover {
|
||||
background-color: rgba(var(--mono-rgb-100), 0.075);
|
||||
}
|
||||
/* completely disable original copy code button in edit mode */
|
||||
.markdown-source-view.mod-cm6 .codeblock-customizer-line .code-block-flair {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* copy code button styling (reading view) */
|
||||
.markdown-rendered button.codeblock-customizer-copy-code-button {
|
||||
padding: var(--size-4-1) var(--size-4-2);
|
||||
background-color: transparent;
|
||||
box-shadow: none;
|
||||
color: var(--text-muted);
|
||||
font-size: var(--font-ui-smaller);
|
||||
font-family: var(--font-interface);
|
||||
}
|
||||
.markdown-rendered .codeblock-customizer-copy-code-button:hover {
|
||||
background-color: rgba(var(--mono-rgb-100), 0.075);
|
||||
}
|
||||
|
||||
/* completely disable original copy code button in reading mode */
|
||||
.markdown-rendered .codeblock-customizer-pre .copy-code-button {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Header styling */
|
||||
body:not([class*='codeblock-customizer-show-langicons']) .codeblock-customizer-header-container-specific div:has(> img.codeblock-customizer-icon),
|
||||
body:not(.codeblock-customizer-show-langicons-always) .codeblock-customizer-header-container div:has(> img.codeblock-customizer-icon) {
|
||||
@@ -465,116 +713,6 @@ body:not(.codeblock-customizer-header-collapse-command) .codeblock-customizer-he
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* delete code styling */
|
||||
.codeblock-customizer-show-delete-code-button .codeblock-customizer-delete-code {
|
||||
position: absolute;
|
||||
right: 6px;
|
||||
top: 6px;
|
||||
z-index: 1;
|
||||
display: inline-block;
|
||||
padding: var(--size-4-1) var(--size-4-2);
|
||||
border-radius: var(--radius-s);
|
||||
font-family: var(--font-interface);
|
||||
font-size: var(--font-ui-smaller);
|
||||
color: var(--text-muted);
|
||||
cursor: var(--cursor);
|
||||
}
|
||||
.codeblock-customizer-delete-code {
|
||||
display: none;
|
||||
}
|
||||
.codeblock-customizer-delete-code:hover {
|
||||
background-color: var(--color-red);
|
||||
color: white;
|
||||
}
|
||||
.codeblock-customizer-show-delete-code-button .markdown-source-view.mod-cm6 .codeblock-customizer-line .code-block-flair {
|
||||
right: 40px;
|
||||
}
|
||||
.codeblock-customizer-collapseIconRight.codeblock-customizer-show-delete-code-button .codeblock-customizer-delete-code {
|
||||
right: 38px;
|
||||
}
|
||||
|
||||
/* copy code styling (edit mode) */
|
||||
.codeblock-customizer-show-copy-code-button .markdown-source-view .codeblock-customizer-copy-code {
|
||||
position: absolute;
|
||||
right: 6px;
|
||||
top: 6px;
|
||||
z-index: 1;
|
||||
display: inline-block;
|
||||
padding: var(--size-4-1) var(--size-4-2);
|
||||
border-radius: var(--radius-s);
|
||||
font-family: var(--font-interface);
|
||||
font-size: var(--font-ui-smaller);
|
||||
color: var(--text-muted);
|
||||
cursor: var(--cursor);
|
||||
}
|
||||
.markdown-source-view .codeblock-customizer-copy-code {
|
||||
display: none;
|
||||
}
|
||||
.markdown-source-view .codeblock-customizer-copy-code:hover {
|
||||
background-color: rgba(var(--mono-rgb-100), 0.075);
|
||||
}
|
||||
.codeblock-customizer-show-delete-code-button.codeblock-customizer-show-copy-code-button .markdown-source-view.mod-cm6 .codeblock-customizer-line .codeblock-customizer-copy-code {
|
||||
right: 40px;
|
||||
}
|
||||
.codeblock-customizer-collapseIconRight.codeblock-customizer-show-delete-code-button.codeblock-customizer-show-copy-code-button .markdown-source-view.mod-cm6 .codeblock-customizer-line .codeblock-customizer-copy-code,
|
||||
.codeblock-customizer-collapseIconRight.codeblock-customizer-show-delete-code-button .markdown-source-view.mod-cm6 .codeblock-customizer-line .code-block-flair {
|
||||
right: 73px;
|
||||
}
|
||||
.codeblock-customizer-collapseIconRight:not(.codeblock-customizer-show-delete-code-button) .markdown-source-view.mod-cm6 .codeblock-customizer-line .code-block-flair,
|
||||
.codeblock-customizer-collapseIconRight:not(.codeblock-customizer-show-delete-code-button) .markdown-source-view.mod-cm6 .codeblock-customizer-line .codeblock-customizer-copy-code {
|
||||
right: 40px;
|
||||
}
|
||||
.codeblock-customizer-show-copy-code-button .markdown-source-view.mod-cm6 .codeblock-customizer-line .code-block-flair {
|
||||
display: none !important;
|
||||
}
|
||||
/* copy code button styling (reading view) */
|
||||
.markdown-rendered button.codeblock-customizer-copy-code-button {
|
||||
margin: 6px;
|
||||
padding: 6px 8px;
|
||||
height: auto;
|
||||
background-color: transparent;
|
||||
box-shadow: none;
|
||||
color: var(--text-muted);
|
||||
font-size: var(--font-ui-smaller);
|
||||
font-family: var(--font-interface);
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
}
|
||||
.markdown-rendered .codeblock-customizer-copy-code-button:hover {
|
||||
background-color: rgba(var(--mono-rgb-100), 0.075);
|
||||
}
|
||||
.markdown-rendered pre:not(:hover) > button.codeblock-customizer-copy-code-button {
|
||||
display: none ;
|
||||
}
|
||||
.markdown-rendered .codeblock-customizer-pre .copy-code-button {
|
||||
display: none;
|
||||
}
|
||||
.codeblock-customizer-collapseIconRight.codeblock-customizer-show-copy-code-button .markdown-rendered button.codeblock-customizer-copy-code-button,
|
||||
.codeblock-customizer-collapseIconRight:not(.codeblock-customizer-show-copy-code-button) .markdown-rendered button.codeblock-customizer-copy-code-button {
|
||||
right: 30px;
|
||||
}
|
||||
|
||||
/* move copy code button, and delete code button to the header */
|
||||
.codeblock-customizer-show-copy-code-button .markdown-source-view .codeblock-customizer-header-container-specific + .HyperMD-codeblock-begin .codeblock-customizer-copy-code,
|
||||
.markdown-source-view .codeblock-customizer-header-container-specific + .HyperMD-codeblock-begin .code-block-flair,
|
||||
.codeblock-customizer-header-collapse-command.codeblock-customizer-show-copy-code-button .markdown-source-view .codeblock-customizer-header-container + .HyperMD-codeblock-begin .codeblock-customizer-copy-code,
|
||||
.codeblock-customizer-header-collapse-command .markdown-source-view .codeblock-customizer-header-container + .HyperMD-codeblock-begin .code-block-flair,
|
||||
.codeblock-customizer-header-collapse-command.codeblock-customizer-show-copy-code-button .markdown-source-view .codeblock-customizer-header-container-specific + .HyperMD-codeblock-begin .codeblock-customizer-copy-code,
|
||||
.codeblock-customizer-header-collapse-command .markdown-source-view .codeblock-customizer-header-container-specific + .HyperMD-codeblock-begin .code-block-flair {
|
||||
top: -30px;
|
||||
}
|
||||
.markdown-rendered .codeblock-customizer-pre:has(.codeblock-customizer-header-container-specific) .codeblock-customizer-copy-code-button,
|
||||
.codeblock-customizer-header-collapse-command .markdown-rendered .codeblock-customizer-pre:not(.codeblock-customizer-codeblock-collapsed) .codeblock-customizer-copy-code-button {
|
||||
top: -37px;
|
||||
}
|
||||
.codeblock-customizer-show-delete-code-button .markdown-source-view .codeblock-customizer-header-container-specific + .HyperMD-codeblock-begin .codeblock-customizer-delete-code,
|
||||
.codeblock-customizer-header-collapse-command.codeblock-customizer-show-delete-code-button .markdown-source-view .codeblock-customizer-header-container + .HyperMD-codeblock-begin .codeblock-customizer-delete-code,
|
||||
.codeblock-customizer-header-collapse-command.codeblock-customizer-show-delete-code-button .markdown-source-view .codeblock-customizer-header-container-specific + .HyperMD-codeblock-begin .codeblock-customizer-delete-code {
|
||||
top: -30px;
|
||||
bottom: 25px;
|
||||
}
|
||||
|
||||
.codeblock-customizer-header-container,
|
||||
.codeblock-customizer-header-container-specific {
|
||||
user-select: none;
|
||||
@@ -601,7 +739,7 @@ body:not(.codeblock-customizer-header-collapse-command) .codeblock-customizer-he
|
||||
|
||||
.codeblock-customizer-header-collapse {
|
||||
position: absolute;
|
||||
color: var(--header-text-color, var(--codeblock-customizer-header-text-color));
|
||||
color: var(--text-muted); /*var(--header-text-color, var(--codeblock-customizer-header-text-color));*/
|
||||
top: 50%;
|
||||
font-size: large;
|
||||
font-weight: bold;
|
||||
@@ -689,7 +827,11 @@ body .codeblock-customizer-header-container-specific:not(:has( [class^="codebloc
|
||||
body:not(:not([class*='codeblock-customizer-show-langnames'])) .codeblock-customizer-header-container-specific .codeblock-customizer-header-language-tag + .codeblock-customizer-header-text,
|
||||
body:not(:not([class*='codeblock-customizer-show-langicons'])) .codeblock-customizer-header-container-specific:has(.codeblock-customizer-icon) .codeblock-customizer-header-text,
|
||||
body:not(:not([class*='codeblock-customizer-header-collapse-command'])):not(:not([class*='codeblock-customizer-show-langnames-always'])) .codeblock-customizer-header-container .codeblock-customizer-header-language-tag + .codeblock-customizer-header-text,
|
||||
body:not(:not([class*='codeblock-customizer-header-collapse-command'])):not(:not([class*='codeblock-customizer-show-langicons-always'])) .codeblock-customizer-header-container:has(.codeblock-customizer-icon) .codeblock-customizer-header-text {
|
||||
body:not(:not([class*='codeblock-customizer-header-collapse-command'])):not(:not([class*='codeblock-customizer-show-langicons-always'])) .codeblock-customizer-header-container:has(.codeblock-customizer-icon) .codeblock-customizer-header-text
|
||||
.codeblock-customizer-show-langicons-always .codeblock-customizer-header-container:not([class*='codeblock-customizer-language-nolang']) .codeblock-customizer-header-text,
|
||||
.codeblock-customizer-show-langnames-always .codeblock-customizer-header-container:not([class*='codeblock-customizer-language-nolang']) .codeblock-customizer-header-text,
|
||||
body:not(:not([class*='codeblock-customizer-show-langicons-always'])).codeblock-customizer-header-collapse-command .codeblock-customizer-header-container:not([class*='codeblock-customizer-language-nolang']) .codeblock-customizer-header-text,
|
||||
body:not(:not([class*='codeblock-customizer-show-langnames-always'])).codeblock-customizer-header-collapse-command .codeblock-customizer-header-container:not([class*='codeblock-customizer-language-nolang']) .codeblock-customizer-header-text {
|
||||
padding-left: 0px;
|
||||
}
|
||||
div:has(> img.codeblock-customizer-icon) {
|
||||
@@ -816,10 +958,6 @@ body.codeblock-customizer .markdown-source-view :not(pre.codeblock-customizer-pr
|
||||
display: none;
|
||||
}
|
||||
|
||||
.codeblock-customizer-border-settingsDiv-hide {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.codeblock-customizer-languageSpecific-settingsDiv-hide {
|
||||
display: none;
|
||||
}
|
||||
@@ -848,6 +986,13 @@ body.codeblock-customizer .markdown-source-view :not(pre.codeblock-customizer-pr
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* disabled button */
|
||||
.clickable-icon.extra-setting-button.is-disabled {
|
||||
color: #666666;
|
||||
cursor: not-allowed;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
/* Themes */
|
||||
/* Shimmering focus */
|
||||
.codeblock-customizer pre.codeblock-customizer-pre::before,
|
||||
@@ -865,10 +1010,10 @@ body.codeblock-customizer .markdown-source-view :not(pre.codeblock-customizer-pr
|
||||
}
|
||||
|
||||
/* Everforest */
|
||||
.codeblock-customizer .markdown-source-view [class*="codeblock-customizer-line"].HyperMD-codeblock-begin,
|
||||
/*.codeblock-customizer .markdown-source-view [class*="codeblock-customizer-line"].HyperMD-codeblock-begin,
|
||||
.codeblock-customizer .markdown-source-view [class*="codeblock-customizer-line"].HyperMD-codeblock-end {
|
||||
height: calc(var(--line-height-normal) * 1em);
|
||||
}
|
||||
height: calc(var(--line-height-normal) * 1em);
|
||||
}*/
|
||||
|
||||
/* Settings */
|
||||
.codeblock-customizer-Donation {
|
||||
|
||||
1019
.obsidian/plugins/dataview/main.js
vendored
1019
.obsidian/plugins/dataview/main.js
vendored
File diff suppressed because one or more lines are too long
3
.obsidian/plugins/dataview/manifest.json
vendored
3
.obsidian/plugins/dataview/manifest.json
vendored
@@ -1,10 +1,11 @@
|
||||
{
|
||||
"id": "dataview",
|
||||
"name": "Dataview",
|
||||
"version": "0.5.64",
|
||||
"version": "0.5.67",
|
||||
"minAppVersion": "0.13.11",
|
||||
"description": "Complex data views for the data-obsessed.",
|
||||
"author": "Michael Brenan <blacksmithgu@gmail.com>",
|
||||
"authorUrl": "https://github.com/blacksmithgu",
|
||||
"helpUrl": "https://blacksmithgu.github.io/obsidian-dataview/",
|
||||
"isDesktopOnly": false
|
||||
}
|
||||
|
||||
24
.obsidian/plugins/obsidian-columns/main.js
vendored
24
.obsidian/plugins/obsidian-columns/main.js
vendored
@@ -3,16 +3,18 @@ THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
|
||||
if you want to view the source, please visit the github repository of this plugin
|
||||
*/
|
||||
|
||||
var V=Object.create;var w=Object.defineProperty;var q=Object.getOwnPropertyDescriptor;var z=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,W=Object.prototype.hasOwnProperty;var b=n=>w(n,"__esModule",{value:!0});var _=(n,t)=>{b(n);for(var e in t)w(n,e,{get:t[e],enumerable:!0})},K=(n,t,e)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of z(t))!W.call(n,l)&&l!=="default"&&w(n,l,{get:()=>t[l],enumerable:!(e=q(t,l))||e.enumerable});return n},N=n=>K(b(w(n!=null?V(j(n)):{},"default",n&&n.__esModule&&"default"in n?{get:()=>n.default,enumerable:!0}:{value:n,enumerable:!0})),n);var p=(n,t,e)=>new Promise((l,i)=>{var r=a=>{try{o(e.next(a))}catch(u){i(u)}},s=a=>{try{o(e.throw(a))}catch(u){i(u)}},o=a=>a.done?l(a.value):Promise.resolve(a.value).then(r,s);o((e=e.apply(n,t)).next())});_(exports,{ColumnInsertModal:()=>v,default:()=>x});var g=N(require("obsidian"));var L=N(require("obsidian")),J=n=>n=="yes"||n=="true",Q=(n,t)=>{if(t=="string")return n;if(t=="boolean")return J(n);if(t=="number")return parseFloat(n)};function E(n,t,e,l){let i=new L.Setting(n).setName(t[1].name).setDesc(t[1].desc);typeof t[1].value=="boolean"?i.addToggle(r=>r.setValue(e).onChange(s=>{l(s,t[0])})):i.addText(r=>r.setPlaceholder(String(t[1].value)).setValue(String(e)).onChange(s=>{l(Q(s,typeof t[1].value),t[0])}))}function I(n,t,e){let{containerEl:l}=n;l.empty(),l.createEl("h2",{text:"Settings for "+e});let i=Object.entries(t);for(let r of i)E(l,r,n.plugin.settings[r[0]].value,(s,o)=>{n.plugin.settings[o].value=s,n.plugin.saveSettings()})}function A(n,t){return p(this,null,function*(){return new Promise((e,l)=>{n.settings=t,n.loadData().then(i=>{i&&Object.entries(i).forEach(s=>{n.settings[s[0]].value=s[1]})}).then(e).catch(l)})})}function D(n,t){return p(this,null,function*(){let e={};Object.entries(n.settings).forEach(l=>{e[l[0]]=l[1].value,l[1].onChange(l[1].value)}),yield n.saveData(e)})}var X="Obsidian Columns",T="col",P=T+"-md",Y="!!!",O="===";var k="--obsidian-columns-min-width",G="--obsidian-columns-def-span",Z="`",M={wrapSize:{value:100,name:"Minimum width of column",desc:"Columns will have this minimum width before wrapping to a new row. 0 disables column wrapping. Useful for smaller devices",onChange:n=>{document.querySelector(":root").style.setProperty(k,n.toString()+"px")}},defaultSpan:{value:1,name:"The default span of an item",desc:"The default width of a column. If the minimum width is specified, the width of the column will be multiplied by this setting.",onChange:n=>{document.querySelector(":root").style.setProperty(G,n.toString())}}},H=(n,t=["`"],e=O)=>{let l=n.split(`
|
||||
`),i=!1;e:for(let r of l)for(let s of t){if(r.contains(s))break e;if(r==e){let o=n.split(e+`
|
||||
var U=Object.create;var w=Object.defineProperty;var W=Object.getOwnPropertyDescriptor;var V=Object.getOwnPropertyNames;var q=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty;var v=n=>w(n,"__esModule",{value:!0});var _=(n,t)=>{v(n);for(var e in t)w(n,e,{get:t[e],enumerable:!0})},K=(n,t,e)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of V(t))!j.call(n,l)&&l!=="default"&&w(n,l,{get:()=>t[l],enumerable:!(e=W(t,l))||e.enumerable});return n},N=n=>K(v(w(n!=null?U(q(n)):{},"default",n&&n.__esModule&&"default"in n?{get:()=>n.default,enumerable:!0}:{value:n,enumerable:!0})),n);var m=(n,t,e)=>new Promise((l,r)=>{var s=a=>{try{o(e.next(a))}catch(h){r(h)}},i=a=>{try{o(e.throw(a))}catch(h){r(h)}},o=a=>a.done?l(a.value):Promise.resolve(a.value).then(s,i);o((e=e.apply(n,t)).next())});_(exports,{ColumnInsertModal:()=>x,default:()=>M});var u=N(require("obsidian"));var I=N(require("obsidian")),J=n=>n=="yes"||n=="true",Q=(n,t)=>{if(t=="string")return n;if(t=="boolean")return J(n);if(t=="number")return parseFloat(n)};function T(n,t,e,l){let r=new I.Setting(n).setName(t[1].name).setDesc(t[1].desc);typeof t[1].value=="boolean"?r.addToggle(s=>s.setValue(e).onChange(i=>{l(i,t[0])})):r.addText(s=>s.setPlaceholder(String(t[1].value)).setValue(String(e)).onChange(i=>{l(Q(i,typeof t[1].value),t[0])}))}function L(n,t,e){let{containerEl:l}=n;l.empty(),l.createEl("h2",{text:"Settings for "+e});let r=Object.entries(t);for(let s of r)T(l,s,n.plugin.settings[s[0]].value,(i,o)=>{n.plugin.settings[o].value=i,n.plugin.saveSettings()})}function D(n,t){return m(this,null,function*(){return new Promise((e,l)=>{n.settings=t,n.loadData().then(r=>{r&&Object.entries(r).forEach(i=>{n.settings[i[0]].value=i[1]})}).then(e).catch(l)})})}function P(n,t){return m(this,null,function*(){let e={};Object.entries(n.settings).forEach(l=>{e[l[0]]=l[1].value,l[1].onChange(l[1].value)}),yield n.saveData(e)})}var X="Obsidian Columns",E="col",O=E+"-md",Y="!!!",A="===";var k="--obsidian-columns-min-width",G="--obsidian-columns-def-span",Z="`",b={wrapSize:{value:100,name:"Minimum width of column",desc:"Columns will have this minimum width before wrapping to a new row. 0 disables column wrapping. Useful for smaller devices",onChange:n=>{document.querySelector(":root").style.setProperty(k,n.toString()+"px")}},defaultSpan:{value:1,name:"The default span of an item",desc:"The default width of a column. If the minimum width is specified, the width of the column will be multiplied by this setting.",onChange:n=>{document.querySelector(":root").style.setProperty(G,n.toString())}}},B=(n,t=["`"],e=A)=>{let l=n.split(`
|
||||
`),r=!1;e:for(let s of l)for(let i of t){if(s.contains(i))break e;if(s==e){let o=n.split(e+`
|
||||
`);if(o.length>1)return{settings:o[0],source:o.slice(1).join(e+`
|
||||
`)};break e}}return{settings:"",source:n}},B=n=>{let t={};return n.split(`
|
||||
`)};break e}}return{settings:"",source:n}},H=n=>{let t={};return n.split(`
|
||||
`).map(e=>e.split(";")).reduce((e,l)=>(e.push(...l),e)).map(e=>e.split("=").map(l=>l.trim()).slice(0,2)).forEach(e=>{t[e[0]]=e[1]}),t},$=n=>{let t=0,e=n.split("");for(let l of e)if(l==Z)t++;else break;return t},ee=n=>{let t=n.split(`
|
||||
`),e=[],l=0,i=0,r=[];for(let s of t){let o=$(s);if(i=o<3?0:o,l==0&&i==0&&s.startsWith(O)){e.push(r.join(`
|
||||
`)),r=[];continue}else l==0?l=i:l==i&&(l=0);r.push(s)}return e.push(r.join(`
|
||||
`)),e},F=n=>parseFloat(n.split("").filter(t=>"0123456789.".contains(t)).join("")),x=class extends g.Plugin{constructor(){super(...arguments);this.generateCssString=t=>{let e={};return e.flexGrow=t.toString(),e.flexBasis=(this.settings.wrapSize.value*t).toString()+"px",e.width=(this.settings.wrapSize.value*t).toString()+"px",e};this.applyStyle=(t,e)=>{Object.assign(t.style,e)};this.processChild=t=>{t.firstChild!=null&&"tagName"in t.firstChild&&t.firstChild.tagName=="BR"&&t.removeChild(t.firstChild);let e=t;for(;e!=null;)"style"in e&&(e.style.marginTop="0px"),e=e.firstChild;let l=t;for(;l!=null;)"style"in l&&(l.style.marginBottom="0px"),l=l.lastChild}}onload(){return p(this,null,function*(){yield this.loadSettings(),this.addSettingTab(new R(this.app,this)),this.registerMarkdownCodeBlockProcessor(P,(e,l,i)=>{let r=H(e),s=B(r.settings);e=r.source;let o=i.sourcePath,a=l.createDiv(),u=new g.MarkdownRenderChild(a);if(i.addChild(u),g.MarkdownRenderer.renderMarkdown(e,a,o,u),s.flexGrow!=null){let d=parseFloat(s.flexGrow),f=this.generateCssString(d);delete f.width,this.applyStyle(a,f)}if(s.height!=null){let d={};d.height=s.height.toString(),d.overflow="scroll",this.applyStyle(a,d)}if(s.textAlign!=null){let d={};d.textAlign=s.textAlign,this.applyStyle(a,d)}}),this.registerMarkdownCodeBlockProcessor(T,(e,l,i)=>p(this,null,function*(){let r=H(e),s=B(r.settings),o=ee(r.source);console.log(o);for(let a of o){let u=i.sourcePath,d=createDiv(),f=new g.MarkdownRenderChild(d);i.addChild(f);let C=g.MarkdownRenderer.renderMarkdown(a,d,u,f),m=l.createEl("div",{cls:"columnParent"});if(Array.from(d.children).forEach(c=>{let h=m.createEl("div",{cls:"columnChild"}),y=new g.MarkdownRenderChild(h);i.addChild(y),this.applyStyle(h,this.generateCssString(this.settings.defaultSpan.value)),h.appendChild(c),c.classList.contains("block-language-"+P)&&c.childNodes[0].style.flexGrow!=""&&(h.style.flexGrow=c.childNodes[0].style.flexGrow,h.style.flexBasis=c.childNodes[0].style.flexBasis,h.style.width=c.childNodes[0].style.flexBasis),this.processChild(c)}),s.height!=null){let c=s.height;if(c=="shortest"){yield C;let h=Math.min(...Array.from(m.children).map(S=>S.childNodes[0]).map(S=>F(getComputedStyle(S).height)+F(getComputedStyle(S).lineHeight))),y={};y.height=h+"px",y.overflow="scroll",Array.from(m.children).map(S=>S.childNodes[0]).forEach(S=>{this.applyStyle(S,y)})}else{let h={};h.height=c,h.overflow="scroll",this.applyStyle(m,h)}}if(s.textAlign!=null){let c={};c.textAlign=s.textAlign,this.applyStyle(m,c)}}})),this.addCommand({id:"insert-column-wrapper",name:"Insert column wrapper",editorCallback:(e,l)=>{new v(this.app,i=>{let r=i.numberOfColumns.value,s="````col\n";for(let o=0;o<r;o++)s+="```col-md\nflexGrow=1\n===\n# Column "+o+"\n```\n";s+="````\n",e.replaceSelection(s)}).open()}}),this.addCommand({id:"insert-quick-column-wrapper",name:"Insert quick column wrapper",editorCallback:(e,l)=>{let i=e.getSelection(),r=e.getCursor(),s="````col\n```col-md\nflexGrow=1\n===\n"+i+"\n```\n````\n";if(e.replaceSelection(s),i==="")e.setCursor({line:r.line+4,ch:0});else{let o=i.split(`
|
||||
`).length;e.setCursor({line:r.line+4+o-1,ch:i.length-i.lastIndexOf(`
|
||||
`)-1})}}}),this.addCommand({id:"insert-column",name:"Insert column",editorCallback:(e,l)=>{let i=e.getSelection(),r=e.getCursor(),s;if(i==="")s="```col-md\nflexGrow=1\n===\n# New Column\n\n```",e.replaceSelection(s),e.setCursor({line:r.line+4,ch:0});else{s="```col-md\nflexGrow=1\n===\n"+i+"\n```",e.replaceSelection(s);let o=i.split(`
|
||||
`).length;e.setCursor({line:r.line+o+2,ch:i.length-i.lastIndexOf(`
|
||||
`)-1})}}});let t=(e,l)=>{for(let i of Array.from(e.children))if(i!=null&&!(i.nodeName!="UL"&&i.nodeName!="OL"))for(let r of Array.from(i.children)){if(r==null)continue;if(!r.textContent.trim().startsWith(Y+T)){t(r,l);continue}i.removeChild(r);let s=e.createEl("div",{cls:"columnParent"}),o=new g.MarkdownRenderChild(s);l.addChild(o);let a=r.querySelector("ul, ol");if(a!=null)for(let u of Array.from(a.children)){let d=s.createEl("div",{cls:"columnChild"}),f=new g.MarkdownRenderChild(d);l.addChild(f);let C=parseFloat(u.textContent.split(`
|
||||
`)[0].split(" ")[0]);isNaN(C)&&(C=this.settings.defaultSpan.value),this.applyStyle(d,this.generateCssString(C));let m=!1;t(u,l);for(let c of Array.from(u.childNodes))m&&d.appendChild(c),c.nodeName=="#text"&&(m=!0);this.processChild(d)}}};this.registerMarkdownPostProcessor((e,l)=>{t(e,l)})})}onunload(){}loadSettings(){return p(this,null,function*(){yield A(this,M);let t=document.querySelector(":root");console.log(this.settings.wrapSize.value.toString()),t.style.setProperty(k,this.settings.wrapSize.value.toString()+"px"),t.style.setProperty(G,this.settings.defaultSpan.value.toString())})}saveSettings(){return p(this,null,function*(){yield D(this,M)})}},U={numberOfColumns:{value:2,name:"Number of Columns",desc:"Number of Columns to be made"}},v=class extends g.Modal{constructor(t,e){super(t);this.onSubmit=e}onOpen(){let{contentEl:t}=this;t.createEl("h1",{text:"Create a Column Wrapper"});let e=U,l=Object.entries(U);for(let i of l)E(t,i,"",(r,s)=>{e[s].value=r});new g.Setting(t).addButton(i=>i.setButtonText("Submit").setCta().onClick(()=>{this.close(),this.onSubmit(e)}))}onClose(){let{contentEl:t}=this;t.empty()}},R=class extends g.PluginSettingTab{constructor(t,e){super(t,e);this.plugin=e}display(){I(this,M,X)}};
|
||||
`),e=[],l=0,r=0,s=[];for(let i of t){let o=$(i);if(r=o<3?0:o,l==0&&r==0&&i.startsWith(A)){e.push(s.join(`
|
||||
`)),s=[];continue}else l==0?l=r:l==r&&(l=0);s.push(i)}return e.push(s.join(`
|
||||
`)),e},R=n=>parseFloat(n.split("").filter(t=>"0123456789.".contains(t)).join("")),M=class extends u.Plugin{constructor(){super(...arguments);this.generateCssString=t=>{let e={};return e.flexGrow=t.toString(),e.flexBasis=(this.settings.wrapSize.value*t).toString()+"px",e.width=(this.settings.wrapSize.value*t).toString()+"px",e};this.applyStyle=(t,e)=>{Object.assign(t.style,e)};this.processChild=t=>{t.firstChild!=null&&"tagName"in t.firstChild&&t.firstChild.tagName=="BR"&&t.removeChild(t.firstChild);let e=t;for(;e!=null;)"style"in e&&(e.style.marginTop="0px"),e=e.firstChild;let l=t;for(;l!=null;)"style"in l&&(l.style.marginBottom="0px"),l=l.lastChild}}onload(){return m(this,null,function*(){yield this.loadSettings(),this.addSettingTab(new F(this.app,this)),this.registerMarkdownCodeBlockProcessor(O,(e,l,r)=>{let s=B(e),i=H(s.settings);e=s.source;let o=r.sourcePath,a=l.createDiv(),h=new u.MarkdownRenderChild(a);if(r.addChild(h),u.MarkdownRenderer.renderMarkdown(e,a,o,h),i.flexGrow!=null){let d=parseFloat(i.flexGrow),f=this.generateCssString(d);delete f.width,this.applyStyle(a,f)}if(i.height!=null){let d={};d.height=i.height.toString(),d.overflow="scroll",this.applyStyle(a,d)}if(i.textAlign!=null){let d={};d.textAlign=i.textAlign,this.applyStyle(a,d)}this.applyPotentialBorderStyling(i,a)}),this.registerMarkdownCodeBlockProcessor(E,(e,l,r)=>m(this,null,function*(){let s=B(e),i=H(s.settings),o=ee(s.source);console.log(o);for(let a of o){let h=r.sourcePath,d=createDiv(),f=new u.MarkdownRenderChild(d);r.addChild(f);let y=u.MarkdownRenderer.renderMarkdown(a,d,h,f),S=l.createEl("div",{cls:"columnParent"});if(Array.from(d.children).forEach(g=>{let c=S.createEl("div",{cls:"columnChild"}),C=new u.MarkdownRenderChild(c);r.addChild(C),this.applyStyle(c,this.generateCssString(this.settings.defaultSpan.value)),c.appendChild(g),g.classList.contains("block-language-"+O)&&g.childNodes[0].style.flexGrow!=""&&(c.style.flexGrow=g.childNodes[0].style.flexGrow,c.style.flexBasis=g.childNodes[0].style.flexBasis,c.style.width=g.childNodes[0].style.flexBasis),this.processChild(g)}),i.height!=null){let g=i.height;if(g=="shortest"){yield y;let c=Math.min(...Array.from(S.children).map(p=>p.childNodes[0]).map(p=>R(getComputedStyle(p).height)+R(getComputedStyle(p).lineHeight))),C={};C.height=c+"px",C.overflow="scroll",Array.from(S.children).map(p=>p.childNodes[0]).forEach(p=>{this.applyStyle(p,C)})}else{let c={};c.height=g,c.overflow="scroll",this.applyStyle(S,c)}}if(i.textAlign!=null){let g={};g.textAlign=i.textAlign,this.applyStyle(S,g)}this.applyPotentialBorderStyling(i,S)}})),this.addCommand({id:"insert-column-wrapper",name:"Insert column wrapper",editorCallback:(e,l)=>{new x(this.app,r=>{let s=r.numberOfColumns.value,i="````col\n";for(let o=0;o<s;o++)i+="```col-md\nflexGrow=1\n===\n# Column "+o+"\n```\n";i+="````\n",e.replaceSelection(i)}).open()}}),this.addCommand({id:"insert-quick-column-wrapper",name:"Insert quick column wrapper",editorCallback:(e,l)=>{let r=e.getSelection(),s=e.getCursor(),i="````col\n```col-md\nflexGrow=1\n===\n"+r+"\n```\n````\n";if(e.replaceSelection(i),r==="")e.setCursor({line:s.line+4,ch:0});else{let o=r.split(`
|
||||
`).length;e.setCursor({line:s.line+4+o-1,ch:r.length-r.lastIndexOf(`
|
||||
`)-1})}}}),this.addCommand({id:"insert-column",name:"Insert column",editorCallback:(e,l)=>{let r=e.getSelection(),s=e.getCursor(),i;if(r==="")i="```col-md\nflexGrow=1\n===\n# New Column\n\n```",e.replaceSelection(i),e.setCursor({line:s.line+4,ch:0});else{i="```col-md\nflexGrow=1\n===\n"+r+"\n```",e.replaceSelection(i);let o=r.split(`
|
||||
`).length;e.setCursor({line:s.line+o+2,ch:r.length-r.lastIndexOf(`
|
||||
`)-1})}}});let t=(e,l)=>{for(let r of Array.from(e.children))if(r!=null&&!(r.nodeName!="UL"&&r.nodeName!="OL"))for(let s of Array.from(r.children)){if(s==null)continue;if(!s.textContent.trim().startsWith(Y+E)){t(s,l);continue}r.removeChild(s);let i=e.createEl("div",{cls:"columnParent"}),o=new u.MarkdownRenderChild(i);l.addChild(o);let a=s.querySelector("ul, ol");if(a!=null)for(let h of Array.from(a.children)){let d=i.createEl("div",{cls:"columnChild"}),f=new u.MarkdownRenderChild(d);l.addChild(f);let y=parseFloat(h.textContent.split(`
|
||||
`)[0].split(" ")[0]);isNaN(y)&&(y=this.settings.defaultSpan.value),this.applyStyle(d,this.generateCssString(y));let S=!1;t(h,l);for(let g of Array.from(h.childNodes))S&&d.appendChild(g),g.nodeName=="#text"&&(S=!0);this.processChild(d)}}};this.registerMarkdownPostProcessor((e,l)=>{t(e,l)})})}applyPotentialBorderStyling(t,e){var r,s;if(t.borderColor!=null||t.borderStyle!=null||t.borderWidth!=null||t.borderRadius!=null||t.borderPadding!=null){let i={};i.borderColor=(r=t.borderColor)!=null?r:"white",i.borderStyle=(s=t.borderStyle)!=null?s:"solid",i.borderWidth=this.parseBorderSizeInput(t.borderWidth,"1px"),i.borderRadius=this.parseBorderSizeInput(t.borderRadius),i.padding=this.parseBorderSizeInput(t.borderPadding),this.applyStyle(e,i)}}parseBorderSizeInput(t,e="0"){return t==null?e:+t?t+"px":t}onunload(){}loadSettings(){return m(this,null,function*(){yield D(this,b);let t=document.querySelector(":root");console.log(this.settings.wrapSize.value.toString()),t.style.setProperty(k,this.settings.wrapSize.value.toString()+"px"),t.style.setProperty(G,this.settings.defaultSpan.value.toString())})}saveSettings(){return m(this,null,function*(){yield P(this,b)})}},z={numberOfColumns:{value:2,name:"Number of Columns",desc:"Number of Columns to be made"}},x=class extends u.Modal{constructor(t,e){super(t);this.onSubmit=e}onOpen(){let{contentEl:t}=this;t.createEl("h1",{text:"Create a Column Wrapper"});let e=z,l=Object.entries(z);for(let r of l)T(t,r,"",(s,i)=>{e[i].value=s});new u.Setting(t).addButton(r=>r.setButtonText("Submit").setCta().onClick(()=>{this.close(),this.onSubmit(e)}))}onClose(){let{contentEl:t}=this;t.empty()}},F=class extends u.PluginSettingTab{constructor(t,e){super(t,e);this.plugin=e}display(){L(this,b,X)}};
|
||||
|
||||
/* nosourcemap */
|
||||
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"id": "obsidian-columns",
|
||||
"name": "Obsidian Columns",
|
||||
"name": "Columns",
|
||||
"minAppVersion": "0.12.0",
|
||||
"description": "Allows you to create columns in Obsidian Markdown",
|
||||
"author": "Trevor Nichols",
|
||||
"authorUrl": "https://github.com/tnichols217/obsidian-columns",
|
||||
"isDesktopOnly": false,
|
||||
"version": "1.5.2"
|
||||
"version": "1.6.1"
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
:root {
|
||||
--obsidian-columns-gap: 20px;
|
||||
--obsidian-columns-padding: 15px 20px;
|
||||
--obsidian-columns-padding: 0 20px;
|
||||
--obsidian-columns-min-width: 100px;
|
||||
--obsidian-columns-def-span: 1;
|
||||
}
|
||||
@@ -38,6 +38,7 @@ div[data-callout="col"].callout > div.callout-content > div[data-callout^="col-m
|
||||
flex-grow: var(--obsidian-columns-custom-span);
|
||||
flex-basis: calc(var(--obsidian-columns-min-width) * var(--obsidian-columns-custom-span));
|
||||
width: calc(var(--obsidian-columns-min-width) * var(--obsidian-columns-custom-span));
|
||||
margin: 0;
|
||||
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
padding: 0 0 0 0;
|
||||
|
||||
5
.obsidian/plugins/obsidian-git/data.json
vendored
5
.obsidian/plugins/obsidian-git/data.json
vendored
@@ -9,7 +9,7 @@
|
||||
"pullBeforePush": true,
|
||||
"disablePopups": false,
|
||||
"disablePopupsForNoChanges": false,
|
||||
"listChangedFilesInMessageBody": false,
|
||||
"listChangedFilesInMessageBody": true,
|
||||
"showStatusBar": true,
|
||||
"updateSubmodules": false,
|
||||
"syncMethod": "merge",
|
||||
@@ -27,6 +27,9 @@
|
||||
"submoduleRecurseCheckout": false,
|
||||
"gitDir": "",
|
||||
"showFileMenu": true,
|
||||
"authorInHistoryView": "hide",
|
||||
"dateInHistoryView": false,
|
||||
"diffStyle": "split",
|
||||
"lineAuthor": {
|
||||
"show": false,
|
||||
"followMovement": "inactive",
|
||||
|
||||
409
.obsidian/plugins/obsidian-quiet-outline/main.js
vendored
409
.obsidian/plugins/obsidian-quiet-outline/main.js
vendored
File diff suppressed because one or more lines are too long
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "obsidian-quiet-outline",
|
||||
"name": "Quiet Outline",
|
||||
"version": "0.3.24",
|
||||
"version": "0.3.40",
|
||||
"minAppVersion": "0.15.6",
|
||||
"description": "Make outline quiet and more powerful, including no-auto-expand, rendering heading as markdown, and search support.",
|
||||
"author": "the_tree",
|
||||
|
||||
@@ -102,9 +102,14 @@
|
||||
.n-tree.n-tree--block-line .n-tree-node:not(.n-tree-node--disabled).n-tree-node--selected {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
.view-content:has(.quiet-outline) {
|
||||
padding-bottom: 0px;
|
||||
}
|
||||
.quiet-outline .n-tree.n-tree--block-node.n-tree--block-line {
|
||||
padding-bottom: var(--size-4-8);
|
||||
}
|
||||
.quiet-outline {
|
||||
height: 100%;
|
||||
padding-bottom: 24px;
|
||||
}
|
||||
.quiet-outline #container {
|
||||
height: 100%;
|
||||
@@ -120,6 +125,12 @@
|
||||
.n-tree__empty {
|
||||
display: none;
|
||||
}
|
||||
.canvas-node .markdown-embed-content .is-flashing {
|
||||
mix-blend-mode: normal;
|
||||
}
|
||||
.quiet-outline .n-tree .n-tree-node-content :is(p, h1, h2, h3, h4, h5) {
|
||||
unicode-bidi: plaintext;
|
||||
}
|
||||
|
||||
/* main.css */
|
||||
.quiet-outline .n-tree .n-tree-node-indent {
|
||||
@@ -155,5 +166,16 @@
|
||||
.n-tree-node.located p {
|
||||
color: var(--8de97876-locatedColor);
|
||||
}
|
||||
.quiet-outline .n-tree .n-tree-node .n-tree-node-content .n-tree-node-content__prefix {
|
||||
margin-right: 0;
|
||||
}
|
||||
.quiet-outline .n-tree .n-tree-node .n-tree-node-content .n-tree-node-content__prefix > *:last-child {
|
||||
margin-right: 8px;
|
||||
}
|
||||
.n-tree-node-switcher__icon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
/* src/main.css */
|
||||
|
||||
402
.obsidian/plugins/obsidian-tasks-plugin/main.js
vendored
402
.obsidian/plugins/obsidian-tasks-plugin/main.js
vendored
File diff suppressed because one or more lines are too long
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"id": "obsidian-tasks-plugin",
|
||||
"name": "Tasks",
|
||||
"version": "6.0.0",
|
||||
"minAppVersion": "1.1.1",
|
||||
"description": "Task management for Obsidian",
|
||||
"version": "7.18.1",
|
||||
"minAppVersion": "1.4.0",
|
||||
"description": "Track tasks across your vault. Supports due dates, recurring tasks, done dates, sub-set of checklist items, and filtering.",
|
||||
"helpUrl": "https://publish.obsidian.md/tasks/",
|
||||
"author": "Martin Schenck and Clare Macrae",
|
||||
"author": "Clare Macrae and Ilyas Landikov (created by Martin Schenck)",
|
||||
"authorUrl": "https://github.com/obsidian-tasks-group",
|
||||
"fundingUrl": "https://github.com/sponsors/claremacrae",
|
||||
"isDesktopOnly": false
|
||||
|
||||
367
.obsidian/plugins/obsidian-tasks-plugin/styles.css
vendored
367
.obsidian/plugins/obsidian-tasks-plugin/styles.css
vendored
File diff suppressed because one or more lines are too long
6
.obsidian/plugins/obsidian-tracker/main.js
vendored
6
.obsidian/plugins/obsidian-tracker/main.js
vendored
File diff suppressed because one or more lines are too long
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "obsidian-tracker",
|
||||
"name": "Tracker",
|
||||
"version": "1.13.2",
|
||||
"version": "1.15.1",
|
||||
"minAppVersion": "0.9.12",
|
||||
"description": "A plugin tracks occurrences and numbers in your notes",
|
||||
"author": "pyrochlore",
|
||||
|
||||
29319
.obsidian/plugins/table-editor-obsidian/main.js
vendored
29319
.obsidian/plugins/table-editor-obsidian/main.js
vendored
File diff suppressed because one or more lines are too long
@@ -6,7 +6,7 @@
|
||||
"description": "Improved table navigation, formatting, manipulation, and formulas",
|
||||
"isDesktopOnly": false,
|
||||
"minAppVersion": "1.0.0",
|
||||
"version": "0.21.0",
|
||||
"version": "0.22.1",
|
||||
"js": "main.js",
|
||||
"fundingUrl": {
|
||||
"Github Sponsor": "https://github.com/sponsors/tgrosinger",
|
||||
|
||||
28
.obsidian/types.json
vendored
Normal file
28
.obsidian/types.json
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"types": {
|
||||
"aliases": "aliases",
|
||||
"cssclasses": "multitext",
|
||||
"tags": "tags",
|
||||
"TQ_explain": "checkbox",
|
||||
"TQ_extra_instructions": "text",
|
||||
"TQ_short_mode": "checkbox",
|
||||
"TQ_show_backlink": "checkbox",
|
||||
"TQ_show_cancelled_date": "checkbox",
|
||||
"TQ_show_created_date": "checkbox",
|
||||
"TQ_show_depends_on": "checkbox",
|
||||
"TQ_show_done_date": "checkbox",
|
||||
"TQ_show_due_date": "checkbox",
|
||||
"TQ_show_edit_button": "checkbox",
|
||||
"TQ_show_id": "checkbox",
|
||||
"TQ_show_on_completion": "checkbox",
|
||||
"TQ_show_postpone_button": "checkbox",
|
||||
"TQ_show_priority": "checkbox",
|
||||
"TQ_show_recurrence_rule": "checkbox",
|
||||
"TQ_show_scheduled_date": "checkbox",
|
||||
"TQ_show_start_date": "checkbox",
|
||||
"TQ_show_tags": "checkbox",
|
||||
"TQ_show_task_count": "checkbox",
|
||||
"TQ_show_tree": "checkbox",
|
||||
"TQ_show_urgency": "checkbox"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user