Fix formatting of replies

This commit is contained in:
Jason McBrayer 2018-05-23 10:05:13 -04:00
parent 7e449992f4
commit 9ee6e3f5f7
3 changed files with 19 additions and 19 deletions

View File

@ -10,9 +10,6 @@ img.fav-avatar {
} }
.box.active_context {
background-color: #FFF8DC;
}
div.card-header-title, div.card-header-icon { div.card-header-title, div.card-header-icon {
color: black; color: black;
@ -37,6 +34,10 @@ figure.media-left p.image a img
border-radius: 5px; border-radius: 5px;
} }
.active-context {
background-color: #FFF8DC;
}
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
.media { .media {
display: block; display: block;

View File

@ -17,19 +17,13 @@ mastodon.status_context(<numerical id>)
{% block content %} {% block content %}
<h1 class="title">Thread</h1> <h1 class="title">Thread</h1>
{% for ancestor in context.ancestors %} {% for ancestor in context.ancestors %}
<div class="box">
{% include "main/toot_partial.html" with toot=ancestor %} {% include "main/toot_partial.html" with toot=ancestor %}
</div>
<hr class="is-hidden"> <hr class="is-hidden">
{% endfor %} {% endfor %}
<div class="box active_context"> {% include "main/toot_partial.html" with toot=toot active=True %}
{% include "main/toot_partial.html" with toot=toot %}
</div>
<hr class="is-hidden"> <hr class="is-hidden">
{% for descendant in context.descendants %} {% for descendant in context.descendants %}
<div class="box">
{% include "main/toot_partial.html" with toot=descendant %} {% include "main/toot_partial.html" with toot=descendant %}
</div>
<hr class="is-hidden"> <hr class="is-hidden">
{% endfor %} {% endfor %}

View File

@ -3,7 +3,12 @@
{% load taglinks %} {% load taglinks %}
{% load static %} {% load static %}
{% if active %}
<article class="media active-context">
{% else %}
<article class="media"> <article class="media">
{% endif %}
<figure class="media-left"> <figure class="media-left">
<p class="image is-64x64"> <p class="image is-64x64">
<a href="{% url "user" toot.account.acct %}"> <a href="{% url "user" toot.account.acct %}">