fix: Corrections de spacing
This commit is contained in:
parent
b4de4468c1
commit
2b2e650da7
5 changed files with 13 additions and 12 deletions
|
@ -22,12 +22,13 @@
|
|||
<small class="author-date">Le <?php the_time('l j F Y à H:i') ?></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<?php include(TEMPLATEPATH . '/components/article/description.php'); ?>
|
||||
|
||||
<div class="article-category">
|
||||
<?php include(TEMPLATEPATH . '/components/article/terms.php'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<?php endwhile; ?>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
$my_custom_field = $custom_fields['description'];
|
||||
if ($my_custom_field != null) {
|
||||
foreach ( $my_custom_field as $key => $value ) {
|
||||
echo " <div class='card-body'> " . $value . "</div>";
|
||||
echo " <div> " . $value . "</div>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -2,18 +2,18 @@
|
|||
if (has_category('chapters')) {
|
||||
$romans = get_the_terms($post->ID, 'roman');
|
||||
foreach( $romans as $roman ) {
|
||||
echo "<a href= '" . esc_url( get_category_link( $roman->term_id ) ) . "' class='btn-small btn-info'><i class='fa fa-book'></i> " . $roman->name . "</a>";
|
||||
echo "<a href= '" . esc_url( get_category_link( $roman->term_id ) ) . "' class='btn-small btn-info mr-2'><i class='fa fa-book mr-1'></i> " . $roman->name . "</a>";
|
||||
}
|
||||
} else {
|
||||
$categories = get_the_category();
|
||||
foreach( $categories as $category ) {
|
||||
echo "<a href= '" . esc_url( get_category_link( $category->term_id ) ) . "' class='btn-small btn-info'><i class='fa fa-folder'></i> " . $category->cat_name . "</a>";
|
||||
echo "<a href= '" . esc_url( get_category_link( $category->term_id ) ) . "' class='btn-small btn-info mr-2'><i class='fa fa-folder mr-1'></i> " . $category->cat_name . "</a>";
|
||||
}
|
||||
}
|
||||
$tags = get_the_tags();
|
||||
if ($tags) {
|
||||
foreach( $tags as $tag ) {
|
||||
echo "<a href= '" . esc_url( get_tag_link( $tag->term_id ) ) . "' class='btn-small btn-primary'><i class='fa fa-tag'></i> " . $tag->name . "</a> ";
|
||||
echo "<a href= '" . esc_url( get_tag_link( $tag->term_id ) ) . "' class='btn-small btn-primary mr-2'><i class='fa fa-tag mr-1'></i> " . $tag->name . "</a> ";
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -56,7 +56,7 @@ a, a:visited {
|
|||
|
||||
p {
|
||||
@include paragraph();
|
||||
&:last-child {
|
||||
.card-body > &:last-child, &.p-img {
|
||||
padding-bottom:0;
|
||||
}
|
||||
}
|
||||
|
@ -83,7 +83,7 @@ ul, ol {
|
|||
.container-article, .container-typographic {
|
||||
max-width: 800px;
|
||||
margin:auto;
|
||||
margin-bottom: 3rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.container-typographic {
|
||||
|
|
|
@ -323,7 +323,7 @@ p {
|
|||
padding: 0;
|
||||
padding-bottom: 1.5rem;
|
||||
margin: 0; }
|
||||
p:last-child {
|
||||
.card-body > p:last-child, p.p-img {
|
||||
padding-bottom: 0; }
|
||||
|
||||
ul, ol {
|
||||
|
@ -351,7 +351,7 @@ ul, ol {
|
|||
.container-article, .container-typographic {
|
||||
max-width: 800px;
|
||||
margin: auto;
|
||||
margin-bottom: 3rem; }
|
||||
margin-bottom: 1.5rem; }
|
||||
|
||||
.container-typographic p {
|
||||
padding: 0;
|
||||
|
|
Reference in a new issue