mirror of
https://gitlab.com/brutaldon/brutaldon.git
synced 2024-12-04 14:46:24 -05:00
Fix formatting of replies
This commit is contained in:
parent
7e449992f4
commit
9ee6e3f5f7
@ -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;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
{% load humanize %}
|
{% load humanize %}
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
Brutaldon - thread
|
Brutaldon - thread
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% comment %}
|
{% comment %}
|
||||||
@ -12,26 +12,20 @@ mastodon.status_context(<numerical id>)
|
|||||||
'ancestors': # A list of toot dicts
|
'ancestors': # A list of toot dicts
|
||||||
'descendants': # A list of toot dicts
|
'descendants': # A list of toot dicts
|
||||||
}
|
}
|
||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
|
|
||||||
{% 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 %}
|
<hr class="is-hidden">
|
||||||
</div>
|
|
||||||
<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 %}
|
<hr class="is-hidden">
|
||||||
</div>
|
|
||||||
<hr class="is-hidden">
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -3,7 +3,12 @@
|
|||||||
{% load taglinks %}
|
{% load taglinks %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
|
|
||||||
<article class="media">
|
{% if active %}
|
||||||
|
<article class="media active-context">
|
||||||
|
{% else %}
|
||||||
|
<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 %}">
|
||||||
|
Loading…
Reference in New Issue
Block a user