made new css var for the article width

This commit is contained in:
Niels van Brakel
2021-12-16 15:26:19 +01:00
parent 0a4d7c8e14
commit 54c9fef509
4 changed files with 7 additions and 2 deletions

View File

@ -126,7 +126,7 @@
})
}, false);
const main = parseInt(getComputedStyle(document.body).getPropertyValue('--main-width'), 10);
const main = parseInt(getComputedStyle(document.body).getPropertyValue('--article-width'), 10);
const toc = parseInt(getComputedStyle(document.body).getPropertyValue('--toc-width'), 10);
const gap = parseInt(getComputedStyle(document.body).getPropertyValue('--gap'), 10);