Updates css of gallery component

This commit is contained in:
mateuswetah 2021-04-02 16:56:34 -03:00
parent 7bcf64bdc2
commit 6b4a82da95
7 changed files with 12 additions and 12 deletions

View File

@ -8,11 +8,11 @@ onDocumentLoadedDo = cb => {
}
onDocumentLoadedDo(() => {
console.log("Resetar as coisas aqui...");
//console.log("Resetar as coisas aqui...");
});
window.ctEvents.default.on('blocksy:frontend:init', () => {
console.log("Resetar mais coisas aqui...", tainacan_plugin);
//console.log("Resetar mais coisas aqui...", tainacan_plugin);
if (tainacan_plugin?.classes?.TainacanMediaGallery) {
(tainacan_plugin?.tainacan_media_components || []).forEach((component) => {
new tainacan_plugin.classes.TainacanMediaGallery(

View File

@ -242,7 +242,7 @@
.tainacan-metadata-label {
flex-basis: 40%;
margin-bottom: 0;
margin-bottom: .75rem;
border-right: var(--metadata-label-border, 0px solid rgba(125, 125, 125, 0.5));
}
.tainacan-metadata-value {
@ -311,7 +311,7 @@
align-items: center;
}
}
.tainacan-item-section__attachments-file {
.tainacan-media-component__swiper-main {
&:hover {
.tainacan-item-file-download {
opacity: 1;

View File

@ -608,7 +608,7 @@ body:not(.tainacan-admin-page) .tainacan-modal-content .modal-card-body {
.tainacan-item-single .tainacan-item-section__metadata.metadata-type-2 > div .tainacan-metadata-label {
flex-basis: 40%;
margin-bottom: 0;
margin-bottom: .75rem;
border-right: var(--metadata-label-border, 0px solid rgba(125, 125, 125, 0.5));
}
@ -676,7 +676,7 @@ body:not(.tainacan-admin-page) .tainacan-modal-content .modal-card-body {
align-items: center;
}
.tainacan-item-single .tainacan-item-section__attachments-file:hover .tainacan-item-file-download {
.tainacan-item-single .tainacan-media-component__swiper-main:hover .tainacan-item-file-download {
opacity: 1;
transform: scale(1);
}

File diff suppressed because one or more lines are too long

2
style.min.css vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -12,7 +12,7 @@
global $post;
if ( function_exists('tainacan_the_media_component') && ( empty( $attachments ) || ( $is_gallery_mode && tainacan_has_document() ) ) ) {
if ( function_exists('tainacan_the_media_component') && ( !empty( $attachments ) || ( $is_gallery_mode && tainacan_has_document() ) ) ) {
?>
<section class="tainacan-item-section tainacan-item-section--<?php echo ((!$is_gallery_mode ? 'attachments' : 'gallery')) ?>">
<?php if ( (get_theme_mod($prefix . '_display_section_labels', 'yes') == 'yes') && (!$is_gallery_mode) && get_theme_mod($prefix . '_section_attachments_label', __( 'Attachments', 'blocksy-tainacan' )) != '' ) : ?>
@ -107,7 +107,7 @@
));
}
}
tainacan_the_media_component(
'tainacan-item-attachments_id-' . $post->ID,
$media_items_thumbs,