about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-12-17 18:44:05 +0100
committerbptato <nincsnevem662@gmail.com>2024-12-17 18:44:05 +0100
commit7564932991ffbb01fad4e37c0a2c090cac29cf9b (patch)
treecc5fdb01f83842d4a1d7a2717e84f0365838455e
parent340042ea464c7b9e0eec6ff7ffb7839eb927ad62 (diff)
downloadchawan-7564932991ffbb01fad4e37c0a2c090cac29cf9b.tar.gz
ua.css: add margins to list items with high indices
This is roughly what w3m does.
Gecko instead adds enough space for roughly 4 digits and cuts off
afterwards, but I believe this is a better solution.
-rw-r--r--res/ua.css3
1 files changed, 3 insertions, 0 deletions
diff --git a/res/ua.css b/res/ua.css
index 61dbc9ff..56d67e45 100644
--- a/res/ua.css
+++ b/res/ua.css
@@ -24,6 +24,9 @@ pre code { text-decoration: none }
 textarea, iframe, frame, input, img, canvas { display: inline-block }
 
 ol, ul, menu, dir { padding-left: 4ch; margin: 1em 0 }
+ol > li:nth-child(n+100) { margin-left: 1ch }
+ol > li:nth-child(n+1000) { margin-left: 2ch }
+ol > li:nth-child(n+10000) { margin-left: 3ch }
 
 :is(ol, ul, menu, dir) :is(ol, ul, menu, dir) {
 	margin-top: unset;