mirror of
https://github.com/danbulant/notes
synced 2026-05-19 04:18:49 +00:00
vault backup: 2023-06-05 11:29:18
This commit is contained in:
parent
fc620ecdbd
commit
92ad23998d
35 changed files with 10913 additions and 4805 deletions
362
notes/.obsidian/plugins/dataview/main.js
vendored
362
notes/.obsidian/plugins/dataview/main.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "dataview",
|
||||
"name": "Dataview",
|
||||
"version": "0.5.55",
|
||||
"version": "0.5.56",
|
||||
"minAppVersion": "0.13.11",
|
||||
"description": "Complex data views for the data-obsessed.",
|
||||
"author": "Michael Brenan <blacksmithgu@gmail.com>",
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"id": "hotkey-helper",
|
||||
"name": "Hotkey Helper",
|
||||
"version": "0.3.17",
|
||||
"minAppVersion": "0.15.9",
|
||||
"version": "0.3.18",
|
||||
"minAppVersion": "1.2.8",
|
||||
"description": "Easily see and access any plugin's settings or hotkey assignments (and conflicts) from the Community Plugins tab",
|
||||
"author": "PJ Eby",
|
||||
"authorUrl": "https://github.com/pjeby"
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "obsidian-chartsview-plugin",
|
||||
"name": "Charts View",
|
||||
"version": "1.2.2",
|
||||
"version": "1.2.4",
|
||||
"minAppVersion": "0.9.12",
|
||||
"description": "Data visualization solution in Obsidian based on Ant Design Charts.",
|
||||
"author": "caronchen",
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@
|
|||
"mdCSS": "",
|
||||
"scriptEngineSettings": {},
|
||||
"defaultTrayMode": false,
|
||||
"previousRelease": "1.8.26",
|
||||
"previousRelease": "1.9.3",
|
||||
"showReleaseNotes": true,
|
||||
"showNewVersionNotification": true,
|
||||
"mathjaxSourceURL": "https://cdn.jsdelivr.net/npm/mathjax@3.2.1/es5/tex-svg.js",
|
||||
|
|
@ -402,6 +402,12 @@
|
|||
}
|
||||
],
|
||||
"numberOfCustomPens": 0,
|
||||
"pdfScale": 4,
|
||||
"pdfBorderBox": true,
|
||||
"pdfGapSize": 20,
|
||||
"pdfLockAfterImport": true,
|
||||
"pdfNumColumns": 1,
|
||||
"pdfImportScale": 0.3,
|
||||
"loadCount": 1,
|
||||
"patchCommentBlock": false,
|
||||
"runWYSIWYGpatch": false,
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "obsidian-excalidraw-plugin",
|
||||
"name": "Excalidraw",
|
||||
"version": "1.8.26",
|
||||
"version": "1.9.3",
|
||||
"minAppVersion": "1.1.6",
|
||||
"description": "An Obsidian plugin to edit and view Excalidraw drawings",
|
||||
"author": "Zsolt Viczian",
|
||||
|
|
|
|||
|
|
@ -340,4 +340,8 @@ div.excalidraw-draginfo {
|
|||
background: var(--color-base-40);
|
||||
display: block;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.excalidraw [data-radix-popper-content-wrapper] {
|
||||
position: absolute !important;
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "obsidian-filename-heading-sync",
|
||||
"name": "Filename Heading Sync",
|
||||
"version": "1.8.0",
|
||||
"version": "1.9.0",
|
||||
"minAppVersion": "0.11.0",
|
||||
"description": "Obsidian plugin for keeping the filename with the first heading of a file in sync",
|
||||
"author": "dvcrn",
|
||||
|
|
|
|||
11866
notes/.obsidian/plugins/obsidian-git/main.js
vendored
11866
notes/.obsidian/plugins/obsidian-git/main.js
vendored
File diff suppressed because it is too large
Load diff
|
|
@ -5,5 +5,5 @@
|
|||
"isDesktopOnly": false,
|
||||
"fundingUrl": "https://ko-fi.com/vinzent",
|
||||
"js": "main.js",
|
||||
"version": "2.19.1"
|
||||
"version": "2.20.3"
|
||||
}
|
||||
|
|
|
|||
22
notes/.obsidian/plugins/obsidian-git/styles.css
vendored
22
notes/.obsidian/plugins/obsidian-git/styles.css
vendored
|
|
@ -484,4 +484,24 @@
|
|||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-moved-tag {
|
||||
border: 1px solid #3572b0;
|
||||
}
|
||||
}
|
||||
|
||||
/* ====================== Line Authoring Information ====================== */
|
||||
|
||||
.cm-gutterElement.obs-git-blame-gutter {
|
||||
/* Add background color to spacing inbetween and around the gutter for better aesthetics */
|
||||
border-width: 0px 2px 0.2px 2px;
|
||||
border-style: solid;
|
||||
border-color: var(--background-secondary);
|
||||
background-color: var(--background-secondary);
|
||||
}
|
||||
|
||||
.cm-gutterElement.obs-git-blame-gutter > div, .line-author-settings-preview {
|
||||
/* delegate text color to settings */
|
||||
color: var(--obs-git-gutter-text);
|
||||
font-family: monospace;
|
||||
height: 100%; /* ensure, that age-based background color occupies entire parent */
|
||||
text-align: right;
|
||||
padding: 0px 6px 0px 6px;
|
||||
white-space: pre; /* Keep spaces and do not collapse them. */
|
||||
}
|
||||
|
|
|
|||
271
notes/.obsidian/plugins/obsidian-icon-folder/main.js
vendored
271
notes/.obsidian/plugins/obsidian-icon-folder/main.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "obsidian-icon-folder",
|
||||
"name": "Icon Folder",
|
||||
"version": "2.0.0",
|
||||
"version": "2.1.1",
|
||||
"minAppVersion": "0.9.12",
|
||||
"description": "This plugin allows to add an emoji or an icon to a folder or file.",
|
||||
"author": "Florian Woelki",
|
||||
|
|
|
|||
1028
notes/.obsidian/plugins/obsidian-linter/main.js
vendored
1028
notes/.obsidian/plugins/obsidian-linter/main.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "obsidian-linter",
|
||||
"name": "Linter",
|
||||
"version": "1.13.0",
|
||||
"version": "1.15.2",
|
||||
"minAppVersion": "0.15.6",
|
||||
"description": "Formats and styles your notes. It can be used to format YAML tags, aliases, arrays, and metadata; footnotes; headings; spacing; math blocks; regular markdown contents like list, italics, and bold styles; and more with the use of custom rule options as well.",
|
||||
"author": "Victor Tao",
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
"selectAll": true,
|
||||
"listLines": false,
|
||||
"listLineAction": "toggle-folding",
|
||||
"dndExperiment": false,
|
||||
"previousRelease": "4.6.5"
|
||||
"dnd": true,
|
||||
"previousRelease": "4.7.1",
|
||||
"dndExperiment": false
|
||||
}
|
||||
229
notes/.obsidian/plugins/obsidian-outliner/main.js
vendored
229
notes/.obsidian/plugins/obsidian-outliner/main.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "obsidian-outliner",
|
||||
"name": "Outliner",
|
||||
"version": "4.6.7",
|
||||
"version": "4.7.1",
|
||||
"minAppVersion": "1.1.16",
|
||||
"description": "Work with your lists like in Workflowy or RoamResearch.",
|
||||
"author": "Viacheslav Slinko",
|
||||
|
|
|
|||
|
|
@ -88,12 +88,9 @@
|
|||
pointer-events: none;
|
||||
}
|
||||
|
||||
.outliner-plugin-drop-zone-before {
|
||||
margin-top: -8px;
|
||||
}
|
||||
|
||||
.outliner-plugin-drop-zone-after {
|
||||
margin-top: -1px;
|
||||
.outliner-plugin-drop-zone-padding {
|
||||
position: absolute;
|
||||
height: 4px;
|
||||
}
|
||||
|
||||
body.outliner-plugin-dnd:not(.outliner-plugin-dragging) .cm-formatting-list,
|
||||
|
|
|
|||
319
notes/.obsidian/plugins/obsidian-plugin-toc/main.js
vendored
319
notes/.obsidian/plugins/obsidian-plugin-toc/main.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -6,5 +6,5 @@
|
|||
"description": "Create a table of contents for a note.",
|
||||
"isDesktopOnly": false,
|
||||
"minAppVersion": "0.10.12",
|
||||
"version": "0.1.4"
|
||||
"version": "0.2.0"
|
||||
}
|
||||
1
notes/.obsidian/plugins/omnisearch/data.json
vendored
1
notes/.obsidian/plugins/omnisearch/data.json
vendored
|
|
@ -6,6 +6,7 @@
|
|||
"PDFIndexing": false,
|
||||
"imagesIndexing": false,
|
||||
"splitCamelCase": false,
|
||||
"openInNewPane": false,
|
||||
"ribbonIcon": true,
|
||||
"showExcerpt": true,
|
||||
"renderLineReturnInExcerpts": true,
|
||||
|
|
|
|||
62
notes/.obsidian/plugins/omnisearch/main.js
vendored
62
notes/.obsidian/plugins/omnisearch/main.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "omnisearch",
|
||||
"name": "Omnisearch",
|
||||
"version": "1.14.0",
|
||||
"version": "1.14.2",
|
||||
"minAppVersion": "1.0.0",
|
||||
"description": "A search engine that just works",
|
||||
"author": "Simon Cambier",
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@
|
|||
}
|
||||
|
||||
.omnisearch-result__title {
|
||||
white-space: pre-wrap;
|
||||
align-items: center;
|
||||
display: flex;
|
||||
gap: 5px;
|
||||
|
|
|
|||
4
notes/.obsidian/plugins/tag-wrangler/main.js
vendored
4
notes/.obsidian/plugins/tag-wrangler/main.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -3,7 +3,7 @@
|
|||
"name": "Tag Wrangler",
|
||||
"author": "PJ Eby",
|
||||
"authorUrl": "https://github.com/pjeby",
|
||||
"version": "0.5.8",
|
||||
"version": "0.5.9",
|
||||
"minAppVersion": "0.15.9",
|
||||
"description": "Rename, merge, toggle, and search tags from the tag pane",
|
||||
"isDesktopOnly": false
|
||||
|
|
|
|||
156
notes/.obsidian/plugins/various-complements/main.js
vendored
156
notes/.obsidian/plugins/various-complements/main.js
vendored
|
|
@ -669,6 +669,9 @@ var emoji_regex_default = () => {
|
|||
|
||||
// src/util/strings.ts
|
||||
var regEmoji = new RegExp(` *(${emoji_regex_default().source}) *`, "g");
|
||||
function equalsAsLiterals(one, another) {
|
||||
return one.replace(/[ \t]/g, "") === another.replace(/[ \t]/g, "");
|
||||
}
|
||||
function allNumbersOrFewSymbols(text2) {
|
||||
return Boolean(text2.match(/^[0-9_\-.]+$/));
|
||||
}
|
||||
|
|
@ -703,13 +706,16 @@ function lowerIncludes(one, other) {
|
|||
function lowerStartsWith(a, b) {
|
||||
return a.toLowerCase().startsWith(b.toLowerCase());
|
||||
}
|
||||
function wrapFuzzy(func) {
|
||||
return (...xs) => func(...xs) ? { type: "concrete_match" } : { type: "none" };
|
||||
}
|
||||
function lowerFuzzy(a, b) {
|
||||
return microFuzzy(a.toLowerCase(), b.toLowerCase());
|
||||
}
|
||||
function lowerFuzzyStarsWith(a, b) {
|
||||
const aLower = a.toLowerCase();
|
||||
const bLower = b.toLowerCase();
|
||||
return aLower[0] !== bLower[0] ? false : microFuzzy(aLower, bLower);
|
||||
return aLower[0] === bLower[0] ? microFuzzy(aLower, bLower) : { type: "none" };
|
||||
}
|
||||
function capitalizeFirstLetter(str) {
|
||||
return str.charAt(0).toUpperCase() + str.slice(1);
|
||||
|
|
@ -749,19 +755,30 @@ function microFuzzy(value, query) {
|
|||
let i = 0;
|
||||
let lastMatchIndex = null;
|
||||
let isFuzzy = false;
|
||||
let scoreSeed = 0;
|
||||
let combo = 0;
|
||||
for (let j = 0; j < value.length; j++) {
|
||||
if (value[j] === query[i]) {
|
||||
if (lastMatchIndex != null && j - lastMatchIndex > 1) {
|
||||
isFuzzy = true;
|
||||
}
|
||||
lastMatchIndex = j;
|
||||
combo++;
|
||||
i++;
|
||||
} else {
|
||||
if (combo > 0) {
|
||||
scoreSeed += 2 ** combo;
|
||||
combo = 0;
|
||||
}
|
||||
}
|
||||
if (i === query.length) {
|
||||
return isFuzzy ? "fuzzy" : true;
|
||||
if (combo > 0) {
|
||||
scoreSeed += 2 ** combo;
|
||||
}
|
||||
return isFuzzy ? { type: "fuzzy_match", score: scoreSeed / value.length } : { type: "concrete_match" };
|
||||
}
|
||||
}
|
||||
return false;
|
||||
return { type: "none" };
|
||||
}
|
||||
function joinNumberWithSymbol(tokens) {
|
||||
if (tokens.length === 0) {
|
||||
|
|
@ -787,12 +804,13 @@ function joinNumberWithSymbol(tokens) {
|
|||
function pickTokens(content, trimPattern) {
|
||||
return content.split(trimPattern).filter((x) => x !== "");
|
||||
}
|
||||
var TRIM_CHAR_PATTERN = /[\n\t\[\]$/:?!=()<>"',|;*~ `]/g;
|
||||
var TRIM_CHAR_PATTERN = /[\n\t\[\]$/:?!=()<>"',|;*~ `_]/g;
|
||||
var DefaultTokenizer = class {
|
||||
tokenize(content, raw) {
|
||||
return raw ? Array.from(splitRaw(content, this.getTrimPattern())).filter(
|
||||
const tokens = raw ? Array.from(splitRaw(content, this.getTrimPattern())).filter(
|
||||
(x) => x !== " "
|
||||
) : pickTokens(content, this.getTrimPattern());
|
||||
return tokens.map((x) => x.replace(/\.+$/g, ""));
|
||||
}
|
||||
recursiveTokenize(content) {
|
||||
const trimIndexes = Array.from(content.matchAll(this.getTrimPattern())).sort((a, b) => a.index - b.index).map((x) => x.index);
|
||||
|
|
@ -2768,8 +2786,8 @@ function pushWord(wordsByFirstLetter, key, word) {
|
|||
}
|
||||
wordsByFirstLetter[key].push(word);
|
||||
}
|
||||
function judge(word, query, queryStartWithUpper, fuzzy) {
|
||||
var _a;
|
||||
function judge(word, query, queryStartWithUpper, options) {
|
||||
var _a, _b, _c;
|
||||
if (query === "") {
|
||||
return {
|
||||
word: {
|
||||
|
|
@ -2780,9 +2798,9 @@ function judge(word, query, queryStartWithUpper, fuzzy) {
|
|||
alias: false
|
||||
};
|
||||
}
|
||||
const matcher = fuzzy ? lowerFuzzy : lowerStartsWith;
|
||||
const matcher = (options == null ? void 0 : options.fuzzy) ? lowerFuzzy : wrapFuzzy(lowerStartsWith);
|
||||
const matched = matcher(word.value, query);
|
||||
if (matched) {
|
||||
if (matched.type === "concrete_match" || matched.type === "fuzzy_match" && matched.score > ((_a = options == null ? void 0 : options.fuzzy) == null ? void 0 : _a.minMatchScore)) {
|
||||
if (queryStartWithUpper && word.type !== "internalLink" && word.type !== "frontMatter") {
|
||||
const c = capitalizeFirstLetter(word.value);
|
||||
return {
|
||||
|
|
@ -2790,7 +2808,7 @@ function judge(word, query, queryStartWithUpper, fuzzy) {
|
|||
...word,
|
||||
value: c,
|
||||
hit: c,
|
||||
fuzzy: matched === "fuzzy"
|
||||
fuzzy: matched.type === "fuzzy_match"
|
||||
},
|
||||
value: c,
|
||||
alias: false
|
||||
|
|
@ -2800,20 +2818,22 @@ function judge(word, query, queryStartWithUpper, fuzzy) {
|
|||
word: {
|
||||
...word,
|
||||
hit: word.value,
|
||||
fuzzy: matched === "fuzzy"
|
||||
fuzzy: matched.type === "fuzzy_match"
|
||||
},
|
||||
value: word.value,
|
||||
alias: false
|
||||
};
|
||||
}
|
||||
}
|
||||
const matchedAlias = (_a = word.aliases) == null ? void 0 : _a.map((a) => ({ aliases: a, matched: matcher(a, query) })).find((x) => x.matched);
|
||||
if (matchedAlias == null ? void 0 : matchedAlias.matched) {
|
||||
const matchedAlias = (_b = word.aliases) == null ? void 0 : _b.map((a) => ({ aliases: a, matched: matcher(a, query) })).sort(
|
||||
(a, b) => a.matched.type === "concrete_match" && b.matched.type !== "concrete_match" ? -1 : 0
|
||||
).find((x) => x.matched.type !== "none");
|
||||
if (matchedAlias && (matchedAlias.matched.type === "concrete_match" || matchedAlias.matched.type === "fuzzy_match" && matchedAlias.matched.score > ((_c = options == null ? void 0 : options.fuzzy) == null ? void 0 : _c.minMatchScore))) {
|
||||
return {
|
||||
word: {
|
||||
...word,
|
||||
hit: matchedAlias.aliases,
|
||||
fuzzy: matchedAlias.matched === "fuzzy"
|
||||
fuzzy: matchedAlias.matched.type === "fuzzy_match"
|
||||
},
|
||||
value: matchedAlias.aliases,
|
||||
alias: true
|
||||
|
|
@ -2825,10 +2845,9 @@ function judge(word, query, queryStartWithUpper, fuzzy) {
|
|||
};
|
||||
}
|
||||
function suggestWords(indexedWords, query, maxNum, option = {}) {
|
||||
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
|
||||
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
|
||||
const { frontMatter, selectionHistoryStorage } = option;
|
||||
const queryStartWithUpper = capitalizeFirstLetter(query) === query;
|
||||
const fuzzy = (_a = option.fuzzy) != null ? _a : false;
|
||||
const flattenFrontMatterWords = () => {
|
||||
var _a2, _b2;
|
||||
if (frontMatter === "alias" || frontMatter === "aliases") {
|
||||
|
|
@ -2840,25 +2859,25 @@ function suggestWords(indexedWords, query, maxNum, option = {}) {
|
|||
return [];
|
||||
};
|
||||
const words = queryStartWithUpper ? frontMatter ? flattenFrontMatterWords() : [
|
||||
...(_b = indexedWords.currentFile[query.charAt(0)]) != null ? _b : [],
|
||||
...(_c = indexedWords.currentFile[query.charAt(0).toLowerCase()]) != null ? _c : [],
|
||||
...(_d = indexedWords.currentVault[query.charAt(0)]) != null ? _d : [],
|
||||
...(_e = indexedWords.currentVault[query.charAt(0).toLowerCase()]) != null ? _e : [],
|
||||
...(_f = indexedWords.customDictionary[query.charAt(0)]) != null ? _f : [],
|
||||
...(_g = indexedWords.customDictionary[query.charAt(0).toLowerCase()]) != null ? _g : [],
|
||||
...(_h = indexedWords.internalLink[query.charAt(0)]) != null ? _h : [],
|
||||
...(_i = indexedWords.internalLink[query.charAt(0).toLowerCase()]) != null ? _i : []
|
||||
...(_a = indexedWords.currentFile[query.charAt(0)]) != null ? _a : [],
|
||||
...(_b = indexedWords.currentFile[query.charAt(0).toLowerCase()]) != null ? _b : [],
|
||||
...(_c = indexedWords.currentVault[query.charAt(0)]) != null ? _c : [],
|
||||
...(_d = indexedWords.currentVault[query.charAt(0).toLowerCase()]) != null ? _d : [],
|
||||
...(_e = indexedWords.customDictionary[query.charAt(0)]) != null ? _e : [],
|
||||
...(_f = indexedWords.customDictionary[query.charAt(0).toLowerCase()]) != null ? _f : [],
|
||||
...(_g = indexedWords.internalLink[query.charAt(0)]) != null ? _g : [],
|
||||
...(_h = indexedWords.internalLink[query.charAt(0).toLowerCase()]) != null ? _h : []
|
||||
] : frontMatter ? flattenFrontMatterWords() : [
|
||||
...(_j = indexedWords.currentFile[query.charAt(0)]) != null ? _j : [],
|
||||
...(_k = indexedWords.currentFile[query.charAt(0).toUpperCase()]) != null ? _k : [],
|
||||
...(_l = indexedWords.currentVault[query.charAt(0)]) != null ? _l : [],
|
||||
...(_m = indexedWords.currentVault[query.charAt(0).toUpperCase()]) != null ? _m : [],
|
||||
...(_n = indexedWords.customDictionary[query.charAt(0)]) != null ? _n : [],
|
||||
...(_o = indexedWords.customDictionary[query.charAt(0).toUpperCase()]) != null ? _o : [],
|
||||
...(_p = indexedWords.internalLink[query.charAt(0)]) != null ? _p : [],
|
||||
...(_q = indexedWords.internalLink[query.charAt(0).toUpperCase()]) != null ? _q : []
|
||||
...(_i = indexedWords.currentFile[query.charAt(0)]) != null ? _i : [],
|
||||
...(_j = indexedWords.currentFile[query.charAt(0).toUpperCase()]) != null ? _j : [],
|
||||
...(_k = indexedWords.currentVault[query.charAt(0)]) != null ? _k : [],
|
||||
...(_l = indexedWords.currentVault[query.charAt(0).toUpperCase()]) != null ? _l : [],
|
||||
...(_m = indexedWords.customDictionary[query.charAt(0)]) != null ? _m : [],
|
||||
...(_n = indexedWords.customDictionary[query.charAt(0).toUpperCase()]) != null ? _n : [],
|
||||
...(_o = indexedWords.internalLink[query.charAt(0)]) != null ? _o : [],
|
||||
...(_p = indexedWords.internalLink[query.charAt(0).toUpperCase()]) != null ? _p : []
|
||||
];
|
||||
const filteredJudgement = Array.from(words).map((x) => judge(x, query, queryStartWithUpper, fuzzy)).filter((x) => x.value !== void 0);
|
||||
const filteredJudgement = Array.from(words).map((x) => judge(x, query, queryStartWithUpper, option)).filter((x) => x.value !== void 0);
|
||||
const latestUpdated = max(
|
||||
filteredJudgement.map(
|
||||
(x) => {
|
||||
|
|
@ -2901,8 +2920,8 @@ function suggestWords(indexedWords, query, maxNum, option = {}) {
|
|||
}).map((x) => x.word).slice(0, maxNum);
|
||||
return uniqWith(candidate, suggestionUniqPredicate);
|
||||
}
|
||||
function judgeByPartialMatch(word, query, queryStartWithUpper, fuzzy) {
|
||||
var _a, _b;
|
||||
function judgeByPartialMatch(word, query, queryStartWithUpper, options) {
|
||||
var _a, _b, _c, _d, _e, _f;
|
||||
if (query === "") {
|
||||
return {
|
||||
word: { ...word, hit: word.value },
|
||||
|
|
@ -2910,10 +2929,10 @@ function judgeByPartialMatch(word, query, queryStartWithUpper, fuzzy) {
|
|||
alias: false
|
||||
};
|
||||
}
|
||||
const startsWithMatcher = fuzzy ? lowerFuzzyStarsWith : lowerStartsWith;
|
||||
const includesMatcher = fuzzy ? lowerFuzzy : lowerIncludes;
|
||||
const startsWithMatcher = (options == null ? void 0 : options.fuzzy) ? lowerFuzzyStarsWith : wrapFuzzy(lowerStartsWith);
|
||||
const includesMatcher = (options == null ? void 0 : options.fuzzy) ? lowerFuzzy : wrapFuzzy(lowerIncludes);
|
||||
const startsWithMatched = startsWithMatcher(word.value, query);
|
||||
if (startsWithMatched) {
|
||||
if (startsWithMatched.type === "concrete_match" || startsWithMatched.type === "fuzzy_match" && startsWithMatched.score > ((_a = options == null ? void 0 : options.fuzzy) == null ? void 0 : _a.minMatchScore)) {
|
||||
if (queryStartWithUpper && word.type !== "internalLink" && word.type !== "frontMatter") {
|
||||
const c = capitalizeFirstLetter(word.value);
|
||||
return {
|
||||
|
|
@ -2921,7 +2940,7 @@ function judgeByPartialMatch(word, query, queryStartWithUpper, fuzzy) {
|
|||
...word,
|
||||
value: c,
|
||||
hit: c,
|
||||
fuzzy: startsWithMatched === "fuzzy"
|
||||
fuzzy: startsWithMatched.type === "fuzzy_match"
|
||||
},
|
||||
value: c,
|
||||
alias: false
|
||||
|
|
@ -2931,40 +2950,48 @@ function judgeByPartialMatch(word, query, queryStartWithUpper, fuzzy) {
|
|||
word: {
|
||||
...word,
|
||||
hit: word.value,
|
||||
fuzzy: startsWithMatched === "fuzzy"
|
||||
fuzzy: startsWithMatched.type === "fuzzy_match"
|
||||
},
|
||||
value: word.value,
|
||||
alias: false
|
||||
};
|
||||
}
|
||||
}
|
||||
const startsWithAliasMatched = (_a = word.aliases) == null ? void 0 : _a.map((a) => ({ aliases: a, matched: startsWithMatcher(a, query) })).find((x) => x.matched);
|
||||
if (startsWithAliasMatched) {
|
||||
const startsWithAliasMatched = (_b = word.aliases) == null ? void 0 : _b.map((a) => ({ aliases: a, matched: startsWithMatcher(a, query) })).sort(
|
||||
(a, b) => a.matched.type === "concrete_match" && b.matched.type !== "concrete_match" ? -1 : 0
|
||||
).find((x) => x.matched.type !== "none");
|
||||
if (startsWithAliasMatched && (startsWithAliasMatched.matched.type === "concrete_match" || startsWithAliasMatched.matched.type === "fuzzy_match" && startsWithAliasMatched.matched.score > ((_c = options == null ? void 0 : options.fuzzy) == null ? void 0 : _c.minMatchScore))) {
|
||||
return {
|
||||
word: {
|
||||
...word,
|
||||
hit: startsWithAliasMatched.aliases,
|
||||
fuzzy: startsWithAliasMatched.matched === "fuzzy"
|
||||
fuzzy: startsWithAliasMatched.matched.type === "fuzzy_match"
|
||||
},
|
||||
value: startsWithAliasMatched.aliases,
|
||||
alias: true
|
||||
};
|
||||
}
|
||||
const includesMatched = includesMatcher(word.value, query);
|
||||
if (includesMatched) {
|
||||
if (includesMatched && (includesMatched.type === "concrete_match" || includesMatched.type === "fuzzy_match" && includesMatched.score > ((_d = options == null ? void 0 : options.fuzzy) == null ? void 0 : _d.minMatchScore))) {
|
||||
return {
|
||||
word: { ...word, hit: word.value, fuzzy: includesMatched === "fuzzy" },
|
||||
word: {
|
||||
...word,
|
||||
hit: word.value,
|
||||
fuzzy: includesMatched.type === "fuzzy_match"
|
||||
},
|
||||
value: word.value,
|
||||
alias: false
|
||||
};
|
||||
}
|
||||
const matchedAliasIncluded = (_b = word.aliases) == null ? void 0 : _b.map((a) => ({ aliases: a, matched: includesMatcher(a, query) })).find((x) => x.matched);
|
||||
if (matchedAliasIncluded) {
|
||||
const matchedAliasIncluded = (_e = word.aliases) == null ? void 0 : _e.map((a) => ({ aliases: a, matched: includesMatcher(a, query) })).sort(
|
||||
(a, b) => a.matched.type === "concrete_match" && b.matched.type !== "concrete_match" ? -1 : 0
|
||||
).find((x) => x.matched.type !== "none");
|
||||
if (matchedAliasIncluded && (matchedAliasIncluded.matched.type === "concrete_match" || matchedAliasIncluded.matched.type === "fuzzy_match" && matchedAliasIncluded.matched.score > ((_f = options == null ? void 0 : options.fuzzy) == null ? void 0 : _f.minMatchScore))) {
|
||||
return {
|
||||
word: {
|
||||
...word,
|
||||
hit: matchedAliasIncluded.aliases,
|
||||
fuzzy: matchedAliasIncluded.matched === "fuzzy"
|
||||
fuzzy: matchedAliasIncluded.matched.type === "fuzzy_match"
|
||||
},
|
||||
value: matchedAliasIncluded.aliases,
|
||||
alias: true
|
||||
|
|
@ -2973,17 +3000,15 @@ function judgeByPartialMatch(word, query, queryStartWithUpper, fuzzy) {
|
|||
return { word, alias: false };
|
||||
}
|
||||
function suggestWordsByPartialMatch(indexedWords, query, maxNum, option = {}) {
|
||||
var _a;
|
||||
const { frontMatter, selectionHistoryStorage } = option;
|
||||
const queryStartWithUpper = capitalizeFirstLetter(query) === query;
|
||||
const fuzzy = (_a = option.fuzzy) != null ? _a : false;
|
||||
const flatObjectValues = (object) => Object.values(object).flat();
|
||||
const flattenFrontMatterWords = () => {
|
||||
var _a2, _b;
|
||||
var _a, _b;
|
||||
if (frontMatter === "alias" || frontMatter === "aliases") {
|
||||
return [];
|
||||
}
|
||||
if (frontMatter && ((_a2 = indexedWords.frontMatter) == null ? void 0 : _a2[frontMatter])) {
|
||||
if (frontMatter && ((_a = indexedWords.frontMatter) == null ? void 0 : _a[frontMatter])) {
|
||||
return Object.values((_b = indexedWords.frontMatter) == null ? void 0 : _b[frontMatter]).flat();
|
||||
}
|
||||
return [];
|
||||
|
|
@ -2994,12 +3019,12 @@ function suggestWordsByPartialMatch(indexedWords, query, maxNum, option = {}) {
|
|||
...flatObjectValues(indexedWords.customDictionary),
|
||||
...flatObjectValues(indexedWords.internalLink)
|
||||
];
|
||||
const filteredJudgement = Array.from(words).map((x) => judgeByPartialMatch(x, query, queryStartWithUpper, fuzzy)).filter((x) => x.value !== void 0);
|
||||
const filteredJudgement = Array.from(words).map((x) => judgeByPartialMatch(x, query, queryStartWithUpper, option)).filter((x) => x.value !== void 0);
|
||||
const latestUpdated = max(
|
||||
filteredJudgement.map(
|
||||
(x) => {
|
||||
var _a2, _b;
|
||||
return (_b = (_a2 = selectionHistoryStorage == null ? void 0 : selectionHistoryStorage.getSelectionHistory(x.word)) == null ? void 0 : _a2.lastUpdated) != null ? _b : 0;
|
||||
var _a, _b;
|
||||
return (_b = (_a = selectionHistoryStorage == null ? void 0 : selectionHistoryStorage.getSelectionHistory(x.word)) == null ? void 0 : _a.lastUpdated) != null ? _b : 0;
|
||||
}
|
||||
),
|
||||
0
|
||||
|
|
@ -3838,6 +3863,7 @@ var AutoCompleteSuggest = class extends import_obsidian3.EditorSuggest {
|
|||
constructor(app2, statusBar) {
|
||||
super(app2);
|
||||
this.pastCurrentTokenSeparatedWhiteSpace = "";
|
||||
this.previousCurrentLine = "";
|
||||
this.previousLinksCacheInActiveFile = /* @__PURE__ */ new Set();
|
||||
this.keymapEventHandler = [];
|
||||
this.appHelper = new AppHelper(app2);
|
||||
|
|
@ -4053,7 +4079,9 @@ var AutoCompleteSuggest = class extends import_obsidian3.EditorSuggest {
|
|||
{
|
||||
frontMatter: parsedQuery.currentFrontMatter,
|
||||
selectionHistoryStorage: this.selectionHistoryStorage,
|
||||
fuzzy: this.settings.fuzzyMatch
|
||||
fuzzy: this.settings.fuzzyMatch ? {
|
||||
minMatchScore: this.settings.minFuzzyMatchScore
|
||||
} : void 0
|
||||
}
|
||||
).map((word) => ({ ...word, offset: q.offset }));
|
||||
}).flat().sort((a, b) => Number(a.fuzzy) - Number(b.fuzzy));
|
||||
|
|
@ -4429,6 +4457,13 @@ var AutoCompleteSuggest = class extends import_obsidian3.EditorSuggest {
|
|||
onReturnNull("Don't show suggestions for IME");
|
||||
return null;
|
||||
}
|
||||
const cl = this.appHelper.getCurrentLine(editor);
|
||||
if (equalsAsLiterals(this.previousCurrentLine, cl) && !this.runManually) {
|
||||
this.previousCurrentLine = cl;
|
||||
onReturnNull("Don't show suggestions because there are no changes");
|
||||
return null;
|
||||
}
|
||||
this.previousCurrentLine = cl;
|
||||
const currentLineUntilCursor = this.appHelper.getCurrentLineUntilCursor(editor);
|
||||
if (currentLineUntilCursor.startsWith("---")) {
|
||||
onReturnNull(
|
||||
|
|
@ -4677,6 +4712,7 @@ var DEFAULT_SETTINGS = {
|
|||
cedictPath: "./cedict_ts.u8",
|
||||
matchStrategy: "prefix",
|
||||
fuzzyMatch: true,
|
||||
minFuzzyMatchScore: 0.5,
|
||||
matchingWithoutEmoji: true,
|
||||
treatAccentDiacriticsAsAlphabeticCharacters: false,
|
||||
maxNumberOfSuggestions: 5,
|
||||
|
|
@ -4820,6 +4856,14 @@ var VariousComplementsSettingTab = class extends import_obsidian4.PluginSettingT
|
|||
await this.plugin.saveSettings();
|
||||
});
|
||||
});
|
||||
new import_obsidian4.Setting(containerEl).setName("Min fuzzy match score").setDesc(
|
||||
"It only shows suggestions whose fuzzy matched score is more than the specific value."
|
||||
).addSlider(
|
||||
(sc) => sc.setLimits(0, 5, 0.1).setValue(this.plugin.settings.minFuzzyMatchScore).setDynamicTooltip().onChange(async (value) => {
|
||||
this.plugin.settings.minFuzzyMatchScore = value;
|
||||
await this.plugin.saveSettings();
|
||||
})
|
||||
);
|
||||
new import_obsidian4.Setting(containerEl).setName("Treat accent diacritics as alphabetic characters.").setDesc("Ex: If enabled, 'aaa' matches with '\xE1\xE4\u0101'").addToggle((tc) => {
|
||||
tc.setValue(
|
||||
this.plugin.settings.treatAccentDiacriticsAsAlphabeticCharacters
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "various-complements",
|
||||
"name": "Various Complements",
|
||||
"version": "8.2.1",
|
||||
"version": "8.3.1",
|
||||
"minAppVersion": "0.16.0",
|
||||
"description": "This plugin enables you to complete words like the auto-completion of IDE",
|
||||
"author": "tadashi-aikawa",
|
||||
|
|
|
|||
472
notes/.obsidian/themes/Atom.css
vendored
472
notes/.obsidian/themes/Atom.css
vendored
|
|
@ -1,472 +0,0 @@
|
|||
.theme-dark {
|
||||
--background-primary: #272b34;
|
||||
--background-primary-alt: #20242b;
|
||||
--background-secondary: #20242b;
|
||||
--background-secondary-alt: #1a1e24;
|
||||
--background-accent: #000;
|
||||
--background-modifier-border: #424958;
|
||||
--background-modifier-form-field: rgba(0, 0, 0, 0.3);
|
||||
--background-modifier-form-field-highlighted: rgba(0, 0, 0, 0.22);
|
||||
--background-modifier-box-shadow: rgba(0, 0, 0, 0.3);
|
||||
--background-modifier-success: #539126;
|
||||
--background-modifier-error: #3d0000;
|
||||
--background-modifier-error-rgb: 61, 0, 0;
|
||||
--background-modifier-error-hover: #470000;
|
||||
--background-modifier-cover: rgba(0, 0, 0, 0.6);
|
||||
--text-accent: #61afef;
|
||||
--text-accent-hover: #69bafd;
|
||||
--text-normal: #dcddde;
|
||||
--text-muted: #888;
|
||||
--text-faint: rgb(81, 86, 99);
|
||||
--text-error: #e16d76;
|
||||
--text-error-hover: #c9626a;
|
||||
--text-highlight-bg: rgba(255, 255, 0, 0.4);
|
||||
--text-selection: rgba(0, 122, 255, 0.2);
|
||||
--text-on-accent: #dcddde;
|
||||
--interactive-normal: #20242b;
|
||||
--interactive-hover: #353b47;
|
||||
--interactive-accent: #4c78cc;
|
||||
--interactive-accent-rgb: 76, 120, 204;
|
||||
--interactive-accent-hover: #5082df;
|
||||
--scrollbar-active-thumb-bg: rgba(255, 255, 255, 0.2);
|
||||
--scrollbar-bg: rgba(255, 255, 255, 0.05);
|
||||
--scrollbar-thumb-bg: rgba(255, 255, 255, 0.1);
|
||||
--panel-border-color: #18191e;
|
||||
--gray-1: #5C6370;
|
||||
--gray-2: #abb2bf;
|
||||
--red: #e06c75;
|
||||
--orange: #d19a66;
|
||||
--green: #98c379;
|
||||
--aqua: #56b6c2;
|
||||
--purple: #c678dd;
|
||||
--blue: #61afef;
|
||||
--yellow: #e5c07b;
|
||||
}
|
||||
|
||||
.theme-light {
|
||||
--background-primary: #fafafa;
|
||||
--background-primary-alt: #eaeaeb;
|
||||
--background-secondary: #eaeaeb;
|
||||
--background-secondary-alt: #dbdbdc;
|
||||
--background-accent: #fff;
|
||||
--background-modifier-border: #dbdbdc;
|
||||
--background-modifier-form-field: #fff;
|
||||
--background-modifier-form-field-highlighted: #fff;
|
||||
--background-modifier-box-shadow: rgba(0, 0, 0, 0.1);
|
||||
--background-modifier-success: #A4E7C3;
|
||||
--background-modifier-error: #e68787;
|
||||
--background-modifier-error-rgb: 230, 135, 135;
|
||||
--background-modifier-error-hover: #FF9494;
|
||||
--background-modifier-cover: rgba(0, 0, 0, 0.8);
|
||||
--text-accent: #1592ff;
|
||||
--text-accent-hover: #2d9dff;
|
||||
--text-normal: #383a42;
|
||||
--text-muted: #8e8e90;
|
||||
--text-faint: #999999;
|
||||
--text-error: #e75545;
|
||||
--text-error-hover: #f86959;
|
||||
--text-highlight-bg: rgba(255, 255, 0, 0.4);
|
||||
--text-selection: rgba(0, 122, 255, 0.15);
|
||||
--text-on-accent: #f2f2f2;
|
||||
--interactive-normal: #eaeaeb;
|
||||
--interactive-hover: #dbdbdc;
|
||||
--interactive-accent-rgb: 21, 146, 255;
|
||||
--interactive-accent: #5871ef;
|
||||
--interactive-accent-hover: #445bd1;
|
||||
--scrollbar-active-thumb-bg: rgba(0, 0, 0, 0.2);
|
||||
--scrollbar-bg: rgba(0, 0, 0, 0.05);
|
||||
--scrollbar-thumb-bg: rgba(0, 0, 0, 0.1);
|
||||
--panel-border-color: #dbdbdc;
|
||||
--gray-1: #383a42;
|
||||
--gray-2: #383a42;
|
||||
--red: #e75545;
|
||||
--green: #4ea24c;
|
||||
--blue: #3d74f6;
|
||||
--purple: #a625a4;
|
||||
--aqua: #0084bc;
|
||||
--yellow: #e35649;
|
||||
--orange: #986800;
|
||||
}
|
||||
|
||||
body {
|
||||
-webkit-font-smoothing: auto;
|
||||
}
|
||||
|
||||
.titlebar {
|
||||
background-color: var(--background-secondary-alt);
|
||||
}
|
||||
|
||||
.titlebar-inner {
|
||||
color: var(--text-normal);
|
||||
}
|
||||
|
||||
.tooltip {
|
||||
background-color: var(--background-secondary-alt);
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.tooltip:not(.mod-right):not(.mod-left):not(.mod-top) .tooltip-arrow {
|
||||
border-bottom-color: var(--background-secondary-alt) !important;
|
||||
}
|
||||
|
||||
.mod-right .tooltip-arrow {
|
||||
border-right-color: var(--background-secondary-alt) !important;
|
||||
}
|
||||
|
||||
.mod-left .tooltip-arrow {
|
||||
border-left-color: var(--background-secondary-alt) !important;
|
||||
}
|
||||
|
||||
.mod-top .tooltip-arrow {
|
||||
border-top-color: var(--background-secondary-alt) !important;
|
||||
}
|
||||
|
||||
.dropdown {
|
||||
cursor: pointer;
|
||||
background-image: url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%234c78cc%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E);
|
||||
}
|
||||
|
||||
.dropdown:hover {
|
||||
background-color: var(--background-modifier-form-field);
|
||||
}
|
||||
|
||||
.search-result-file-title {
|
||||
color: var(--blue);
|
||||
}
|
||||
|
||||
li {
|
||||
padding-top: 0.5px;
|
||||
padding-bottom: 0.5px;
|
||||
}
|
||||
|
||||
a.tag, a.tag:hover {
|
||||
color: var(--yellow);
|
||||
background-color: var(--background-primary-alt);
|
||||
padding: 2px 4px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.markdown-preview-view .task-list-item-checkbox {
|
||||
-webkit-appearance: none;
|
||||
box-sizing: border-box;
|
||||
border: 1px solid var(--text-muted);
|
||||
border-radius: 2px;
|
||||
position: relative;
|
||||
width: 1.3em;
|
||||
height: 1.3em;
|
||||
margin: 0;
|
||||
filter: none;
|
||||
outline: none;
|
||||
margin-right: 4px;
|
||||
margin-bottom: 2px;
|
||||
cursor: pointer;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
.markdown-preview-view .task-list-item-checkbox:checked {
|
||||
border: none;
|
||||
background-color: var(--interactive-accent);
|
||||
}
|
||||
|
||||
.markdown-preview-view .task-list-item-checkbox:checked::before {
|
||||
content: ' ';
|
||||
position: absolute;
|
||||
background-color: white;
|
||||
left: 2px;
|
||||
top: 2px;
|
||||
right: 2px;
|
||||
bottom: 2px;
|
||||
-webkit-mask-image: url('data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 14 14\'%3E%3Cpolygon points=\'5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039\'%3E%3C/polygon%3E%3C/svg%3E');
|
||||
}
|
||||
|
||||
.markdown-preview-view .task-list-item.is-checked a {
|
||||
filter: saturate(0.8) brightness(0.7);
|
||||
}
|
||||
|
||||
.cm-formatting-task {
|
||||
font-family: var(--font-monospace);
|
||||
}
|
||||
|
||||
.nav-file, .nav-folder {
|
||||
padding: 1px 2px;
|
||||
}
|
||||
|
||||
.nav-file-title, .nav-folder-title {
|
||||
width: 100%;
|
||||
cursor: default;
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
flex-direction: row;
|
||||
--text-normal: var(--text-muted);
|
||||
}
|
||||
|
||||
body:not(.is-grabbing) .nav-file .nav-file-title:hover:not(.is-active), body:not(.is-grabbing) .nav-folder .nav-folder-title:hover:not(.is-active) {
|
||||
--background-secondary-alt: transparent;
|
||||
}
|
||||
|
||||
.nav-file .is-active {
|
||||
--background-secondary-alt: var(--interactive-accent);
|
||||
--text-normal: #ffffff;
|
||||
}
|
||||
|
||||
.nav-file-title-content, .nav-folder-title-content {
|
||||
text-indent: 0;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.markdown-preview-view.is-readable-line-width .markdown-preview-section, .markdown-source-view.is-readable-line-width .CodeMirror {
|
||||
max-width: 900px !important;
|
||||
line-height: 26px;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
margin: 20px 0;
|
||||
border-radius: 4px !important;
|
||||
}
|
||||
|
||||
body {
|
||||
--font-monospace: 'Fira Code', 'Source Code Pro', monospace;
|
||||
}
|
||||
|
||||
mjx-container[jax='CHTML'] {
|
||||
text-align: left;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.math-block {
|
||||
font-size: 1.25em;
|
||||
}
|
||||
|
||||
.cm-s-obsidian pre.HyperMD-codeblock, .cm-s-obsidian span.cm-inline-code, .cm-s-obsidian span.cm-math:not(.cm-formatting-math-begin):not(.cm-formatting-math-end), .markdown-preview-view code {
|
||||
/* fix `` tag color */
|
||||
color: #98c379;
|
||||
}
|
||||
|
||||
.cm-s-obsidian span.cm-inline-code, .cm-s-obsidian span.cm-math, .cm-s-obsidian span.hmd-fold-math-placeholder {
|
||||
/* fix tag size */
|
||||
font-weight: 100;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.markdown-preview-view code {
|
||||
vertical-align: text-top;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.markdown-preview-section:not(:first-child) h1, .markdown-preview-section:not(:first-child) h2, .markdown-preview-section:not(:first-child) h3, .markdown-preview-section:not(:first-child) h4, .markdown-preview-section:not(:first-child) h5, .markdown-preview-section:not(:first-child) h6 {
|
||||
margin-top: 40px !important;
|
||||
}
|
||||
|
||||
.markdown-preview-section h1, .markdown-preview-section h2, .markdown-preview-section h3, .markdown-preview-section h4, .markdown-preview-section h5, .markdown-preview-section h6 {
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6, strong, b, .view-header-title {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.workspace>.workspace-split>.workspace-leaf:first-of-type:last-of-type .view-header {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.status-bar, .side-dock.mod-right, .side-dock.mod-left {
|
||||
border-color: var(--panel-border-color);
|
||||
border-width: 1px;
|
||||
}
|
||||
|
||||
.status-bar {
|
||||
--bar-vertical-padding: 4px;
|
||||
--bar-height: calc(22px + (var(--bar-vertical-padding) * 2));
|
||||
line-height: 20px;
|
||||
padding: 0 20px;
|
||||
height: var(--bar-height);
|
||||
max-height: var(--bar-height);
|
||||
min-height: var(--bar-height);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.status-bar-item {
|
||||
margin: auto 0;
|
||||
}
|
||||
|
||||
.status-bar-item>* {
|
||||
padding-top: var(--bar-vertical-padding) !important;
|
||||
padding-bottom: var(--bar-vertical-padding) !important;
|
||||
}
|
||||
|
||||
.side-dock-plugin-panel-inner {
|
||||
padding-left: 6px;
|
||||
}
|
||||
|
||||
a, .markdown-preview-view .internal-link {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover, .markdown-preview-view .internal-link:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.theme-dark :not(pre)>code[class*='language-'], .theme-dark pre[class*='language-'] {
|
||||
background: var(--background-primary-alt);
|
||||
}
|
||||
|
||||
.theme-light :not(pre)>code[class*='language-'], .theme-light pre[class*='language-'] {
|
||||
background: var(--background-primary);
|
||||
box-shadow: inset 0 0 0 1px var(--background-primary-alt);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.markdown-embed:not(.hover-popover .markdown-embed), .file-embed {
|
||||
margin: 0;
|
||||
border-radius: 4px;
|
||||
margin: 0 !important;
|
||||
margin-inline-start: 30px !important;
|
||||
margin-inline-end: 30px !important;
|
||||
}
|
||||
|
||||
.markdown-embed {
|
||||
border: 1px solid var(--background-modifier-border);
|
||||
border-left-width: 5px;
|
||||
}
|
||||
|
||||
.markdown-embed .markdown-preview-view {
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
.markdown-embed-link, .file-embed-link {
|
||||
left: 8px;
|
||||
right: unset;
|
||||
}
|
||||
|
||||
.theme-light .token.operator, .theme-light .token.entity, .theme-light .token.url, .theme-light .language-css .token.string, .theme-light .style .token.string {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
/* Source: https://github.com/AGMStudio/prism-theme-one-dark */
|
||||
|
||||
code[class*='language-'], pre[class*='language-'] {
|
||||
text-align: left !important;
|
||||
white-space: pre !important;
|
||||
word-spacing: normal !important;
|
||||
word-break: normal !important;
|
||||
word-wrap: normal !important;
|
||||
line-height: 1.5 !important;
|
||||
-moz-tab-size: 4 !important;
|
||||
-o-tab-size: 4 !important;
|
||||
tab-size: 4 !important;
|
||||
-webkit-hyphens: none !important;
|
||||
-moz-hyphens: none !important;
|
||||
-ms-hyphens: none !important;
|
||||
hyphens: none !important;
|
||||
}
|
||||
|
||||
/* Code blocks */
|
||||
|
||||
pre[class*='language-'] {
|
||||
padding: 1em !important;
|
||||
margin: .5em 0 !important;
|
||||
overflow: auto !important;
|
||||
}
|
||||
|
||||
/* Inline code */
|
||||
|
||||
:not(pre)>code[class*='language-'] {
|
||||
padding: .1em !important;
|
||||
border-radius: .3em !important;
|
||||
white-space: normal !important;
|
||||
}
|
||||
|
||||
.token.comment, .token.prolog, .token.doctype, .token.cdata {
|
||||
color: var(--gray-1) !important;
|
||||
}
|
||||
|
||||
.token.punctuation {
|
||||
color: var(--gray-2) !important;
|
||||
}
|
||||
|
||||
.token.selector, .token.tag {
|
||||
color: var(--red) !important;
|
||||
}
|
||||
|
||||
.token.property, .token.boolean, .token.number, .token.constant, .token.symbol, .token.attr-name, .token.deleted {
|
||||
color: var(--orange) !important;
|
||||
}
|
||||
|
||||
.token.string, .token.char, .token.attr-value, .token.builtin, .token.inserted {
|
||||
color: var(--green) !important;
|
||||
}
|
||||
|
||||
.token.operator, .token.entity, .token.url, .language-css .token.string, .style .token.string {
|
||||
color: var(--aqua) !important;
|
||||
}
|
||||
|
||||
.token.atrule, .token.keyword {
|
||||
color: var(--purple) !important;
|
||||
}
|
||||
|
||||
.token.function, .token.macro.property {
|
||||
color: var(--blue) !important;
|
||||
}
|
||||
|
||||
.token.class-name {
|
||||
color: var(--yellow) !important;
|
||||
}
|
||||
|
||||
.token.regex, .token.important, .token.variable {
|
||||
color: var(--purple) !important;
|
||||
}
|
||||
|
||||
.token.important, .token.bold {
|
||||
font-weight: bold !important;
|
||||
}
|
||||
|
||||
.token.italic {
|
||||
font-style: italic !important;
|
||||
}
|
||||
|
||||
.token.entity {
|
||||
cursor: help !important;
|
||||
}
|
||||
|
||||
pre.line-numbers {
|
||||
position: relative !important;
|
||||
padding-left: 3.8em !important;
|
||||
counter-reset: linenumber !important;
|
||||
}
|
||||
|
||||
pre.line-numbers>code {
|
||||
position: relative !important;
|
||||
}
|
||||
|
||||
.line-numbers .line-numbers-rows {
|
||||
position: absolute !important;
|
||||
pointer-events: none !important;
|
||||
top: 0 !important;
|
||||
font-size: 100% !important;
|
||||
left: -3.8em !important;
|
||||
width: 3em !important;
|
||||
/* works for line-numbers below 1000 lines */
|
||||
letter-spacing: -1px !important;
|
||||
border-right: 0 !important;
|
||||
-webkit-user-select: none !important;
|
||||
-moz-user-select: none !important;
|
||||
-ms-user-select: none !important;
|
||||
user-select: none !important;
|
||||
}
|
||||
|
||||
.line-numbers-rows>span {
|
||||
pointer-events: none !important;
|
||||
display: block !important;
|
||||
counter-increment: linenumber !important;
|
||||
}
|
||||
|
||||
.line-numbers-rows>span:before {
|
||||
content: counter(linenumber) !important;
|
||||
color: var(--syntax-gray-1) !important;
|
||||
display: block !important;
|
||||
padding-right: 0.8em !important;
|
||||
text-align: right !important;
|
||||
}
|
||||
437
notes/.obsidian/themes/Atom/theme.css
vendored
437
notes/.obsidian/themes/Atom/theme.css
vendored
|
|
@ -1,4 +1,9 @@
|
|||
/* Base colors - TODO: are grey 1 and grey 2 used? */
|
||||
.theme-dark {
|
||||
--accent-h: 219;
|
||||
--accent-s: 56%;
|
||||
--accent-l: 55%;
|
||||
|
||||
--background-primary: #272b34;
|
||||
--background-primary-alt: #20242b;
|
||||
--background-secondary: #20242b;
|
||||
|
|
@ -14,7 +19,7 @@
|
|||
--background-modifier-error-hover: #470000;
|
||||
--background-modifier-cover: rgba(0, 0, 0, 0.6);
|
||||
--text-accent: #61afef;
|
||||
--text-accent-hover: #69bafd;
|
||||
--text-accent-hover: #70bdfc;
|
||||
--text-normal: #dcddde;
|
||||
--text-muted: #888;
|
||||
--text-faint: rgb(81, 86, 99);
|
||||
|
|
@ -25,9 +30,7 @@
|
|||
--text-on-accent: #dcddde;
|
||||
--interactive-normal: #20242b;
|
||||
--interactive-hover: #353b47;
|
||||
--interactive-accent: #4c78cc;
|
||||
--interactive-accent-rgb: 76, 120, 204;
|
||||
--interactive-accent-hover: #5082df;
|
||||
--interactive-accent-hover: hsl(var(--accent-h), calc(var(--accent-s) + 5%), calc(var(--accent-l) - 10%));
|
||||
--scrollbar-active-thumb-bg: rgba(255, 255, 255, 0.2);
|
||||
--scrollbar-bg: rgba(255, 255, 255, 0.05);
|
||||
--scrollbar-thumb-bg: rgba(255, 255, 255, 0.1);
|
||||
|
|
@ -41,9 +44,16 @@
|
|||
--purple: #c678dd;
|
||||
--blue: #61afef;
|
||||
--yellow: #e5c07b;
|
||||
|
||||
--background-modifier-hover: hsla(var(--accent-h), calc(var(--accent-s) - 35%), var(--accent-l), 0.06);
|
||||
--divider-color-hover: #404754;
|
||||
}
|
||||
|
||||
.theme-light {
|
||||
--accent-h: 230;
|
||||
--accent-s: 83%;
|
||||
--accent-l: 64%;
|
||||
|
||||
--background-primary: #fafafa;
|
||||
--background-primary-alt: #eaeaeb;
|
||||
--background-secondary: #eaeaeb;
|
||||
|
|
@ -59,7 +69,7 @@
|
|||
--background-modifier-error-hover: #FF9494;
|
||||
--background-modifier-cover: rgba(0, 0, 0, 0.8);
|
||||
--text-accent: #1592ff;
|
||||
--text-accent-hover: #2d9dff;
|
||||
--text-accent-hover: #097add;
|
||||
--text-normal: #383a42;
|
||||
--text-muted: #8e8e90;
|
||||
--text-faint: #999999;
|
||||
|
|
@ -71,8 +81,7 @@
|
|||
--interactive-normal: #eaeaeb;
|
||||
--interactive-hover: #dbdbdc;
|
||||
--interactive-accent-rgb: 21, 146, 255;
|
||||
--interactive-accent: #5871ef;
|
||||
--interactive-accent-hover: #445bd1;
|
||||
--interactive-accent-hover: hsl(var(--accent-h), calc(var(--accent-s) - 10%), calc(var(--accent-l) - 4%));
|
||||
--scrollbar-active-thumb-bg: rgba(0, 0, 0, 0.2);
|
||||
--scrollbar-bg: rgba(0, 0, 0, 0.05);
|
||||
--scrollbar-thumb-bg: rgba(0, 0, 0, 0.1);
|
||||
|
|
@ -88,265 +97,161 @@
|
|||
--orange: #986800;
|
||||
}
|
||||
|
||||
body {
|
||||
-webkit-font-smoothing: auto;
|
||||
.theme-dark, .theme-light {
|
||||
--ribbon-background: var(--background-primary);
|
||||
--drag-ghost-background: var(--background-secondary-alt);
|
||||
--background-modifier-message: var(--background-secondary-alt);
|
||||
|
||||
--tab-outline-color: transparent;
|
||||
--divider-color: transparent;
|
||||
|
||||
--prompt-border-color: var(--panel-border-color);
|
||||
--modal-border-color: var(--panel-border-color);
|
||||
|
||||
--background-modifier-border-hover: var(--interactive-hover);
|
||||
--background-modifier-border-focus: var(--interactive-hover);
|
||||
|
||||
--checkbox-color: var(--text-accent);
|
||||
--checkbox-color-hover: var(--text-accent-hover);
|
||||
|
||||
--nav-item-background-active: var(--interactive-accent);
|
||||
--nav-item-color-active: #ffffff;
|
||||
|
||||
--tag-color: var(--yellow);
|
||||
--tag-background: var(--background-primary-alt);
|
||||
--tag-color-hover: var(--yellow);
|
||||
--tag-background-hover: var(--background-primary-alt);
|
||||
--tag-padding-x: 4px;
|
||||
--tag-padding-y: 2px;
|
||||
--tag-radius: 4px;
|
||||
|
||||
--inline-title-weight: var(--bold-weight);
|
||||
--link-decoration: none;
|
||||
--link-external-decoration: none;
|
||||
--embed-padding: 0 0 0 var(--size-4-4);
|
||||
}
|
||||
|
||||
.titlebar {
|
||||
background-color: var(--background-secondary-alt);
|
||||
}
|
||||
|
||||
.titlebar-inner {
|
||||
color: var(--text-normal);
|
||||
}
|
||||
|
||||
.tooltip {
|
||||
background-color: var(--background-secondary-alt);
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.tooltip:not(.mod-right):not(.mod-left):not(.mod-top) .tooltip-arrow {
|
||||
border-bottom-color: var(--background-secondary-alt) !important;
|
||||
}
|
||||
|
||||
.mod-right .tooltip-arrow {
|
||||
border-right-color: var(--background-secondary-alt) !important;
|
||||
}
|
||||
|
||||
.mod-left .tooltip-arrow {
|
||||
border-left-color: var(--background-secondary-alt) !important;
|
||||
}
|
||||
|
||||
.mod-top .tooltip-arrow {
|
||||
border-top-color: var(--background-secondary-alt) !important;
|
||||
}
|
||||
|
||||
.dropdown {
|
||||
/* Search */
|
||||
.search-result .search-result-file-title {
|
||||
cursor: pointer;
|
||||
background-image: url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%234c78cc%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E);
|
||||
}
|
||||
|
||||
.dropdown:hover {
|
||||
background-color: var(--background-modifier-form-field);
|
||||
.search-result .collapse-icon {
|
||||
cursor: var(--cursor);
|
||||
}
|
||||
|
||||
.search-result-file-title {
|
||||
.search-result:not(.is-collapsed) .search-result-file-title {
|
||||
color: var(--blue);
|
||||
}
|
||||
|
||||
li {
|
||||
padding-top: 0.5px;
|
||||
padding-bottom: 0.5px;
|
||||
/* File tab separators */
|
||||
.workspace .mod-root .workspace-tab-header-inner::after {
|
||||
right: unset;
|
||||
left: -0.5px;
|
||||
}
|
||||
|
||||
a.tag, a.tag:hover {
|
||||
color: var(--yellow);
|
||||
background-color: var(--background-primary-alt);
|
||||
padding: 2px 4px;
|
||||
.workspace .mod-root .workspace-tab-header:last-child .workspace-tab-header-inner::before {
|
||||
position: absolute;
|
||||
right: -0.5px;
|
||||
width: 1px;
|
||||
background-color: var(--tab-divider-color);
|
||||
content: '';
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.workspace .mod-root .workspace-tab-header.is-active .workspace-tab-header-inner::after,
|
||||
.workspace .mod-root .workspace-tab-header.is-active .workspace-tab-header-inner::before,
|
||||
.workspace .mod-root .workspace-tab-header:first-child .workspace-tab-header-inner::after,
|
||||
.workspace .mod-root .workspace-tab-header.is-active + .workspace-tab-header .workspace-tab-header-inner::after {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
/* Editor and output */
|
||||
.markdown-rendered blockquote {
|
||||
padding: var(--embed-padding);
|
||||
}
|
||||
|
||||
mjx-container {
|
||||
text-align: left !important;
|
||||
}
|
||||
|
||||
.math-block {
|
||||
font-size: 1.3em;
|
||||
}
|
||||
|
||||
.theme-light :not(pre)>code,
|
||||
.theme-light pre {
|
||||
background: var(--background-primary);
|
||||
box-shadow: inset 0 0 0 1px var(--background-primary-alt);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.markdown-preview-view .task-list-item-checkbox {
|
||||
-webkit-appearance: none;
|
||||
box-sizing: border-box;
|
||||
border: 1px solid var(--text-muted);
|
||||
border-radius: 2px;
|
||||
position: relative;
|
||||
width: 1.3em;
|
||||
height: 1.3em;
|
||||
margin: 0;
|
||||
filter: none;
|
||||
outline: none;
|
||||
margin-right: 4px;
|
||||
margin-bottom: 2px;
|
||||
cursor: pointer;
|
||||
vertical-align: baseline;
|
||||
.markdown-preview-section > div h1,
|
||||
.markdown-preview-section > div h2,
|
||||
.markdown-preview-section > div h3,
|
||||
.markdown-preview-section > div h4,
|
||||
.markdown-preview-section > div h5,
|
||||
.markdown-preview-section > div h6 {
|
||||
margin-top: 40px;
|
||||
}
|
||||
|
||||
.markdown-preview-view .task-list-item-checkbox:checked {
|
||||
border: none;
|
||||
background-color: var(--interactive-accent);
|
||||
.mod-header + div h1,
|
||||
.mod-header + div h2,
|
||||
.mod-header + div h3,
|
||||
.mod-header + div h4,
|
||||
.mod-header + div h5,
|
||||
.mod-header + div h6 {
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
.markdown-preview-view .task-list-item-checkbox:checked::before {
|
||||
content: ' ';
|
||||
position: absolute;
|
||||
background-color: white;
|
||||
left: 2px;
|
||||
top: 2px;
|
||||
right: 2px;
|
||||
bottom: 2px;
|
||||
-webkit-mask-image: url('data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 14 14\'%3E%3Cpolygon points=\'5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039\'%3E%3C/polygon%3E%3C/svg%3E');
|
||||
.cm-sizer > .inline-title {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.markdown-preview-view .task-list-item.is-checked a {
|
||||
filter: saturate(0.8) brightness(0.7);
|
||||
/* Miscellaneous */
|
||||
.theme-dark .dropdown:hover {
|
||||
background-color: var(--background-modifier-form-field);
|
||||
}
|
||||
|
||||
.cm-formatting-task {
|
||||
font-family: var(--font-monospace);
|
||||
.tooltip {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.nav-file, .nav-folder {
|
||||
padding: 1px 2px;
|
||||
}
|
||||
|
||||
.nav-file-title, .nav-folder-title {
|
||||
width: 100%;
|
||||
cursor: default;
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
flex-direction: row;
|
||||
--text-normal: var(--text-muted);
|
||||
body:not(.is-grabbing) .nav-file-title.is-being-dragged,
|
||||
body:not(.is-grabbing) .nav-folder-title.is-being-dragged,
|
||||
.nav-file-title.is-being-dragged,
|
||||
.nav-folder-title.is-being-dragged {
|
||||
background-color: var(--background-primary-alt);
|
||||
color: var(--nav-item-color);
|
||||
}
|
||||
|
||||
body:not(.is-grabbing) .nav-file .nav-file-title:hover:not(.is-active), body:not(.is-grabbing) .nav-folder .nav-folder-title:hover:not(.is-active) {
|
||||
--background-secondary-alt: transparent;
|
||||
}
|
||||
|
||||
.nav-file .is-active {
|
||||
--background-secondary-alt: var(--interactive-accent);
|
||||
--text-normal: #ffffff;
|
||||
}
|
||||
|
||||
.nav-file-title-content, .nav-folder-title-content {
|
||||
text-indent: 0;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.markdown-preview-view.is-readable-line-width .markdown-preview-section, .markdown-source-view.is-readable-line-width .CodeMirror {
|
||||
max-width: 900px !important;
|
||||
line-height: 26px;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
margin: 20px 0;
|
||||
border-radius: 4px !important;
|
||||
}
|
||||
|
||||
body {
|
||||
--font-monospace: 'Fira Code', 'Source Code Pro', monospace;
|
||||
}
|
||||
|
||||
mjx-container[jax='CHTML'] {
|
||||
text-align: left;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.math-block {
|
||||
font-size: 1.25em;
|
||||
}
|
||||
|
||||
.cm-s-obsidian pre.HyperMD-codeblock, .cm-s-obsidian span.cm-inline-code, .cm-s-obsidian span.cm-math:not(.cm-formatting-math-begin):not(.cm-formatting-math-end), .markdown-preview-view code {
|
||||
/* fix `` tag color */
|
||||
color: #98c379;
|
||||
}
|
||||
|
||||
.cm-s-obsidian span.cm-inline-code, .cm-s-obsidian span.cm-math, .cm-s-obsidian span.hmd-fold-math-placeholder {
|
||||
/* fix tag size */
|
||||
font-weight: 100;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.markdown-preview-view code {
|
||||
vertical-align: 0;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.markdown-preview-section:not(:first-child) h1, .markdown-preview-section:not(:first-child) h2, .markdown-preview-section:not(:first-child) h3, .markdown-preview-section:not(:first-child) h4, .markdown-preview-section:not(:first-child) h5, .markdown-preview-section:not(:first-child) h6 {
|
||||
margin-top: 40px !important;
|
||||
}
|
||||
|
||||
.markdown-preview-section h1, .markdown-preview-section h2, .markdown-preview-section h3, .markdown-preview-section h4, .markdown-preview-section h5, .markdown-preview-section h6 {
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6, strong, b, .view-header-title {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.workspace>.workspace-split>.workspace-leaf:first-of-type:last-of-type .view-header {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.status-bar, .side-dock.mod-right, .side-dock.mod-left {
|
||||
border-color: var(--panel-border-color);
|
||||
border-width: 1px;
|
||||
.view-header-title {
|
||||
text-decoration: underline;
|
||||
text-decoration-color: var(--text-muted);
|
||||
text-underline-offset: 1.5px;
|
||||
}
|
||||
|
||||
.status-bar {
|
||||
--bar-vertical-padding: 4px;
|
||||
--bar-height: calc(22px + (var(--bar-vertical-padding) * 2));
|
||||
line-height: 20px;
|
||||
padding: 0 20px;
|
||||
height: var(--bar-height);
|
||||
max-height: var(--bar-height);
|
||||
min-height: var(--bar-height);
|
||||
overflow: hidden;
|
||||
border-color: var(--panel-border-color);
|
||||
border-width: 1px;
|
||||
padding: 4px 8px;
|
||||
}
|
||||
|
||||
.status-bar-item {
|
||||
margin: auto 0;
|
||||
.theme-dark button.mod-warning {
|
||||
--background-modifier-error: #d42020;
|
||||
--background-modifier-error-hover: #b01515;
|
||||
}
|
||||
|
||||
.status-bar-item>* {
|
||||
padding-top: var(--bar-vertical-padding) !important;
|
||||
padding-bottom: var(--bar-vertical-padding) !important;
|
||||
.theme-light button.mod-warning {
|
||||
--background-modifier-error: #f23f3f;
|
||||
--background-modifier-error-hover: #d72020;
|
||||
}
|
||||
|
||||
.side-dock-plugin-panel-inner {
|
||||
padding-left: 6px;
|
||||
}
|
||||
|
||||
a, .markdown-preview-view .internal-link {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover, .markdown-preview-view .internal-link:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.theme-dark :not(pre)>code[class*='language-'], .theme-dark pre[class*='language-'] {
|
||||
background: var(--background-primary-alt);
|
||||
}
|
||||
|
||||
.theme-light :not(pre)>code[class*='language-'], .theme-light pre[class*='language-'] {
|
||||
background: var(--background-primary);
|
||||
box-shadow: inset 0 0 0 1px var(--background-primary-alt);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.markdown-embed:not(.hover-popover .markdown-embed), .file-embed {
|
||||
margin: 0;
|
||||
border-radius: 4px;
|
||||
margin: 0 !important;
|
||||
margin-inline-start: 30px !important;
|
||||
margin-inline-end: 30px !important;
|
||||
}
|
||||
|
||||
.markdown-embed {
|
||||
border: 1px solid var(--background-modifier-border);
|
||||
border-left-width: 5px;
|
||||
}
|
||||
|
||||
.markdown-embed .markdown-preview-view {
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
.markdown-embed-link, .file-embed-link {
|
||||
left: 8px;
|
||||
right: unset;
|
||||
}
|
||||
|
||||
.theme-light .token.operator, .theme-light .token.entity, .theme-light .token.url, .theme-light .language-css .token.string, .theme-light .style .token.string {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
/* Source: https://github.com/AGMStudio/prism-theme-one-dark */
|
||||
|
||||
/* Code syntax highlighting */
|
||||
code[class*='language-'], pre[class*='language-'] {
|
||||
text-align: left !important;
|
||||
white-space: pre !important;
|
||||
|
|
@ -354,64 +259,66 @@ code[class*='language-'], pre[class*='language-'] {
|
|||
word-break: normal !important;
|
||||
word-wrap: normal !important;
|
||||
line-height: 1.5 !important;
|
||||
-moz-tab-size: 4 !important;
|
||||
-o-tab-size: 4 !important;
|
||||
tab-size: 4 !important;
|
||||
-webkit-hyphens: none !important;
|
||||
-moz-hyphens: none !important;
|
||||
-ms-hyphens: none !important;
|
||||
hyphens: none !important;
|
||||
}
|
||||
|
||||
/* Code blocks */
|
||||
|
||||
pre[class*='language-'] {
|
||||
/* Code blocks */
|
||||
padding: 1em !important;
|
||||
margin: .5em 0 !important;
|
||||
overflow: auto !important;
|
||||
}
|
||||
|
||||
/* Inline code */
|
||||
|
||||
:not(pre)>code[class*='language-'] {
|
||||
/* Inline code */
|
||||
padding: .1em !important;
|
||||
border-radius: .3em !important;
|
||||
white-space: normal !important;
|
||||
}
|
||||
|
||||
.token.comment, .token.prolog, .token.doctype, .token.cdata {
|
||||
.token.comment, .token.prolog, .token.doctype, .token.cdata,
|
||||
.HyperMD-codeblock .cm-comment {
|
||||
color: var(--gray-1) !important;
|
||||
}
|
||||
|
||||
.token.punctuation {
|
||||
.token.punctuation,
|
||||
.HyperMD-codeblock .cm-hmd-codeblock, .HyperMD-codeblock .cm-bracket {
|
||||
color: var(--gray-2) !important;
|
||||
}
|
||||
|
||||
.token.selector, .token.tag {
|
||||
.token.selector, .token.tag,
|
||||
.HyperMD-codeblock .cm-tag, .HyperMD-codeblock .cm-property, .HyperMD-codeblock .cm-meta, .HyperMD-codeblock .cm-qualifier, .HyperMD-codeblock .cm-header, .HyperMD-codeblock .cm-quote, .HyperMD-codeblock .cm-hr, .HyperMD-codeblock .cm-link {
|
||||
color: var(--red) !important;
|
||||
}
|
||||
|
||||
.token.property, .token.boolean, .token.number, .token.constant, .token.symbol, .token.attr-name, .token.deleted {
|
||||
.token.property, .token.boolean, .token.number, .token.constant, .token.symbol, .token.attr-name, .token.deleted,
|
||||
.HyperMD-codeblock .cm-number, .HyperMD-codeblock .cm-atom, .HyperMD-codeblock .cm-attribute {
|
||||
color: var(--orange) !important;
|
||||
}
|
||||
|
||||
.token.string, .token.char, .token.attr-value, .token.builtin, .token.inserted {
|
||||
.token.string, .token.char, .token.attr-value, .token.builtin, .token.inserted,
|
||||
.HyperMD-codeblock .cm-string, .HyperMD-codeblock .cm-builtin {
|
||||
color: var(--green) !important;
|
||||
}
|
||||
|
||||
.token.operator, .token.entity, .token.url, .language-css .token.string, .style .token.string {
|
||||
.token.operator, .token.entity, .token.url, .language-css .token.string, .style .token.string,
|
||||
.HyperMD-codeblock .cm-string-2, .HyperMD-codeblock .cm-operator {
|
||||
color: var(--aqua) !important;
|
||||
}
|
||||
|
||||
.token.atrule, .token.keyword {
|
||||
.token.atrule, .token.keyword,
|
||||
.HyperMD-codeblock .cm-keyword {
|
||||
color: var(--purple) !important;
|
||||
}
|
||||
|
||||
.token.function, .token.macro.property {
|
||||
.token.function, .token.macro.property,
|
||||
.HyperMD-codeblock .cm-def, .HyperMD-codeblock .cm-variable {
|
||||
color: var(--blue) !important;
|
||||
}
|
||||
|
||||
.token.class-name {
|
||||
.token.class-name,
|
||||
.HyperMD-codeblock .cm-variable-2, .HyperMD-codeblock .cm-variable-3 {
|
||||
color: var(--yellow) !important;
|
||||
}
|
||||
|
||||
|
|
@ -429,44 +336,4 @@ pre[class*='language-'] {
|
|||
|
||||
.token.entity {
|
||||
cursor: help !important;
|
||||
}
|
||||
|
||||
pre.line-numbers {
|
||||
position: relative !important;
|
||||
padding-left: 3.8em !important;
|
||||
counter-reset: linenumber !important;
|
||||
}
|
||||
|
||||
pre.line-numbers>code {
|
||||
position: relative !important;
|
||||
}
|
||||
|
||||
.line-numbers .line-numbers-rows {
|
||||
position: absolute !important;
|
||||
pointer-events: none !important;
|
||||
top: 0 !important;
|
||||
font-size: 100% !important;
|
||||
left: -3.8em !important;
|
||||
width: 3em !important;
|
||||
/* works for line-numbers below 1000 lines */
|
||||
letter-spacing: -1px !important;
|
||||
border-right: 0 !important;
|
||||
-webkit-user-select: none !important;
|
||||
-moz-user-select: none !important;
|
||||
-ms-user-select: none !important;
|
||||
user-select: none !important;
|
||||
}
|
||||
|
||||
.line-numbers-rows>span {
|
||||
pointer-events: none !important;
|
||||
display: block !important;
|
||||
counter-increment: linenumber !important;
|
||||
}
|
||||
|
||||
.line-numbers-rows>span:before {
|
||||
content: counter(linenumber) !important;
|
||||
color: var(--syntax-gray-1) !important;
|
||||
display: block !important;
|
||||
padding-right: 0.8em !important;
|
||||
text-align: right !important;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue