vault backup: 2024-05-15 19:12:54
This commit is contained in:
commit
f51d8fdd2f
119 files changed
+154202
No files matched your search
+239
@@ -0,0 +1,239 @@
|
||||
{
|
||||
"compactView": false,
|
||||
"excalibrainFilepath": "excalibrain.md",
|
||||
"indexUpdateInterval": 5000,
|
||||
"hierarchy": {
|
||||
"exclusions": [
|
||||
"excalidraw-border-color",
|
||||
"excalidraw-css",
|
||||
"excalidraw-default-mode",
|
||||
"excalidraw-export-dark",
|
||||
"excalidraw-export-pngscale",
|
||||
"excalidraw-export-svgpadding",
|
||||
"excalidraw-export-transparent",
|
||||
"excalidraw-font",
|
||||
"excalidraw-font-color",
|
||||
"excalidraw-link-brackets",
|
||||
"excalidraw-link-prefix",
|
||||
"excalidraw-linkbutton-opacity",
|
||||
"excalidraw-onload-script",
|
||||
"excalidraw-plugin",
|
||||
"excalidraw-url-prefix",
|
||||
"kanban-plugin"
|
||||
],
|
||||
"parents": [
|
||||
"inception",
|
||||
"North",
|
||||
"origin",
|
||||
"Parent",
|
||||
"Parents",
|
||||
"parnet domain",
|
||||
"source",
|
||||
"u",
|
||||
"up"
|
||||
],
|
||||
"children": [
|
||||
"Child",
|
||||
"Children",
|
||||
"contributes to",
|
||||
"d",
|
||||
"down",
|
||||
"leads to",
|
||||
"nurtures",
|
||||
"South"
|
||||
],
|
||||
"leftFriends": [
|
||||
"advantages",
|
||||
"alternatives",
|
||||
"Friend",
|
||||
"Friends",
|
||||
"j",
|
||||
"Jump",
|
||||
"Jumps",
|
||||
"pros",
|
||||
"similar",
|
||||
"supports"
|
||||
],
|
||||
"rightFriends": [
|
||||
"cons",
|
||||
"disadvantages",
|
||||
"missing",
|
||||
"opposes"
|
||||
],
|
||||
"previous": [
|
||||
"Before",
|
||||
"Prev",
|
||||
"Previous",
|
||||
"w",
|
||||
"West"
|
||||
],
|
||||
"next": [
|
||||
"After",
|
||||
"e",
|
||||
"East",
|
||||
"n",
|
||||
"Next"
|
||||
]
|
||||
},
|
||||
"inferAllLinksAsFriends": false,
|
||||
"inverseInfer": false,
|
||||
"renderAlias": true,
|
||||
"nodeTitleScript": "",
|
||||
"backgroundColor": "#0c3e6aff",
|
||||
"excludeFilepaths": [],
|
||||
"showInferredNodes": true,
|
||||
"showAttachments": true,
|
||||
"showURLNodes": true,
|
||||
"showVirtualNodes": true,
|
||||
"showFolderNodes": false,
|
||||
"showTagNodes": false,
|
||||
"showPageNodes": true,
|
||||
"showNeighborCount": true,
|
||||
"showFullTagName": false,
|
||||
"maxItemCount": 30,
|
||||
"renderSiblings": true,
|
||||
"baseNodeStyle": {
|
||||
"prefix": "",
|
||||
"backgroundColor": "#00000066",
|
||||
"fillStyle": "solid",
|
||||
"textColor": "#ffffffff",
|
||||
"borderColor": "#00000000",
|
||||
"fontSize": 20,
|
||||
"fontFamily": 3,
|
||||
"maxLabelLength": 30,
|
||||
"roughness": 0,
|
||||
"strokeShaprness": "round",
|
||||
"strokeWidth": 1,
|
||||
"strokeStyle": "solid",
|
||||
"padding": 10,
|
||||
"gateRadius": 5,
|
||||
"gateOffset": 15,
|
||||
"gateStrokeColor": "#ffffffff",
|
||||
"gateBackgroundColor": "#ffffffff",
|
||||
"gateFillStyle": "solid"
|
||||
},
|
||||
"centralNodeStyle": {
|
||||
"fontSize": 30,
|
||||
"backgroundColor": "#B5B5B5",
|
||||
"textColor": "#000000ff"
|
||||
},
|
||||
"inferredNodeStyle": {
|
||||
"backgroundColor": "#000005b3",
|
||||
"textColor": "#95c7f3ff"
|
||||
},
|
||||
"urlNodeStyle": {
|
||||
"prefix": "🌐 "
|
||||
},
|
||||
"virtualNodeStyle": {
|
||||
"backgroundColor": "#ff000066",
|
||||
"fillStyle": "hachure",
|
||||
"textColor": "#ffffffff"
|
||||
},
|
||||
"siblingNodeStyle": {
|
||||
"fontSize": 15
|
||||
},
|
||||
"attachmentNodeStyle": {
|
||||
"prefix": "📎 "
|
||||
},
|
||||
"folderNodeStyle": {
|
||||
"prefix": "📂 ",
|
||||
"strokeShaprness": "sharp",
|
||||
"borderColor": "#ffd700ff",
|
||||
"textColor": "#ffd700ff"
|
||||
},
|
||||
"tagNodeStyle": {
|
||||
"prefix": "#",
|
||||
"strokeShaprness": "sharp",
|
||||
"borderColor": "#4682b4ff",
|
||||
"textColor": "#4682b4ff"
|
||||
},
|
||||
"tagNodeStyles": {},
|
||||
"tagStyleList": [],
|
||||
"baseLinkStyle": {
|
||||
"strokeColor": "#696969FF",
|
||||
"strokeWidth": 1,
|
||||
"strokeStyle": "solid",
|
||||
"roughness": 0,
|
||||
"startArrowHead": "none",
|
||||
"endArrowHead": "none",
|
||||
"showLabel": false,
|
||||
"fontSize": 10,
|
||||
"fontFamily": 3,
|
||||
"textColor": "#ffffffff"
|
||||
},
|
||||
"inferredLinkStyle": {
|
||||
"strokeStyle": "dashed"
|
||||
},
|
||||
"folderLinkStyle": {
|
||||
"strokeColor": "#ffd700ff"
|
||||
},
|
||||
"tagLinkStyle": {
|
||||
"strokeColor": "#4682b4ff"
|
||||
},
|
||||
"hierarchyLinkStyles": {
|
||||
"inception": {},
|
||||
"North": {},
|
||||
"origin": {},
|
||||
"Parent": {},
|
||||
"Parents": {},
|
||||
"parnet domain": {},
|
||||
"source": {},
|
||||
"u": {},
|
||||
"up": {},
|
||||
"Child": {},
|
||||
"Children": {},
|
||||
"contributes to": {},
|
||||
"d": {},
|
||||
"down": {},
|
||||
"leads to": {},
|
||||
"nurtures": {},
|
||||
"South": {},
|
||||
"advantages": {},
|
||||
"alternatives": {},
|
||||
"Friend": {},
|
||||
"Friends": {},
|
||||
"j": {},
|
||||
"Jump": {},
|
||||
"Jumps": {},
|
||||
"pros": {},
|
||||
"similar": {},
|
||||
"supports": {},
|
||||
"cons": {},
|
||||
"disadvantages": {},
|
||||
"missing": {},
|
||||
"opposes": {},
|
||||
"Before": {},
|
||||
"Prev": {},
|
||||
"Previous": {},
|
||||
"w": {},
|
||||
"West": {},
|
||||
"After": {},
|
||||
"e": {},
|
||||
"East": {},
|
||||
"n": {},
|
||||
"Next": {}
|
||||
},
|
||||
"navigationHistory": [
|
||||
"ToDo's/ToDo's.md",
|
||||
"Excalidraw/ExcaliBrain Snapshot - ExcaliBrain Snapshot - Drawing 2023-08-03 02.50.47.excalidraw.excalidraw.excalidraw.md",
|
||||
"Excalidraw/ExcaliBrain Snapshot - Drawing 2023-08-03 02.50.47.excalidraw.excalidraw.md",
|
||||
"Programmieren/Label Creator/Drawing 2023-08-03 02.50.47.excalidraw.md"
|
||||
],
|
||||
"allowOntologySuggester": true,
|
||||
"ontologySuggesterParentTrigger": "::p",
|
||||
"ontologySuggesterChildTrigger": "::c",
|
||||
"ontologySuggesterLeftFriendTrigger": "::l",
|
||||
"ontologySuggesterRightFriendTrigger": "::r",
|
||||
"ontologySuggesterPreviousTrigger": "::e",
|
||||
"ontologySuggesterNextTrigger": "::n",
|
||||
"ontologySuggesterTrigger": ":::",
|
||||
"ontologySuggesterMidSentenceTrigger": "(",
|
||||
"boldFields": false,
|
||||
"allowAutozoom": true,
|
||||
"maxZoom": 1,
|
||||
"allowAutofocuOnSearch": true,
|
||||
"defaultAlwaysOnTop": false,
|
||||
"embedCentralNode": false,
|
||||
"centerEmbedWidth": 550,
|
||||
"centerEmbedHeight": 700
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
"use strict";var e,t,i,n=require("obsidian");!function(e){e[e.DEFINED=1]="DEFINED",e[e.INFERRED=2]="INFERRED"}(e||(e={})),function(e){e[e.PARENT=0]="PARENT",e[e.CHILD=1]="CHILD",e[e.LEFT=2]="LEFT",e[e.RIGHT=3]="RIGHT"}(t||(t={})),function(e){e[e.TO=1]="TO",e[e.FROM=2]="FROM",e[e.BOTH=3]="BOTH"}(i||(i={}));const s=/(?:\[([^[\]]+)\]\()((?:(?:ftp|https?|sftp|shttp|tftp):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>"']|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))\)|\b()((?:(?:ftp|https?|sftp|shttp|tftp):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>"']|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))\b/gi;class r{constructor(e){this.plugin=e,this.fileToUrlMap=new Map,this.fileUrlInverseMap=new Map,this.hosts=[],this.initalized=!1,this.app=e.app}async init(){const e=Date.now(),t=this.app.vault.getMarkdownFiles();for(const e of t)await this.parseFileURLs(e);this.registerFileEvents(),this.initalized=!0,console.log(`ExcaliBrain indexed ${this.fileUrlInverseMap.size} URLs from ${this.hosts.length} unique hosts in ${this.fileToUrlMap.size} of ${t.length} markdown files in ${((Date.now()-e)/1e3).toFixed(1)} seconds`)}getOrigin(e,t){try{return new URL(e).origin}catch(i){return console.log(`ExcaliBrain URLParser: Invalid URL ${e} in file ${t.path}`),":Unknown Origin:"}}async parseFileURLs(e){var t,i,r,a;if(!(e&&e instanceof n.TFile))return;let u="";try{u=await this.app.vault.cachedRead(e)}catch(t){return void console.log(`ExcaliBrain URLParser: Failed to read file ${e.path}`,t)}const o=new Map;let l;for(;null!==(l=s.exec(u));){const n=null!==(i=null!==(t=l[1])&&void 0!==t?t:l[3])&&void 0!==i?i:"";let s=null!==(a=null!==(r=l[2])&&void 0!==r?r:l[4])&&void 0!==a?a:"";if(s.match(/^(?:ftp|https?|sftp|shttp|tftp):/)||(s="https://"+s),o.has(s)){if(""!==n){const e=o.get(s);""===e.alias&&o.set(s,Object.assign(Object.assign({},e),{alias:n}))}}else{const t=this.getOrigin(s,e);o.set(s,{url:s,alias:n,origin:t}),this.updateInverseMap(s,e,t)}}const D=Array.from(o.values());D.length>0&&this.fileToUrlMap.set(e,D)}updateInverseMap(e,t,i){this.fileUrlInverseMap.has(e)||this.fileUrlInverseMap.set(e,{files:[],origin:i});const n=this.fileUrlInverseMap.get(e);n&&(n.files.includes(t)||n.files.push(t),this.hosts.includes(n.origin)||this.hosts.push(n.origin))}registerFileEvents(){const e=e=>{t(e),this.parseFileURLs(e)},t=e=>{const t=this.fileToUrlMap.get(e);this.fileToUrlMap.delete(e),t&&t.forEach((t=>{const i=this.fileUrlInverseMap.get(t.url);if(i){if(i.files=i.files.filter((t=>t!==e)),0===i.files.length)return this.fileUrlInverseMap.delete(t.url),void(this.hosts=this.hosts.filter((e=>e!==i.origin)));this.fileUrlInverseMap.set(t.url,i)}}))};this.plugin.registerEvent(this.app.vault.on("create",e)),this.plugin.registerEvent(this.app.vault.on("modify",e)),this.plugin.registerEvent(this.app.vault.on("delete",t))}}const a=(e,t,i)=>{const n=e.metadataCache.getFirstLinkpathDest(t,i);return n?n.path:t},u=(e,t)=>{var i,n,r,u,o;const l=new Set,D=e.matchAll(/[^[]*\[\[(?<wikiLink>[^#\]\|]*)[^\]]*]]|\[[^\]]*]\((?<mdLink>[^)]*)\)/g);let d,h;for(;!(d=D.next()).done;){if(null===(n=null===(i=null==d?void 0:d.value)||void 0===i?void 0:i.groups)||void 0===n?void 0:n.wikiLink){const e=a(app,d.value.groups.wikiLink,t.path);e&&l.add(e)}if(null===(u=null===(r=null==d?void 0:d.value)||void 0===r?void 0:r.groups)||void 0===u?void 0:u.mdLink){const e=a(app,decodeURIComponent(d.value.groups.mdLink),t.path);e&&l.add(e)}}for(;null!==(h=s.exec(e));)l.add(null!==(o=h[2])&&void 0!==o?o:h[4]);return Array.from(l)},o=(e,t,i)=>{var n;const s=new Set;if(t.values){const r=Array.from(t.values());r.filter((e=>(null==e?void 0:e.type)&&("file"===e.type||"header"===e.type||"block"==e.type))).forEach((t=>{const n=a(e,t.path,i.path);n&&s.add(n)})),r.filter((e=>Boolean(null==e?void 0:e.values))).forEach((t=>{const n=Array.from(t.values());o(e,n,i).forEach((e=>s.add(e)))}));const l=u(r.filter((e=>"string"==typeof e)).join(" "),i),D=null===(n=r.filter((e=>(null==e?void 0:e.values)&&"object"==typeof e&&"string"==typeof e.values[0])))||void 0===n?void 0:n.map((t=>a(e,t.values[0],i.path)));
|
||||
//! currently there is an issue with case sensitivity. DataView retains case sensitivity of links for the front matter, but not the others
|
||||
return D||console.log({error:"objectLinks is undefined which is unexpected",errorLocation:"readDVField",field:t,file:i}),Array.from(s).concat(l).concat(null!=D?D:[])}if(t.path){const n=a(e,t.path,i.path);return n?[n]:[]}return"string"==typeof t?u(t,i):[]},l=(e,t,i)=>{const n=[],s=new Set;return i.forEach((i=>{const r=t[i];r&&!s.has(i)&&(s.add(i),o(e.app,r,t.file).forEach((e=>n.push({link:e,field:i}))))})),n},D=(e,t)=>{var i;const n=d(e,t);if(!n)return[null,null];if(e[t.primaryTagFieldLowerCase]){const s=null===(i=e[t.primaryTagFieldLowerCase].match(/#([^\s\])$"'\\]*)(?:$|\s)/g))||void 0===i?void 0:i.map((e=>e.trim())).filter((e=>t.tagStyleList.some((t=>e.startsWith(t))))),r=s&&s.length>0?s[0]:n[0];return[r,n.filter((e=>e!=r))]}return[n[0],n.slice(1)]},d=(e,t)=>{var i,n,s;return e?(null!==(s=null===(n=null===(i=e.file)||void 0===i?void 0:i.tags)||void 0===n?void 0:n.values)&&void 0!==s?s:[]).filter((e=>t.tagStyleList.some((t=>e.startsWith(t))))):null},h=(e,t)=>{const[i,n]=e;if(!i)return{};const s=t.tagNodeStyles[t.tagStyleList.filter((e=>i.startsWith(e)))[0]];if(s&&t.displayAllStylePrefixes){const e=Object.keys(t.tagNodeStyles).filter((e=>n.includes(e))),i=new Set;s.prefix&&i.add(s.prefix),null==e||e.map((e=>t.tagNodeStyles[e].prefix)).filter((e=>Boolean(e))).forEach((e=>i.add(e)));const r=Array.from(i).join("");return Object.assign(Object.assign({},s),{prefix:r})}return s},c=e=>{console.error(Object.assign({plugin:"ExcaliBrain"},e))};console.log.bind(window.console),console.log.bind(window.console);const g=e=>`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(e.replaceAll(" "," "))))}`,E=(e,t)=>{if(!e.DEVICE.isDesktop)return;let i=!0;if(!t){const n=e.targetView;if(!n)return;i=app.workspace.activeLeaf===n.leaf,t=n.ownerWindow}i&&(t.electronWindow.isAlwaysOnTop()||(t.electronWindow.setAlwaysOnTop(!0),setTimeout((()=>{t.electronWindow.setAlwaysOnTop(!1)}),500)))};function p(e){const t=e.lastIndexOf("/"),i=-1==t?e:e.substring(t+1);return{folderpath:n.normalizePath(e.substring(0,t)),filename:i,basename:i.replace(/\.[^/.]+$/,"")}}function f(e,t){return!!e&&["pdf","mp4","mp3","webm","md"].includes(e.extension)&&!t.isExcalidrawFile(e)}class F{constructor(e){this.pages=new Map,this.forEach=this.pages.forEach.bind(this.pages),this.app=e.app,this.plugin=e}add(e,t){this.pages.set(e,t)}has(e){return this.pages.has(e)}get(e){return this.pages.get(e)}getPages(){return Array.from(this.pages.values())}get size(){return this.pages.size}delete(e){const t=this.pages.get(e);t&&(t.neighbours.forEach(((t,i)=>{const n=this.pages.get(i);n&&(n.unlinkNeighbour(e),n.file||0!==n.neighbours.size||this.pages.delete(i))})),this.pages.delete(e))}addInferredParentChild(t,n){this.plugin.settings.inferAllLinksAsFriends?(n.addLeftFriend(t,e.INFERRED,i.TO),t.addLeftFriend(n,e.INFERRED,i.FROM)):this.plugin.settings.inverseInfer?(n.addChild(t,e.INFERRED,i.TO),t.addParent(n,e.INFERRED,i.FROM)):(n.addParent(t,e.INFERRED,i.TO),t.addChild(n,e.INFERRED,i.FROM))}addResolvedLinks(e){const t=this.app.metadataCache.resolvedLinks;Object.keys(t).forEach((i=>{if(e&&e.path!==i)return;const n=this.pages.get(i);Object.keys(t[i]).forEach((e=>{let t=this.pages.get(e);t||(t=this.pages.get(this.plugin.lowercasePathMap.get(e.toLowerCase()))),this.addInferredParentChild(n,t)}))}))}addPageURLs(){this.plugin.urlParser.fileToUrlMap.forEach(((t,n)=>{const s=this.get(n.path);s&&t.forEach((t=>{let n=this.get(t.url);n||(n=new A(this,t.url,null,this.plugin,!1,!1,t.alias,t.url),this.add(t.url,n)),""===t.alias||""!==n.name&&n.name!==t.url||(n.name=t.alias),this.addInferredParentChild(s,n);const r=this.get(t.origin);r&&(n.addParent(r,e.INFERRED,i.FROM),r.addChild(n,e.INFERRED,i.TO))}))}))}addUnresolvedLinks(e){if(e&&(e.isFolder||e.isTag))return;const t=this.app.metadataCache.unresolvedLinks;Object.keys(t).forEach((i=>{if(e&&e.path!==i)return;let n=this.pages.get(i);n&&i!==this.plugin.settings.excalibrainFilepath&&Object.keys(t[i]).forEach((e=>m(e,n,this.plugin,this)))}))}}const m=(t,n,s,r)=>{var a;const u=null!==(a=r.get(t))&&void 0!==a?a:new A(r,t,null,s);return s.settings.inferAllLinksAsFriends?(u.addLeftFriend(n,e.INFERRED,i.TO),n.addLeftFriend(u,e.INFERRED,i.FROM)):s.settings.inverseInfer?(u.addChild(n,e.INFERRED,i.TO),n.addParent(u,e.INFERRED,i.FROM)):(u.addParent(n,e.INFERRED,i.TO),n.addChild(u,e.INFERRED,i.FROM)),r.add(t,u),u},C={target:null,isParent:!1,isChild:!1,isLeftFriend:!1,isRightFriend:!1,isNextFriend:!1,isPreviousFriend:!1,direction:null},y=(e,t)=>e&&t?e+", "+t:e||t,S=(e,t)=>e?e===i.BOTH||e===t?e:i.BOTH:t,b=(t,i)=>t===e.DEFINED?e.DEFINED:t===e.INFERRED?i===e.DEFINED?e.DEFINED:e.INFERRED:i;class A{constructor(e,t,i,n,s=!1,r=!1,a,u=null){this.pages=e,this.path=t,this.file=i,this.plugin=n,this.isFolder=s,this.isTag=r,this.name=a,this.url=u,this.dvIndexReady=!1,a||(this.name=i?"md"===i.extension?i.basename:i.name:Boolean(u)?u:(e=>{const t=e.endsWith(".md"),i=e.substring(e.lastIndexOf("/")+1);return t?i.slice(0,-3):i})(t)),this.mtime=i?i.stat.mtime:nLine truncated
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"id": "excalibrain",
|
||||
"name": "ExcaliBrain",
|
||||
"version": "0.2.11",
|
||||
"minAppVersion": "1.1.6",
|
||||
"description": "A clean, intuitive and editable graph view for Obsidian",
|
||||
"author": "Zsolt Viczian",
|
||||
"authorUrl": "https://zsolt.blog",
|
||||
"isDesktopOnly": false
|
||||
}
|
||||
+349
@@ -0,0 +1,349 @@
|
||||
/* Sets all the text color to red! */
|
||||
.excalibrain-warning {
|
||||
background-color: var(--text-highlight-bg);
|
||||
color: var(--text-normal);
|
||||
}
|
||||
|
||||
.excalibrain-prompt-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.excalibrain-contentEl div.Island,
|
||||
.excalibrain-contentEl button.help-icon {
|
||||
display:none;
|
||||
}
|
||||
|
||||
.excalibrain-contentEl {
|
||||
overflow: hidden !important;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* -----------
|
||||
TOOLS PANEL
|
||||
------------ */
|
||||
.excalibrain-toolspanel-wrapper {
|
||||
z-index: 3;
|
||||
position: absolute;
|
||||
top: 0.6em;
|
||||
padding-left: 0.6em;
|
||||
/* Set width to auto to fit its content */
|
||||
width: 100%;
|
||||
padding-right: 0.6em;
|
||||
pointer-events: none;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.excalibrain-dropdown-wrapper,
|
||||
.excalibrain-buttons {
|
||||
pointer-events: none;
|
||||
margin-top: 0.3em;
|
||||
max-width: 37em;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.excalibrain-searchinput {
|
||||
width: 26em;
|
||||
vertical-align: middle;
|
||||
pointer-events: all;
|
||||
}
|
||||
|
||||
.excalibrain-buttons {
|
||||
margin-left: -0.3em;
|
||||
display: flex;
|
||||
float: right;
|
||||
flex: 1 0 30em;
|
||||
}
|
||||
|
||||
.excalibrain-toolspanel-divider {
|
||||
width: 0.15em;
|
||||
background-color: var(--default-border-color);
|
||||
margin-left: 0.5em;
|
||||
margin-right: 0.2em;
|
||||
}
|
||||
|
||||
.excalibrain-button {
|
||||
pointer-events: all;
|
||||
vertical-align: middle;
|
||||
padding-left: 0.3em;
|
||||
padding-right: 0.3em;
|
||||
margin-left: 0.3em !important;
|
||||
margin-right: 0px !important;
|
||||
width: 2.4em !important;
|
||||
justify-content: center !important;
|
||||
box-shadow: none;
|
||||
transition: box-shadow 0.3s ease;
|
||||
}
|
||||
|
||||
.excalibrain-button.off {
|
||||
background-color: var(--island-bg-color);
|
||||
}
|
||||
|
||||
.excalibrain-button.on {
|
||||
background-color: var(--color-primary-darker);
|
||||
}
|
||||
|
||||
.excalibrain-button:hover {
|
||||
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
.excalibrain-button:active {
|
||||
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
|
||||
}
|
||||
|
||||
.excalibrain-button.disabled {
|
||||
background-color: var(--island-bg-color);
|
||||
pointer-events: none;
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
/* -----------
|
||||
HISTORY
|
||||
------------ */
|
||||
|
||||
.excalibrain-history-wrapper {
|
||||
z-index: 3;
|
||||
position: absolute;
|
||||
bottom: 0px;
|
||||
padding-left: 7rem;
|
||||
padding-bottom: 10px;
|
||||
width: 100%;
|
||||
padding-right: 10px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.excalibrain-history-container {
|
||||
overflow-y: hidden;
|
||||
display: -webkit-box;
|
||||
overflow-x: scroll;
|
||||
padding-left: 0.5em;
|
||||
background-color: #00000030;
|
||||
}
|
||||
|
||||
.excalibrain-history-divider {
|
||||
color: gold;
|
||||
margin-left: 5px;
|
||||
margin-right: 5px;
|
||||
font-size: smaller;
|
||||
}
|
||||
|
||||
.excalibrain-history-item {
|
||||
cursor: pointer;
|
||||
color: silver;
|
||||
font-size: smaller;
|
||||
}
|
||||
|
||||
/* -----------
|
||||
SETTINGS
|
||||
------------ */
|
||||
.excalibrain-settings-folding-L1 {
|
||||
font-size: large;
|
||||
font-weight: bold;
|
||||
color: var(--text-title-h3);
|
||||
}
|
||||
|
||||
.excalibrain-settings-h1 {
|
||||
color: var(--text-title-h1);
|
||||
}
|
||||
|
||||
.excalibrain-setting-style-section {
|
||||
padding-left: 30px;
|
||||
border-left: 10px solid var(--background-modifier-border);
|
||||
}
|
||||
|
||||
.excalibrain-settings-demoimg {
|
||||
max-width: 400px;
|
||||
}
|
||||
|
||||
.excalibrain-setting-nameEl {
|
||||
min-width: 10em;
|
||||
max-width: 20em;
|
||||
}
|
||||
|
||||
.excalibrain-setting-descEl {
|
||||
min-width: 10em;
|
||||
max-width: 20em;
|
||||
}
|
||||
|
||||
.excalibrain-setting-controlEl {
|
||||
width: 90%;
|
||||
}
|
||||
|
||||
.excalibrain-settings-colorlabel {
|
||||
padding-right: 5px;
|
||||
min-width: 3em;
|
||||
}
|
||||
|
||||
.excalibrain-settings-colorpicker {
|
||||
max-width: 32px;
|
||||
min-width: 32px;
|
||||
width: 32px !important;
|
||||
}
|
||||
|
||||
.excalibrain-settings-opacitylabel {
|
||||
padding-right: 5px;
|
||||
padding-left: 10px;
|
||||
min-width: 5em;
|
||||
}
|
||||
|
||||
.excalibrain-settings-sliderlabel {
|
||||
min-width: 2em;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.excalibrain-settings-toggle {
|
||||
min-width: 2em;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.excalibrain-dropdown-wrapper {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
/* -----------
|
||||
MULTISELECT
|
||||
------------ */
|
||||
.multiselect-container {
|
||||
padding-left: 0.3em;
|
||||
width:14.2em;
|
||||
pointer-events: all;
|
||||
}
|
||||
|
||||
.multiselect-container * {
|
||||
box-sizing:border-box;
|
||||
}
|
||||
|
||||
.multiselect-container .multiselect-header {
|
||||
width:100%;
|
||||
margin-bottom:6px;
|
||||
}
|
||||
|
||||
.multiselect-container .multiselect-wrapper {
|
||||
position:relative;
|
||||
width:100%;
|
||||
height:30px;
|
||||
background: var(--island-bg-color); /*var(--background-modifier-form-field);*/
|
||||
border:1px solid var(--background-modifier-border);
|
||||
display:flex;
|
||||
align-items:center;
|
||||
padding:0 8px;
|
||||
cursor:pointer
|
||||
}
|
||||
|
||||
.multiselect-container .multiselect-wrapper:after {
|
||||
content:"";
|
||||
position:absolute;
|
||||
width:8px;
|
||||
height:8px;
|
||||
right:12px;
|
||||
top:8px;
|
||||
border-right:2px solid var(--text-normal);
|
||||
border-top:2px solid var(--text-normal);
|
||||
transform:rotate(135deg);
|
||||
transform-origin:center center;
|
||||
transition:all .2s ease-in-out;
|
||||
}
|
||||
|
||||
.multiselect-container .multiselect-wrapper .selected-value {
|
||||
padding-right:30px;
|
||||
text-overflow:ellipsis;
|
||||
overflow:hidden;
|
||||
white-space:nowrap;
|
||||
}
|
||||
|
||||
.multiselect-container .multiselect-wrapper .options-wrapper {
|
||||
position:absolute;
|
||||
top:100%;
|
||||
left:0;
|
||||
width:100%;
|
||||
max-height:300px;
|
||||
overflow:auto;
|
||||
background-color:var(--background-secondary);
|
||||
border:1px solid var(--background-modifier-border);
|
||||
display:none;
|
||||
flex-direction:column;
|
||||
}
|
||||
|
||||
.multiselect-container .multiselect-wrapper .option:hover {
|
||||
cursor:pointer;
|
||||
background-color:rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
.multiselect-container .multiselect-wrapper .option-text {
|
||||
display:none;
|
||||
padding:6px 12px;
|
||||
}
|
||||
|
||||
.multiselect-container .multiselect-wrapper .checkbox-wrapper {
|
||||
display:flex;
|
||||
align-items:center;min-height:19px;
|
||||
position:relative;
|
||||
padding:6px 12px 6px 36px;
|
||||
cursor:pointer;
|
||||
-webkit-user-select:none;
|
||||
-moz-user-select:none;
|
||||
-ms-user-select:none;
|
||||
user-select:none;
|
||||
}
|
||||
|
||||
.multiselect-container .multiselect-wrapper .checkbox-wrapper .checkbox-checkmark {
|
||||
position:absolute;
|
||||
top:6px;
|
||||
left:6px;
|
||||
height:19px;
|
||||
width:19px;
|
||||
background-color:#eee;
|
||||
border-radius:4px;
|
||||
border:1px solid #000;
|
||||
}
|
||||
|
||||
.multiselect-container .multiselect-wrapper .checkbox-wrapper .checkbox-checkmark:after {
|
||||
content:'';
|
||||
position:absolute;display:none;
|
||||
left:6px;
|
||||
top:2px;
|
||||
width:4px;
|
||||
height:8px;
|
||||
border:solid white;
|
||||
border-width:0 2px 2px 0;
|
||||
transform:rotate(45deg);
|
||||
}
|
||||
|
||||
.multiselect-container .multiselect-wrapper .checkbox-wrapper input {
|
||||
position:absolute;
|
||||
opacity:0;
|
||||
cursor:pointer;
|
||||
height:0;
|
||||
width:0;
|
||||
}
|
||||
|
||||
.multiselect-container .multiselect-wrapper .checkbox-wrapper input:checked ~ .checkbox-checkmark {
|
||||
background-color:#2196F3;
|
||||
}
|
||||
|
||||
.multiselect-container .multiselect-wrapper .checkbox-wrapper input:checked ~ .checkbox-checkmark:after {
|
||||
display:block;
|
||||
}
|
||||
|
||||
.multiselect-container .multiselect-wrapper.single-select .checkbox-wrapper {
|
||||
display:none;
|
||||
}
|
||||
|
||||
.multiselect-container .multiselect-wrapper.single-select .option-text {
|
||||
display:block;
|
||||
}
|
||||
|
||||
.multiselect-container .multiselect-wrapper.single-select .option-text.selected {
|
||||
background-color:#2196F3;
|
||||
}
|
||||
|
||||
.multiselect-container .multiselect-wrapper.opened:after {
|
||||
top:12px;
|
||||
transform:rotate(315deg);
|
||||
}
|
||||
|
||||
.multiselect-container .multiselect-wrapper.opened .options-wrapper {
|
||||
display:flex;
|
||||
}
|
||||
Reference in new issue
Block a user