From d07453a02ffc51a27b4ee6c455c25a748b685fd9 Mon Sep 17 00:00:00 2001 From: Gigi Date: Tue, 3 May 2022 22:42:53 +0200 Subject: [PATCH] feat: start lists with zero --- css/21.css | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/css/21.css b/css/21.css index ff85f95..2e3809e 100644 --- a/css/21.css +++ b/css/21.css @@ -71,6 +71,17 @@ p>code { margin-bottom: 2rem; } +.content ol { + counter-reset: num -1; +} +.content ol li { + list-style-type: none; +} +.content ol li:before { + counter-increment: num; + content: counter(num) ". "; +} + .content li { margin-bottom: 0.5rem; }