I am trying to do an ordered list (Terms and condition content) with a numeric value at the root, lower alpha for the second, and roman on the third. I found a SO guide here, but it requires adding a class on the second layer. Unfortunately the content will be added via a WYSIWYG editor by staff so adding extra classes manually is not possible(?).
The code below output a standard counter. The outcome will be 2.1
being replaced with a
and 2.1.1
will be replaced with i
.
Sample list. *Can't embed the whole image :(
Any advice is appreciated.
.numbered_list{
counter-reset: list-number;
ol {
padding-left: 40px;
list-style-type:none;
counter-reset:count;
li{
color: red;
counter-increment:count;
&::marker{
content: counters(count, '.', decimal) ') ';
}
&:before{
}
}
}
}