Created
September 18, 2022 20:08
-
-
Save eyssette/d38d373f933a43678aa22d729edbcba6 to your computer and use it in GitHub Desktop.
Custom CSS for ol lists
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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