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;
|
||||
const highlightNodes = new Set();
|
||||
let hoverNode = null;
|
||||
const color = getCssVar("--text-accent");
|
||||
const mutedColor = getCssVar("--text-muted");
|
||||
const color = getCssVar("--graph-main");
|
||||
const mutedColor = getCssVar("--graph-muted");
|
||||
|
||||
let Graph = ForceGraph()
|
||||
(el)
|
||||
|
@ -9,6 +9,8 @@ body {
|
||||
--note-icon-2: url(/img/tree-2.svg);
|
||||
--note-icon-3: url(/img/tree-3.svg);
|
||||
--note-icon-fallback: url(/img/default-note-icon.svg);
|
||||
--graph-main: var(--text-accent);
|
||||
--graph-muted: var(--text-muted);
|
||||
}
|
||||
|
||||
.content {
|
||||
|
Loading…
x
Reference in New Issue
Block a user