summaryrefslogtreecommitdiff
path: root/tools/gencss.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-10-22 12:53:57 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-19 00:05:34 +0100
commit719d61982953caf61c0df7776347e13105a2e8b2 (patch)
tree4e11a9d0c502264f4169de97914fca6ccaf9ef22 /tools/gencss.js
parent8d8d6db547653dff6ffb34fdf9336317da50121e (diff)
downloadnevsky-719d61982953caf61c0df7776347e13105a2e8b2.tar.gz
Add asset rendering scripts.
Diffstat (limited to 'tools/gencss.js')
-rw-r--r--tools/gencss.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/gencss.js b/tools/gencss.js
new file mode 100644
index 0000000..4edc4be
--- /dev/null
+++ b/tools/gencss.js
@@ -0,0 +1,5 @@
+const h = 42
+for (let i = 0; i < 15; ++i)
+ console.log(`.service_marker.image${i}{background-position:0 -${i*h}px}`)
+for (let i = 0; i < 15; ++i)
+ console.log(`.service_marker.image${i}:hover{background-position:100% -${i*h}px}`)