mirror of
http://git.carcosa.net/jmcbray/brutaldon.git
synced 2024-11-23 07:13:52 -05:00
Really fix card image formatting.
This commit is contained in:
parent
7364ff6baf
commit
d1873e3bd8
@ -208,15 +208,18 @@ input#id_poll_frequency
|
||||
.card
|
||||
{
|
||||
margin-top: 1em;
|
||||
margin: 0, auto;
|
||||
}
|
||||
|
||||
.card-image
|
||||
{
|
||||
padding: 1em;
|
||||
margin 0, auto;
|
||||
}
|
||||
|
||||
.card-image figure
|
||||
{
|
||||
padding-top: 25%;
|
||||
padding: 0;
|
||||
max-height: 256px;
|
||||
max-width: 256px;
|
||||
|
||||
}
|
||||
|
@ -191,6 +191,7 @@ body.has-navbar-fixed-top, html.has-navbar-fixed-top {
|
||||
.card
|
||||
{
|
||||
margin-top: 1em;
|
||||
margin: 0, auto;
|
||||
}
|
||||
|
||||
.card-image
|
||||
@ -200,6 +201,8 @@ body.has-navbar-fixed-top, html.has-navbar-fixed-top {
|
||||
|
||||
.card-image figure
|
||||
{
|
||||
padding-top: 25%;
|
||||
padding: 0;
|
||||
max-height: 256px;
|
||||
max-width: 256px;
|
||||
|
||||
}
|
||||
|
@ -61,16 +61,18 @@
|
||||
</div>
|
||||
{% if toot.card.image %}
|
||||
<div class="card-image">
|
||||
<figure class="image is-max-256">
|
||||
<figure>
|
||||
<a href="{{ toot.card.url }}">
|
||||
<img alt="{{ toot.card.title }}" src="{{ toot.card.image }}">
|
||||
<img class="image is-max-256" alt="{{ toot.card.title }}" src="{{ toot.card.image }}">
|
||||
</a>
|
||||
</figure>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if toot.card.description %}
|
||||
<div class="card-content">
|
||||
<p>{{ toot.card.description }}</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user