From 9123638181396d9283fafdb9d82b8a4b41fa040b Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Sat, 18 May 2024 08:19:25 +0200 Subject: [PATCH] style: show line connecting avatars in a tread --- templates/threads.html | 35 ++++++++++++++++++++++------------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/templates/threads.html b/templates/threads.html index 13c0bdb..14aaafd 100644 --- a/templates/threads.html +++ b/templates/threads.html @@ -40,19 +40,33 @@ } main.home { - & .back { + & .back, & .hashtag { display: none } } + main.thread { + & li:not(:last-of-type) .card_avatar::after { + content: " "; + display: block; + height: 100%; + border-right: 2px solid rgba(197, 209, 222, 0.15); + width: 26px; + margin-top: -8px; + } + } + + .card_avatar img { + border: 2px solid rgba(197, 209, 222, 0.15); + border-radius: 50%; + display: inline; + width: 50px; + } + ul { list-style: none; } - .card.descendant { - /* TODO: damn, fix the markup maybe */ - margin-left: calc(-80px - 1em - 5px); - } .card { margin-left: -40px; display: grid; @@ -182,11 +196,6 @@ } } - .card_avatar img { - border-radius: 50%; - display: inline; - width: 50px; - } @media (prefers-color-scheme: dark) { html, body { @@ -310,7 +319,7 @@ {% if thread.descendants is defined %} - + {% endfor %} {% else %} Read full thread + {% endif %}