fix: Corrections de spacing

This commit is contained in:
Kazhnuz 2023-03-13 15:00:37 +01:00
parent b4de4468c1
commit 2b2e650da7
5 changed files with 13 additions and 12 deletions

View file

@ -22,12 +22,13 @@
<small class="author-date">Le <?php the_time('l j F Y à H:i') ?></small> <small class="author-date">Le <?php the_time('l j F Y à H:i') ?></small>
</div> </div>
</div> </div>
<div class="card-body">
<?php include(TEMPLATEPATH . '/components/article/description.php'); ?> <?php include(TEMPLATEPATH . '/components/article/description.php'); ?>
<div class="article-category"> <div class="article-category">
<?php include(TEMPLATEPATH . '/components/article/terms.php'); ?> <?php include(TEMPLATEPATH . '/components/article/terms.php'); ?>
</div> </div>
</div>
</section> </section>
<?php endwhile; ?> <?php endwhile; ?>

View file

@ -3,7 +3,7 @@
$my_custom_field = $custom_fields['description']; $my_custom_field = $custom_fields['description'];
if ($my_custom_field != null) { if ($my_custom_field != null) {
foreach ( $my_custom_field as $key => $value ) { foreach ( $my_custom_field as $key => $value ) {
echo " <div class='card-body'> " . $value . "</div>"; echo " <div> " . $value . "</div>";
} }
} }
?> ?>

View file

@ -2,18 +2,18 @@
if (has_category('chapters')) { if (has_category('chapters')) {
$romans = get_the_terms($post->ID, 'roman'); $romans = get_the_terms($post->ID, 'roman');
foreach( $romans as $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 { } else {
$categories = get_the_category(); $categories = get_the_category();
foreach( $categories as $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(); $tags = get_the_tags();
if ($tags) { if ($tags) {
foreach( $tags as $tag ) { 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> ";
} }
} }
?> ?>

View file

@ -56,7 +56,7 @@ a, a:visited {
p { p {
@include paragraph(); @include paragraph();
&:last-child { .card-body > &:last-child, &.p-img {
padding-bottom:0; padding-bottom:0;
} }
} }
@ -83,7 +83,7 @@ ul, ol {
.container-article, .container-typographic { .container-article, .container-typographic {
max-width: 800px; max-width: 800px;
margin:auto; margin:auto;
margin-bottom: 3rem; margin-bottom: 1.5rem;
} }
.container-typographic { .container-typographic {

View file

@ -323,7 +323,7 @@ p {
padding: 0; padding: 0;
padding-bottom: 1.5rem; padding-bottom: 1.5rem;
margin: 0; } margin: 0; }
p:last-child { .card-body > p:last-child, p.p-img {
padding-bottom: 0; } padding-bottom: 0; }
ul, ol { ul, ol {
@ -351,7 +351,7 @@ ul, ol {
.container-article, .container-typographic { .container-article, .container-typographic {
max-width: 800px; max-width: 800px;
margin: auto; margin: auto;
margin-bottom: 3rem; } margin-bottom: 1.5rem; }
.container-typographic p { .container-typographic p {
padding: 0; padding: 0;