Move counter in Ordered List

This commit is contained in:
Joachim
2021-04-29 21:41:43 +02:00
parent b59b3e294f
commit 0a71fb094f
2 changed files with 39 additions and 3 deletions

View File

@ -346,3 +346,37 @@ body {
display: none;
}
}
/* Book list
******************************************************************************/
ol.ordered-list {
list-style: none;
counter-reset: books;
}
ol.ordered-list li {
counter-increment: books
}
ol.ordered-list li::before {
content: counter(books);
position: absolute;
left: -20px;
width: 20px;
height: 24px;
border: 1px solid #dbdbdb;
border-right: 0;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
display: flex;
align-items: center;
justify-content: center;
align-items: center;
color: #888;
font-size: 0.8em;
font-weight: bold;
}