From e8a5f5410a0e876d889a2a8137c34bb925f65408 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 8 Apr 2022 01:29:54 +0200 Subject: Assets. --- tools/gencss.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tools/gencss.js (limited to 'tools/gencss.js') diff --git a/tools/gencss.js b/tools/gencss.js new file mode 100644 index 0000000..4981d7c --- /dev/null +++ b/tools/gencss.js @@ -0,0 +1,7 @@ +// let n = 51, u = 'px'; +let n = 100 / 9, u = '%'; +for (let i = 0; i < 94; ++i) { + let x = (i % 10) | 0; + let y = (i / 10) | 0; + console.log(`.unit.u${i}{background-position:${x*n}${u} ${y*n}${u}}`); +} -- cgit v1.2.3