Для построения вложенного нумерованного списка можно использовать следующий css:
ol {
counter-reset: nested-list 0;
padding: 0 0 0 40px;
ul {
counter-reset: nested-list 0;
}
li {
counter-increment: nested-list;
}
ol {
list-style: none;
}
ol > li {
position: relative;
}
ol > li:before {
position: absolute;
left: -40px;
width: 32px;
content: counters(nested-list, '.') '.';
text-align: right;
}
}