fixed ol-numbering (nested style)

This commit is contained in:
Manuel Friedli 2014-03-05 23:09:50 +01:00
parent 5586771b0e
commit ec255aec1c
1 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,14 @@
code {
white-space: pre;
}
ol {
counter-reset: item;
padding-left: 1em;
}
ol li {
display: block;
}
ol li:before {
content: counters(item, ".") ". ";
counter-increment: item;
}