fix css somewhat
This commit is contained in:
parent
702cf518df
commit
e289f38192
|
@ -8,12 +8,19 @@
|
|||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.post img, .post a {
|
||||
.post-img {
|
||||
display: block;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.post-title {
|
||||
line-height: 140%;
|
||||
display: block;
|
||||
height: 20%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.post span {
|
||||
|
||||
display: block;
|
||||
|
|
|
@ -23,9 +23,9 @@
|
|||
<div class="box" id="content-pane">
|
||||
{% for post in posts if posts.len() > 0 %}
|
||||
<div class="post">
|
||||
<a href="{{post.origin_url}}"><img src="{{post.img_url}}" alt="post img"></a>
|
||||
<a class="post-img" href="{{post.origin_url}}"><img class="post-img" src="{{post.img_url}}" alt="post img"></a>
|
||||
<span>
|
||||
<a href="{{post.origin_url}}"><h3>{{post.title}}</h3></a>
|
||||
<a class="post-title" href="{{post.origin_url}}"><h3 class="post-title">{{post.title}}</h3></a>
|
||||
<p>{{post.descr}}</p>
|
||||
</span>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user