Aligning text articles list to end.
This commit is contained in:
parent
67ec2d5432
commit
ff572e844b
@ -107,7 +107,10 @@ body {
|
|||||||
height: 12em; }
|
height: 12em; }
|
||||||
body div.page-contents div.description div.articles a article div.article-down-part {
|
body div.page-contents div.description div.articles a article div.article-down-part {
|
||||||
margin-top: 2em;
|
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 {
|
body div.page-contents div.description div.articles a article:hover {
|
||||||
background: blueviolet;
|
background: blueviolet;
|
||||||
color: #f2eb8c; }
|
color: #f2eb8c; }
|
||||||
|
@ -152,6 +152,9 @@ body {
|
|||||||
div.article-down-part {
|
div.article-down-part {
|
||||||
margin-top: 2em;
|
margin-top: 2em;
|
||||||
height: 9em;
|
height: 9em;
|
||||||
|
display: flex;
|
||||||
|
align-items: end;
|
||||||
|
padding-bottom: 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
padding: 5%;
|
padding: 5%;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
<img alt="Portada de <%=$post->{title}%>" src="<%=$post->{image}%>"/>
|
<img alt="Portada de <%=$post->{title}%>" src="<%=$post->{image}%>"/>
|
||||||
</div><%
|
</div><%
|
||||||
}
|
}
|
||||||
%></div><div class="article-down-part">
|
%></div><div class="article-down-part"><div>
|
||||||
<h3><%=$post->{title}%></h3><%
|
<h3><%=$post->{title}%></h3><%
|
||||||
my $xml = Mojo::DOM->new($post->{content});
|
my $xml = Mojo::DOM->new($post->{content});
|
||||||
my $text = $xml->all_text;
|
my $text = $xml->all_text;
|
||||||
@ -24,7 +24,7 @@
|
|||||||
$text = substr($text, 0, 100).'...';
|
$text = substr($text, 0, 100).'...';
|
||||||
}
|
}
|
||||||
%><p><%=$text%></p><p class="author">Escrito por <%=$post->{author}%></p>
|
%><p><%=$text%></p><p class="author">Escrito por <%=$post->{author}%></p>
|
||||||
</div></article>
|
</div></div></article>
|
||||||
</a>
|
</a>
|
||||||
% }
|
% }
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user