about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2021-12-14 18:32:25 +0100
committerbptato <nincsnevem662@gmail.com>2021-12-14 18:32:25 +0100
commitfbcfc918c5795d0c2689876fc730032a600e2910 (patch)
treee801839e89cf30178a2a646d1a6ba534db507c28
parent07e4ac7ad5e98ed3d2b04de835cffd243e609488 (diff)
downloadchawan-fbcfc918c5795d0c2689876fc730032a600e2910.tar.gz
Unicode unordered list markers
-rw-r--r--res/ua.css4
-rw-r--r--src/css/values.nim6
2 files changed, 5 insertions, 5 deletions
diff --git a/res/ua.css b/res/ua.css
index c44d783d..08107420 100644
--- a/res/ua.css
+++ b/res/ua.css
@@ -16,8 +16,8 @@ textarea, tt, var, font, iframe, u, s, strike, frame, input, img {
 	display: inline-block;
 }
 
-ol, ul {
-	margin-left: 3ch;
+ol, ul, menu, dir {
+	margin-left: 2ch;
 }
 
 table {
diff --git a/src/css/values.nim b/src/css/values.nim
index b55869f7..c7f7a5b7 100644
--- a/src/css/values.nim
+++ b/src/css/values.nim
@@ -131,9 +131,9 @@ func cells*(l: CSSLength): int =
 func listMarker*(t: CSSListStyleType, i: int): string =
   case t
   of LIST_STYLE_TYPE_NONE: return ""
-  of LIST_STYLE_TYPE_DISC: return "* "
-  of LIST_STYLE_TYPE_CIRCLE: return "o "
-  of LIST_STYLE_TYPE_SQUARE: return "O "
+  of LIST_STYLE_TYPE_DISC: return "• "
+  of LIST_STYLE_TYPE_CIRCLE: return "○ "
+  of LIST_STYLE_TYPE_SQUARE: return "□ "
   of LIST_STYLE_TYPE_DECIMAL: return $i & ". "
   of LIST_STYLE_TYPE_JAPANESE_INFORMAL: return japaneseNumber(i) & "、"