diff --git a/bookwyrm/static/css/bookwyrm.css b/bookwyrm/static/css/bookwyrm.css index 9e74d69f..0d9cbe3a 100644 --- a/bookwyrm/static/css/bookwyrm.css +++ b/bookwyrm/static/css/bookwyrm.css @@ -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; +} diff --git a/bookwyrm/templates/lists/list.html b/bookwyrm/templates/lists/list.html index e61caf9c..cfecfd4b 100644 --- a/bookwyrm/templates/lists/list.html +++ b/bookwyrm/templates/lists/list.html @@ -26,7 +26,7 @@ {% if not items.object_list.exists %}
{% trans "This list is currently empty" %}
{% else %} -