From daa7746f47be7244379c3a731bfbddcaf3016639 Mon Sep 17 00:00:00 2001 From: Joachim Date: Thu, 29 Apr 2021 21:40:54 +0200 Subject: [PATCH 001/196] Stretch List card in list of lists --- bookwyrm/templates/lists/list_items.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/templates/lists/list_items.html b/bookwyrm/templates/lists/list_items.html index 3e3e8bf49..e1b9cd7a5 100644 --- a/bookwyrm/templates/lists/list_items.html +++ b/bookwyrm/templates/lists/list_items.html @@ -2,7 +2,7 @@
{% for list in lists %}
-
+

{{ list.name }} {% include 'snippets/privacy-icons.html' with item=list %} From b59b3e294f28a7e36848af99051a619d69a31555 Mon Sep 17 00:00:00 2001 From: Joachim Date: Thu, 29 Apr 2021 21:41:31 +0200 Subject: [PATCH 002/196] Arrange Sort List form fields --- bookwyrm/templates/lists/list.html | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/bookwyrm/templates/lists/list.html b/bookwyrm/templates/lists/list.html index 641038d0a..e61caf9c3 100644 --- a/bookwyrm/templates/lists/list.html +++ b/bookwyrm/templates/lists/list.html @@ -79,15 +79,19 @@

{% trans "Sort List" %}

- -
- {{ sort_form.sort_by }} +
+ +
+ {{ sort_form.sort_by }} +
- -
- {{ sort_form.direction }} +
+ +
+ {{ sort_form.direction }} +
-
+
From 0a71fb094fb8fbf994103f800ee84b4cd3b8bda3 Mon Sep 17 00:00:00 2001 From: Joachim Date: Thu, 29 Apr 2021 21:41:43 +0200 Subject: [PATCH 003/196] Move counter in Ordered List --- bookwyrm/static/css/bookwyrm.css | 34 ++++++++++++++++++++++++++++++ bookwyrm/templates/lists/list.html | 8 ++++--- 2 files changed, 39 insertions(+), 3 deletions(-) diff --git a/bookwyrm/static/css/bookwyrm.css b/bookwyrm/static/css/bookwyrm.css index 9e74d69f1..0d9cbe3a4 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 e61caf9c3..cfecfd4b0 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 %} -
    +
      {% for item in items %}
    1. @@ -40,7 +40,7 @@ {% include 'snippets/shelve_button/shelve_button.html' with book=item.book %}
-
-

{% trans "Sort List" %}

+

+ {% trans "Sort List" %} +

@@ -119,7 +121,13 @@
{% if request.user.is_authenticated and not list.curation == 'closed' or request.user == list.user %} -

{% if list.curation == 'open' or request.user == list.user %}{% trans "Add Books" %}{% else %}{% trans "Suggest Books" %}{% endif %}

+

+ {% if list.curation == 'open' or request.user == list.user %} + {% trans "Add Books" %} + {% else %} + {% trans "Suggest Books" %} + {% endif %} +

From 1aa319d6eeec6d49cb373b2754fa28a0c2b055d7 Mon Sep 17 00:00:00 2001 From: Joachim Date: Sun, 23 May 2021 17:17:46 +0200 Subject: [PATCH 034/196] Move description text below header --- bookwyrm/templates/lists/list_layout.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bookwyrm/templates/lists/list_layout.html b/bookwyrm/templates/lists/list_layout.html index 993587ca2..1bbc98b47 100644 --- a/bookwyrm/templates/lists/list_layout.html +++ b/bookwyrm/templates/lists/list_layout.html @@ -10,7 +10,6 @@

{% include 'lists/created_text.html' with list=list %}

- {% include 'snippets/trimmed_text.html' with full=list.description %}
{% if request.user == list.user %}
@@ -20,6 +19,10 @@ {% endif %}

+
+ {% include 'snippets/trimmed_text.html' with full=list.description %} +
+
{% include 'lists/edit_form.html' with controls_text="edit-list" %}
From 354b5110893177f69476e9290885aa4bc46e9f1c Mon Sep 17 00:00:00 2001 From: Joachim Date: Sun, 23 May 2021 17:18:16 +0200 Subject: [PATCH 035/196] Fix flex styles --- bookwyrm/templates/lists/list.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/bookwyrm/templates/lists/list.html b/bookwyrm/templates/lists/list.html index 84c6edb0c..4dc9660a3 100644 --- a/bookwyrm/templates/lists/list.html +++ b/bookwyrm/templates/lists/list.html @@ -35,16 +35,17 @@
-
+ -
+

{% include 'snippets/book_titleby.html' %}

@@ -59,7 +60,7 @@
{% endwith %} -