Fixes card spacing for Blocksy 2.0.0.

This commit is contained in:
mateuswetah 2023-08-03 09:59:48 -03:00
parent b3716d1065
commit fc2801ecce
6 changed files with 28 additions and 7 deletions

View File

@ -17,6 +17,8 @@
.tainacan-taxonomy-terms-list-container { .tainacan-taxonomy-terms-list-container {
.entries[data-archive="default"] .entry-card.entry-card { .entries[data-archive="default"] .entry-card.entry-card {
align-items: center;
.term-name { .term-name {
margin-top: 0.25rem; margin-top: 0.25rem;
margin-bottom: 0.25rem; margin-bottom: 0.25rem;
@ -27,9 +29,16 @@
} }
} }
.entries:not([data-layout="grid"]) .ct-image-container img,
.entries:not([data-layout="grid"]) .ct-media-container img {
aspect-ratio: 4/3;
}
.entries:not([data-layout="grid"]) article > .ct-image-container,
.entries:not([data-layout="grid"]) article > .ct-media-container { .entries:not([data-layout="grid"]) article > .ct-media-container {
@media (min-width: 690px) { @media (min-width: 690px) {
max-width: 20%; max-width: 25%;
flex-shrink: 0;
margin-inline-end: 0;
} }
} }
} }

View File

@ -1029,6 +1029,10 @@ body:not(.tainacan-admin-page) .tainacan-modal-content .modal-card-body {
} }
} }
.tainacan-taxonomy-terms-list-container .entries[data-archive="default"] .entry-card.entry-card {
align-items: center;
}
.tainacan-taxonomy-terms-list-container .entries[data-archive="default"] .entry-card.entry-card .term-name { .tainacan-taxonomy-terms-list-container .entries[data-archive="default"] .entry-card.entry-card .term-name {
margin-top: 0.25rem; margin-top: 0.25rem;
margin-bottom: 0.25rem; margin-bottom: 0.25rem;
@ -1039,9 +1043,17 @@ body:not(.tainacan-admin-page) .tainacan-modal-content .modal-card-body {
margin-bottom: -0.25rem; margin-bottom: -0.25rem;
} }
.tainacan-taxonomy-terms-list-container .entries:not([data-layout="grid"]) .ct-image-container img,
.tainacan-taxonomy-terms-list-container .entries:not([data-layout="grid"]) .ct-media-container img {
aspect-ratio: 4/3;
}
@media (min-width: 690px) { @media (min-width: 690px) {
.tainacan-taxonomy-terms-list-container .entries:not([data-layout="grid"]) article > .ct-image-container,
.tainacan-taxonomy-terms-list-container .entries:not([data-layout="grid"]) article > .ct-media-container { .tainacan-taxonomy-terms-list-container .entries:not([data-layout="grid"]) article > .ct-media-container {
max-width: 20%; max-width: 25%;
flex-shrink: 0;
margin-inline-end: 0;
} }
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -196,7 +196,7 @@ $hide_term_items_count = (isset($items_link_element['show_term_items_count']) ?
'after_term_children_link' => '</li>', 'after_term_children_link' => '</li>',
'before_term_items_link' => '<li class="meta-date term-items-link">', 'before_term_items_link' => '<li class="meta-date term-items-link">',
'after_term_items_link' => '</li>', 'after_term_items_link' => '</li>',
'before_term_thumbnail' => '<figure class="term-thumbnail ct-media-container ' . ( $is_image_boundless ? 'boundless-image' : '' ) .'">', 'before_term_thumbnail' => '<figure class="term-thumbnail ct-image-container ct-media-container' . ( $is_image_boundless ? 'boundless-image' : '' ) .'">',
'after_term_thumbnail' => '</figure>', 'after_term_thumbnail' => '</figure>',
'hide_term_children_count' => $hide_term_children_count, 'hide_term_children_count' => $hide_term_children_count,
'hide_term_items_count' => $hide_term_items_count, 'hide_term_items_count' => $hide_term_items_count,