Skip to content

Instantly share code, notes, and snippets.

@eyssette
Created September 18, 2022 20:08
Show Gist options
  • Save eyssette/d38d373f933a43678aa22d729edbcba6 to your computer and use it in GitHub Desktop.
Save eyssette/d38d373f933a43678aa22d729edbcba6 to your computer and use it in GitHub Desktop.
Custom CSS for ol lists
ol {list-style-type:none; font-weight:bold; counter-reset: item;}
ol ol {list-style-type:none;font-weight:normal; font-style:italic}
ol ol ol {list-style-type:none; font-weight:normal; font-style:normal}
ol ol ol ol {list-style-type:none; font-size:0.9em}
ol li:before{content: counter(item, upper-roman) " – "; counter-increment: item;}
ol ol li:before{content: counter(item, upper-alpha) ". ";}
ol ol ol li:before{content: counter(item, decimal) ") ";}
ol ol ol ol li:before{content: counter(item, lower-alpha) "/ ";}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment