Created
September 11, 2018 00:36
-
-
Save bjeanes/0c099c066ca54996956737fcc3de02ce to your computer and use it in GitHub Desktop.
Format legal text
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
.legal ol { | |
counter-reset: section; | |
list-style-type: none; | |
padding: 0; | |
margin: 1em 0 1em 3em; | |
} | |
.legal ol ~ ol { | |
counter-reset: none; | |
} | |
.legal ol li { counter-increment: section; } | |
.legal ol li:before { | |
position: absolute; | |
content: counters(section, "."); | |
min-width: 3em; | |
margin-left: -3em; | |
display: inline; | |
} | |
.legal ol ol { margin-left: 0; } | |
.legal ol ol ol { margin-left: 3em; } | |
.legal ol ol ol li:before { | |
content: "(" counter(section, lower-alpha) ")"; | |
} | |
.legal ol ol ol ol li:before { | |
content: counter(section, lower-roman); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment