Fixed image centering on new-articles

This commit is contained in:
Asutosh Palai
2016-10-04 09:12:13 -04:00
parent 20d4317a95
commit 0a0977bff1
2 changed files with 4 additions and 3 deletions

View File

@ -471,7 +471,8 @@ body {
width: 100%;
&.wide {
height: 100%
height: 100%;
width: auto;
}
&.tall {

View File

@ -14,7 +14,7 @@ title: "Watch Out!, IIT Roorkee"
<a href="{{ post.url }}">
<div class="cover-container-container">
<div class="center-fill-container img-container">
<img src="/images/posts/{{post.image}}" alt="" class="img-center-fill {% if post.image == null %}hidden{% endif %}">
<img src="/images/posts/{{post.image}}" alt="" class="img-center-fill center-both {% if post.image == null %}hidden{% endif %}">
</div>
</div>
<div class="details text-center ">
@ -41,7 +41,7 @@ title: "Watch Out!, IIT Roorkee"
<a href="{{ post.url }}">
<div class="center-fill-container article-cover-container">
<img src="/images/posts/{{ post.image }}" class="img-center-fill {% if post.image == null %}hidden{% endif %}">
<img src="/images/posts/{{ post.image }}" class="img-center-fill center-both {% if post.image == null %}hidden{% endif %}">
</div>
<div class="details text-center">
<div class="tag">{{ post.category }}</div>