💄 Update Chart.js and Mermaid to use RGB css vars

pull/100/head
James Panther 2022-01-13 16:22:25 +11:00
parent 9cfdc65eaa
commit 049edc6e40
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
function css(name) { function css(name) {
return getComputedStyle(document.documentElement).getPropertyValue(name); return "rgb(" + getComputedStyle(document.documentElement).getPropertyValue(name) + ")";
} }
Chart.defaults.font.size = 14; Chart.defaults.font.size = 14;

View File

@ -1,5 +1,5 @@
function css(name) { function css(name) {
return getComputedStyle(document.documentElement).getPropertyValue(name); return "rgb(" + getComputedStyle(document.documentElement).getPropertyValue(name) + ")";
} }
mermaid.initialize({ mermaid.initialize({