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