some styles

This commit is contained in:
Ayo 2018-02-06 17:18:02 +08:00
parent 6e42e8b57b
commit 439362b45e
2 changed files with 6 additions and 1 deletions

View file

@ -21,7 +21,7 @@ layout: default-home
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a> <a class="post-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
</h3> </h3>
<div class="float-left post-excerpt"> <div class="float-left post-excerpt">
<img class="float-right post-thumb" src="../assets/images/{{ post.image }}" /> <img class="float-right post-thumb" alt="{{ post.title | escape }}" src="../assets/images/{{ post.image }}" />
{{ post.excerpt }} {{ post.excerpt }}
</div> </div>
<div class="clear-both"></div> <div class="clear-both"></div>

View file

@ -172,6 +172,7 @@ article .post-content p {
.post-thumb { .post-thumb {
width: 40%; width: 40%;
margin: 10px 0;
} }
.post-readmore { .post-readmore {
@ -196,6 +197,10 @@ article .post-content p {
} }
@media screen and (max-width: 600px) { @media screen and (max-width: 600px) {
.post-thumb {
width: 100%;
}
.jumbotron { .jumbotron {
padding: 30px 0; padding: 30px 0;
} }