mirror of
https://github.com/tcsenpai/obsidiangarden_netlify.git
synced 2025-06-06 04:35:20 +00:00
CSS vars to control graph colors (#77)
* css vars to control graph colors * moved variable positions
This commit is contained in:
parent
27d71e8ca7
commit
11b837c01a
@ -56,8 +56,8 @@
|
|||||||
height = el.offsetHeight;
|
height = el.offsetHeight;
|
||||||
const highlightNodes = new Set();
|
const highlightNodes = new Set();
|
||||||
let hoverNode = null;
|
let hoverNode = null;
|
||||||
const color = getCssVar("--text-accent");
|
const color = getCssVar("--graph-main");
|
||||||
const mutedColor = getCssVar("--text-muted");
|
const mutedColor = getCssVar("--graph-muted");
|
||||||
|
|
||||||
let Graph = ForceGraph()
|
let Graph = ForceGraph()
|
||||||
(el)
|
(el)
|
||||||
|
@ -9,6 +9,8 @@ body {
|
|||||||
--note-icon-2: url(/img/tree-2.svg);
|
--note-icon-2: url(/img/tree-2.svg);
|
||||||
--note-icon-3: url(/img/tree-3.svg);
|
--note-icon-3: url(/img/tree-3.svg);
|
||||||
--note-icon-fallback: url(/img/default-note-icon.svg);
|
--note-icon-fallback: url(/img/default-note-icon.svg);
|
||||||
|
--graph-main: var(--text-accent);
|
||||||
|
--graph-muted: var(--text-muted);
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user