Aligning text articles list to end.

This commit is contained in:
Sergiotarxz 2023-05-07 16:46:51 +02:00
parent 67ec2d5432
commit ff572e844b
3 changed files with 9 additions and 3 deletions

View File

@ -107,7 +107,10 @@ body {
height: 12em; }
body div.page-contents div.description div.articles a article div.article-down-part {
margin-top: 2em;
height: 9em; }
height: 9em;
display: flex;
align-items: end;
padding-bottom: 2em; }
body div.page-contents div.description div.articles a article:hover {
background: blueviolet;
color: #f2eb8c; }

View File

@ -152,6 +152,9 @@ body {
div.article-down-part {
margin-top: 2em;
height: 9em;
display: flex;
align-items: end;
padding-bottom: 2em;
}
padding: 5%;

View File

@ -16,7 +16,7 @@
<img alt="Portada de <%=$post->{title}%>" src="<%=$post->{image}%>"/>
</div><%
}
%></div><div class="article-down-part">
%></div><div class="article-down-part"><div>
<h3><%=$post->{title}%></h3><%
my $xml = Mojo::DOM->new($post->{content});
my $text = $xml->all_text;
@ -24,7 +24,7 @@
$text = substr($text, 0, 100).'...';
}
%><p><%=$text%></p><p class="author">Escrito por <%=$post->{author}%></p>
</div></article>
</div></div></article>
</a>
% }
</div>