From 7243089f3fe33cd6ff4f656729087209e7749043 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 16 Jul 2017 12:28:30 +0200 Subject: Style orered lists. --- style.scss | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/style.scss b/style.scss index acbad30..361f87f 100644 --- a/style.scss +++ b/style.scss @@ -115,6 +115,22 @@ a { @include hover-link; } +// Ordered lists +// +// Single count across main content +#content { + counter-reset: unified; + ol li { + list-style-type: none; + &:before { + float: left; + margin-left: -2em; + counter-increment: unified; + content: counters(unified, ".") " "; + } + } +} + // Definition lists // // Full-width horizontal items with definitions right-aligned -- cgit v1.2.3