diff --git a/bookwyrm/settings.py b/bookwyrm/settings.py index 895a537a4..39469a7ae 100644 --- a/bookwyrm/settings.py +++ b/bookwyrm/settings.py @@ -13,7 +13,7 @@ VERSION = "0.0.1" PAGE_LENGTH = env("PAGE_LENGTH", 15) DEFAULT_LANGUAGE = env("DEFAULT_LANGUAGE", "English") -JS_CACHE = "e2bc0653" +JS_CACHE = "c02929b1" # email EMAIL_BACKEND = env("EMAIL_BACKEND", "django.core.mail.backends.smtp.EmailBackend") diff --git a/bookwyrm/static/css/bookwyrm.css b/bookwyrm/static/css/bookwyrm.css index e1012c2fd..ac3e66e01 100644 --- a/bookwyrm/static/css/bookwyrm.css +++ b/bookwyrm/static/css/bookwyrm.css @@ -492,6 +492,21 @@ ol.ordered-list li::before { } } +/* Threads + ******************************************************************************/ +.thread .is-main .card { + box-shadow: 0 0.5em 1em -0.125em rgb(50 115 220 / 35%), 0 0 0 1px rgb(50 115 220 / 2%); +} +.thread:after { + content:""; + position: absolute; + z-index: -1; + top: 0; + bottom: 0; + left: 2.5em; + border-left: 2px solid #e0e0e0; +} + /* Dimensions * @todo These could be in rem. ******************************************************************************/ diff --git a/bookwyrm/templates/feed/thread.html b/bookwyrm/templates/feed/thread.html index b3b2f2dbc..c1b624e3c 100644 --- a/bookwyrm/templates/feed/thread.html +++ b/bookwyrm/templates/feed/thread.html @@ -1,5 +1,7 @@ {% load status_display %} +
+
{% with depth=depth|add:1 %} {% if depth <= max_depth and status.reply_parent and direction <= 0 %} {% with direction=-1 %} @@ -7,7 +9,7 @@ {% endwith %} {% endif %} - + {% include 'snippets/status/status.html' with status=status main=is_root %}
@@ -19,3 +21,5 @@ {% endfor %} {% endif %} {% endwith %} +
+