Skip to content

Commit

Permalink
Add featured image to cards and increase right margin
Browse files Browse the repository at this point in the history
  • Loading branch information
sammcgeown committed Jul 11, 2018
1 parent 76b347a commit e42210d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion content.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
<div class="card-header"><?php the_title(); ?></div>
<div class="card-block">
<div class="card-media-block">
<!-- <?php the_post_thumbnail('thumbnail', array('class' => 'card-media-image')); ?> -->
<div class="card-media-desciption">
<span class="card-media-title"><?php the_date('d/m/Y'); ?> | <?php the_author(); ?></span>
</div>
</div>
</div>
<div class="card-block">
<div class="card-text">
<?php the_post_thumbnail('thumbnail', array('class' => 'card-media-image')); ?>
<?php the_excerpt(); ?>
</div>
</div>
Expand Down
5 changes: 5 additions & 0 deletions css/definit-clarity.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ nav.sidenav > div.nav {
padding: 0px 10px;
}

img.card-media-image {
float: left;
margin: 0px 10px 0px 0px;
}

/* div.branding.dropdown {
display: none;
padding: 0px !important;
Expand Down

0 comments on commit e42210d

Please sign in to comment.